summaryrefslogtreecommitdiffstats
path: root/ui/gfx/paint_vector_icon.h
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2015-08-31 12:03:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-31 19:04:03 +0000
commit7ca51e26dc7316b50d5f96e4e1b4312584cb995f (patch)
tree20d45b46c9486e1d866ff18413e0ae27192a163d /ui/gfx/paint_vector_icon.h
parenta4a6e59d57b8e889a560a60508b164602b7d75a7 (diff)
downloadchromium_src-7ca51e26dc7316b50d5f96e4e1b4312584cb995f.zip
chromium_src-7ca51e26dc7316b50d5f96e4e1b4312584cb995f.tar.gz
chromium_src-7ca51e26dc7316b50d5f96e4e1b4312584cb995f.tar.bz2
Vectorize website settings icons in omnibox
unlike other icon vectorization/MD work, this does respect the --top-chrome-md flag, because these icons live in the omnibox and look funky if you put them in the old omnibox. BUG=505953, 514718 Review URL: https://codereview.chromium.org/1313603003 Cr-Commit-Position: refs/heads/master@{#346432}
Diffstat (limited to 'ui/gfx/paint_vector_icon.h')
-rw-r--r--ui/gfx/paint_vector_icon.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
index 51b2440..73650a5 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -28,6 +28,13 @@ GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
size_t 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,
+ size_t dip_size,
+ SkColor color,
+ VectorIconId badge_id);
+
#if defined(GFX_VECTOR_ICONS_UNSAFE) || defined(GFX_IMPLEMENTATION)
// Takes a string of the format expected of .icon files and renders onto
// a canvas. This should only be used as a debugging aid and should never be