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

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: Addressed 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
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/focus_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus_border.h
diff --git a/ui/views/focus_border.h b/ui/views/focus_border.h
index 15a3477883422e906470a992e5247b4988fc16c1..125743c657d3d3ca4901caf76e01b2831a057b84 100644
--- a/ui/views/focus_border.h
+++ b/ui/views/focus_border.h
@@ -5,6 +5,8 @@
#ifndef UI_VIEWS_FOCUS_BORDER_H_
#define UI_VIEWS_FOCUS_BORDER_H_
+#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/insets.h"
#include "ui/views/views_export.h"
#include "base/basictypes.h"
@@ -34,6 +36,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698