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

Unified Diff: ash/common/shelf/shelf_button.cc

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/shelf/app_list_button.cc ('k') | ash/common/system/tray/actionable_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_button.cc
diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
index 5648938ef63c566be4c06a45e6291ef9e4ad8387..0ad1d8ce4e967490d7054c1f542664a9cb6ada5f 100644
--- a/ash/common/shelf/shelf_button.cc
+++ b/ash/common/shelf/shelf_button.cc
@@ -472,9 +472,8 @@ void ShelfButton::OnBlur() {
void ShelfButton::OnPaint(gfx::Canvas* canvas) {
CustomButton::OnPaint(canvas);
if (HasFocus()) {
- gfx::Rect paint_bounds(GetLocalBounds());
- paint_bounds.Inset(1, 1, 1, 1);
- canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor);
+ canvas->DrawSolidFocusRect(gfx::RectF(GetLocalBounds()), kFocusBorderColor,
+ kFocusBorderThickness);
}
}
« no previous file with comments | « ash/common/shelf/app_list_button.cc ('k') | ash/common/system/tray/actionable_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698