Chromium Code Reviews| 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..4a659805839efca5193c7d871f6453ab6e9a4495 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 |
| +// FIXME |
|
tdanderson
2017/03/30 20:48:51
Anything left to fix? Also, consider adding a brie
Evan Stade
2017/03/30 23:56:47
oops. FIXME is my note to myself to add docs. Done
|
| +GFX_EXPORT int GetDefaultSizeOfVectorIcon(const gfx::VectorIcon& icon); |
| + |
| } // namespace gfx |
| #endif // UI_GFX_PAINT_VECTOR_ICON_H_ |