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

Unified Diff: ui/views/border.h

Issue 2395033002: Harmony - Don't paint focus ring on unless border requests it. (Closed)
Patch Set: Created 4 years, 2 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: ui/views/border.h
diff --git a/ui/views/border.h b/ui/views/border.h
index d30cc7ca0b00e2882b2b5288d9b058a98fa3858d..f0e58e9311ee1a6d5bb82dd469cdaad5a596b71c 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -79,6 +79,10 @@ class VIEWS_EXPORT Border {
std::unique_ptr<Painter> painter,
const gfx::Insets& insets);
+ // Returns true if a FocusRing should be used in concert with this border.
+ // Returns false by default.
+ virtual bool ShouldAddFocusRing() const;
sky 2016/10/06 19:34:42 Adding functions specific to certain controls does
Evan Stade 2016/10/06 20:14:18 It could, but I strayed from that approach because
+
// Renders the border for the specified view.
virtual void Paint(const View& view, gfx::Canvas* canvas) = 0;

Powered by Google App Engine
This is Rietveld 408576698