summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 21:36:41 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 21:36:41 +0000
commite7f58e146e4015f7559c136bea21d9f7c93fe491 (patch)
tree8e75b0d2b340815ab00ca5240bd2d697c81d7103
parentc9ea52e108e514c9c3fc9c1d721316cbe9d4cd4a (diff)
downloadchromium_src-e7f58e146e4015f7559c136bea21d9f7c93fe491.zip
chromium_src-e7f58e146e4015f7559c136bea21d9f7c93fe491.tar.gz
chromium_src-e7f58e146e4015f7559c136bea21d9f7c93fe491.tar.bz2
ash: Draw focus border around the container only, and not the whole tray area.
BUG=121182 TEST=none Review URL: https://chromiumcodereview.appspot.com/9950030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129952 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ash/system/tray/system_tray.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 4c46389..d163985 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -611,8 +611,11 @@ void SystemTray::GetAccessibleState(ui::AccessibleViewState* state) {
}
void SystemTray::OnPaintFocusBorder(gfx::Canvas* canvas) {
+ // The tray itself expands to the right and bottom edge of the screen to make
+ // sure clicking on the edges brings up the popup. However, the focus border
+ // should be only around the container.
if (GetWidget() && GetWidget()->IsActive())
- views::View::OnPaintFocusBorder(canvas);
+ canvas->DrawFocusRect(container_->bounds());
}
void SystemTray::OnWidgetClosing(views::Widget* widget) {