Chromium Code Reviews| 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; |