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

Unified Diff: ash/system/tray/tray_views.cc

Issue 10086005: ash: Show better focus rects for the tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months 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
Index: ash/system/tray/tray_views.cc
diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
index c09b5747e94e97812a1cdf871b3b2cf25ebb0164..d5a45712811dc1773fe5c30b0939def427daee72 100644
--- a/ash/system/tray/tray_views.cc
+++ b/ash/system/tray/tray_views.cc
@@ -65,6 +65,13 @@ bool ActionableView::OnMousePressed(const views::MouseEvent& event) {
return PerformAction(event);
}
+void ActionableView::OnPaintFocusBorder(gfx::Canvas* canvas) {
+ if (HasFocus() && (focusable() || IsAccessibilityFocusable())) {
+ canvas->DrawRect(gfx::Rect(1, 1, width() - 3, height() - 3),
+ kFocusBorderColor);
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
// HoverHighlightView

Powered by Google App Engine
This is Rietveld 408576698