Chromium Code Reviews| Index: ui/views/focus_border.h |
| diff --git a/ui/views/focus_border.h b/ui/views/focus_border.h |
| index 15a3477883422e906470a992e5247b4988fc16c1..b362e80c4b196ab546f62f622ff193c91eab5726 100644 |
| --- a/ui/views/focus_border.h |
| +++ b/ui/views/focus_border.h |
| @@ -5,9 +5,12 @@ |
| #ifndef UI_VIEWS_FOCUS_BORDER_H_ |
| #define UI_VIEWS_FOCUS_BORDER_H_ |
| +#include "ui/gfx/insets.h" |
| #include "ui/views/views_export.h" |
| #include "base/basictypes.h" |
| +typedef unsigned int SkColor; |
|
oshima
2013/11/25 19:22:26
any issue in including skia header?
Mr4D (OOO till 08-26)
2013/11/25 19:35:14
I have no problem with including it. Saw this only
|
| + |
| namespace gfx { |
| class Canvas; |
| } |
| @@ -34,6 +37,11 @@ class VIEWS_EXPORT FocusBorder { |
| static FocusBorder* CreateDashedFocusBorder( |
| int left, int top, int right, int bottom); |
| + // Creates a focus border with a given |inset| and |focus_color| which is one |
| + // pixel thick. |
| + static FocusBorder* CreateSolidFocusBorder( |
| + SkColor focus_color, const gfx::Insets& insets); |
| + |
| // Renders the focus border for the specified view. |
| virtual void Paint(const View& view, gfx::Canvas* canvas) const = 0; |