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

Unified Diff: ash/common/system/tray/actionable_view.h

Issue 2533903002: tweak the focus rectangle of TrayBackgroundView objects (Closed)
Patch Set: 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 | « no previous file | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/actionable_view.h
diff --git a/ash/common/system/tray/actionable_view.h b/ash/common/system/tray/actionable_view.h
index c54040cdfeadde32c74d74bd2c8bdf8774d058ec..bcb71349e359a629453b054baf74b304a52115a6 100644
--- a/ash/common/system/tray/actionable_view.h
+++ b/ash/common/system/tray/actionable_view.h
@@ -43,7 +43,10 @@ class ASH_EXPORT ActionableView : public views::ButtonListener,
protected:
SystemTrayItem* owner() { return owner_; }
- void OnPaintFocus(gfx::Canvas* canvas);
+ // Draws focus rectangle on the canvas.
+ // Default implementation draws the focus rectangle with certain inset and
+ // color. Subclasses can override to change the default settings.
+ virtual void OnPaintFocus(gfx::Canvas* canvas);
// Returns the bounds to paint the focus rectangle in.
virtual gfx::Rect GetFocusBounds();
« no previous file with comments | « no previous file | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698