Commit cc5c44bb authored by Megumi Hattori's avatar Megumi Hattori Committed by Commit Bot

Remove SetFocusBehavior from MessageCenterScrollView.

MessageCenterScrollView need not be focused.

This CL also fixes a bug, tab focus missing on the UI.

BUG=807534
TEST=manual

Change-Id: I5427e84c49c2bbfbfa90944c334ffa5aa805d8d9
Reviewed-on: https://chromium-review.googlesource.com/946068Reviewed-by: default avatarYoshiki Iguchi <yoshiki@chromium.org>
Commit-Queue: Megumi Hattori <megumihattori@google.com>
Cr-Commit-Position: refs/heads/master@{#541706}
parent 85fe3b03
...@@ -590,16 +590,6 @@ void MessageCenterView::Update(bool animate) { ...@@ -590,16 +590,6 @@ void MessageCenterView::Update(bool animate) {
else else
SetVisibilityMode(Mode::NOTIFICATIONS, animate); SetVisibilityMode(Mode::NOTIFICATIONS, animate);
if (no_message_views) {
scroller_->SetFocusBehavior(FocusBehavior::NEVER);
} else {
#if defined(OS_MACOSX)
scroller_->SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
#else
scroller_->SetFocusBehavior(FocusBehavior::ALWAYS);
#endif
}
UpdateButtonBarStatus(); UpdateButtonBarStatus();
if (scroller_->visible()) if (scroller_->visible())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment