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

Unified Diff: ui/views/painter.h

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: rebase Created 4 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/painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/painter.h
diff --git a/ui/views/painter.h b/ui/views/painter.h
index e58ced943607edaa28bb64487d59cc0ecd66e0c8..f158c928b0a25d091f00b43070aadae8fb0f0242 100644
--- a/ui/views/painter.h
+++ b/ui/views/painter.h
@@ -19,6 +19,7 @@ namespace gfx {
class Canvas;
class ImageSkia;
class Insets;
+class InsetsF;
class Rect;
class Size;
}
@@ -87,9 +88,14 @@ class VIEWS_EXPORT Painter {
static std::unique_ptr<Painter> CreateDashedFocusPainter();
static std::unique_ptr<Painter> CreateDashedFocusPainterWithInsets(
const gfx::Insets& insets);
+ // Deprecated: used the InsetsF version below.
static std::unique_ptr<Painter> CreateSolidFocusPainter(
SkColor color,
const gfx::Insets& insets);
+ static std::unique_ptr<Painter> CreateSolidFocusPainter(
+ SkColor color,
+ SkScalar thickness,
+ const gfx::InsetsF& insets);
// Returns the minimum size this painter can paint without obvious graphical
// problems (e.g. overlapping images).
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698