summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 00:53:52 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 00:53:52 +0000
commitb0b98781f59b56c17487ce814756349ccfcade71 (patch)
tree5f1123ae2f16cc002d4caa4d68253f5c04545d31 /ui
parent7697bb7f14d69ac3ed9c8735922be71954859e1d (diff)
downloadchromium_src-b0b98781f59b56c17487ce814756349ccfcade71.zip
chromium_src-b0b98781f59b56c17487ce814756349ccfcade71.tar.gz
chromium_src-b0b98781f59b56c17487ce814756349ccfcade71.tar.bz2
Remove 'focusable' flag when there're no notifications.
See the attachments of crbug.com/166786#c2 the bubble has border for focus. BUG=166786 TEST=open the message center bubble when there're no notifications and confirmed no focus borders appear. Review URL: https://codereview.chromium.org/11737029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/message_center/message_center_bubble.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/message_center/message_center_bubble.cc b/ui/message_center/message_center_bubble.cc
index fc89b29..06a4c2a 100644
--- a/ui/message_center/message_center_bubble.cc
+++ b/ui/message_center/message_center_bubble.cc
@@ -210,8 +210,10 @@ class MessageCenterContentsView : public views::View {
label->SetEnabledColor(SK_ColorGRAY);
scroll_content_->AddChildView(label);
button_view_->SetCloseAllVisible(false);
+ scroller_->set_focusable(false);
} else {
button_view_->SetCloseAllVisible(true);
+ scroller_->set_focusable(true);
}
SizeScrollContent();
Layout();