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

Unified Diff: ui/gfx/paint_vector_icon.h

Issue 2733823003: Move final vector icons out of ui/gfx/vector_icons/ and remove the (Closed)
Patch Set: fix deps Created 3 years, 9 months 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/gfx/BUILD.gn ('k') | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/paint_vector_icon.h
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
index 0b84d855e11c3d9e5fb18c2f468177d706b0c857..9177b54c7dd852bfcc2b7b97554e31cc430f260f 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -13,7 +13,6 @@ namespace gfx {
class Canvas;
struct VectorIcon;
-enum class VectorIconId;
GFX_EXPORT extern const VectorIcon kNoneIcon;
@@ -21,34 +20,21 @@ GFX_EXPORT extern const VectorIcon kNoneIcon;
// is the length of a single edge of the square icon, in device independent
// pixels. |color| is used as the fill.
GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
- VectorIconId id,
- int dip_size,
- SkColor color);
-GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
const VectorIcon& icon,
int dip_size,
SkColor color);
// Creates an ImageSkia which will render the icon on demand. The size will come
// from the .icon file (the 1x version, if multiple versions exist).
-GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
- SkColor color);
GFX_EXPORT ImageSkia CreateVectorIcon(const VectorIcon& icon, SkColor color);
// As above, but creates the image at the given size.
-GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
- int dip_size,
- SkColor color);
GFX_EXPORT ImageSkia CreateVectorIcon(const VectorIcon& icon,
int dip_size,
SkColor color);
// As above, but also paints a badge defined by |badge_id| on top of the icon.
// The badge uses the same canvas size and default color as the icon.
-GFX_EXPORT ImageSkia CreateVectorIconWithBadge(VectorIconId id,
- int dip_size,
- SkColor color,
- VectorIconId badge_id);
GFX_EXPORT ImageSkia CreateVectorIconWithBadge(const VectorIcon& icon,
int dip_size,
SkColor color,
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698