From e7f58e146e4015f7559c136bea21d9f7c93fe491 Mon Sep 17 00:00:00 2001
From: "sadrul@chromium.org"
 <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Fri, 30 Mar 2012 21:36:41 +0000
Subject: 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
---
 ash/system/tray/system_tray.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'ash/system')

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) {
-- 
cgit v1.1