| 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_
|
|
|