| Index: ash/common/system/tray/tray_background_view.cc
|
| diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc
|
| index 26d7797d3190ec631b3fff426aa36444232bb31f..9a4dc11a2e2c263a276ee78ace863f308139af7c 100644
|
| --- a/ash/common/system/tray/tray_background_view.cc
|
| +++ b/ash/common/system/tray/tray_background_view.cc
|
| @@ -568,16 +568,18 @@ void TrayBackgroundView::HandlePerformActionResult(bool action_performed,
|
| ActionableView::HandlePerformActionResult(action_performed, event);
|
| }
|
|
|
| -gfx::Rect TrayBackgroundView::GetFocusBounds() {
|
| +void TrayBackgroundView::OnPaintFocus(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.
|
| - return GetContentsBounds();
|
| -}
|
| -
|
| -void TrayBackgroundView::OnPaintFocus(gfx::Canvas* canvas) {
|
| - gfx::RectF paint_bounds(GetFocusBounds());
|
| - paint_bounds.Inset(gfx::Insets(2, -2));
|
| + gfx::RectF paint_bounds;
|
| + if (MaterialDesignController::IsShelfMaterial()) {
|
| + paint_bounds = gfx::RectF(GetBackgroundBounds());
|
| + paint_bounds.Inset(gfx::Insets(-kFocusBorderThickness));
|
| + } else {
|
| + paint_bounds = gfx::RectF(GetContentsBounds());
|
| + paint_bounds.Inset(gfx::Insets(1));
|
| + }
|
| canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor,
|
| kFocusBorderThickness);
|
| }
|
|
|