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

Unified Diff: ui/views/focus_border.h

Issue 78803002: Fixing focus highlight on high DPI devices for accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: found message center offset Created 7 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
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;
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/focus_border.cc » ('j') | ui/views/focus_border.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698