Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2410)

Unified Diff: ash/common/system/tray/tray_background_view.cc

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/system_menu_button.cc ('k') | ash/common/system/tray/tray_popup_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5981772e79cd7c3c7fd535237a378be328b0592f..0b4f6bc96e661ad17a63dea2744b13678e74eb54 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -583,9 +583,10 @@ gfx::Rect TrayBackgroundView::GetFocusBounds() {
}
void TrayBackgroundView::OnPaintFocus(gfx::Canvas* canvas) {
- gfx::Rect paint_bounds(GetFocusBounds());
- paint_bounds.Inset(2, -2, 3, -2);
- canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor);
+ gfx::RectF paint_bounds(GetFocusBounds());
+ paint_bounds.Inset(gfx::Insets(2, -2));
+ canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor,
+ kFocusBorderThickness);
}
void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « ash/common/system/tray/system_menu_button.cc ('k') | ash/common/system/tray/tray_popup_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698