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

Unified Diff: ui/gfx/paint_vector_icon.h

Issue 2784133002: Cros system menu - Use WiFi strike-through image for "No networks" row (Closed)
Patch Set: docs 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 | « chrome/browser/chromeos/status/network_menu.cc ('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 9177b54c7dd852bfcc2b7b97554e31cc430f260f..799e43663d163b001ef005597c6e27b6f55eba0b 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -16,9 +16,15 @@ struct VectorIcon;
GFX_EXPORT extern const VectorIcon kNoneIcon;
-// Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dip_size|
-// is the length of a single edge of the square icon, in device independent
-// pixels. |color| is used as the fill.
+// Draws a vector icon identified by |id| onto |canvas| at (0, 0). |color| is
+// used as the fill. The size will come from the .icon file (the 1x version, if
+// multiple versions exist).
+GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
+ const VectorIcon& icon,
+ SkColor color);
+
+// As above, with a specificed size. |dip_size| is the length of a single edge
+// of the square icon, in device independent pixels.
GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
const VectorIcon& icon,
int dip_size,
@@ -49,6 +55,9 @@ GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source,
SkColor color);
#endif
+// Calculates the size that will be default for |icon|, in dip.
+GFX_EXPORT int GetDefaultSizeOfVectorIcon(const gfx::VectorIcon& icon);
+
} // namespace gfx
#endif // UI_GFX_PAINT_VECTOR_ICON_H_
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.cc ('k') | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698