| Index: ui/gfx/paint_vector_icon.h
|
| diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
|
| index 799e43663d163b001ef005597c6e27b6f55eba0b..2e32617dbc037149570e40288e47373f7139c3a1 100644
|
| --- a/ui/gfx/paint_vector_icon.h
|
| +++ b/ui/gfx/paint_vector_icon.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef UI_GFX_PAINT_VECTOR_ICON_H_
|
| #define UI_GFX_PAINT_VECTOR_ICON_H_
|
|
|
| +#include "base/time/time.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/gfx/gfx_export.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| @@ -21,14 +22,16 @@ GFX_EXPORT extern const VectorIcon kNoneIcon;
|
| // multiple versions exist).
|
| GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
|
| const VectorIcon& icon,
|
| - SkColor color);
|
| + SkColor color,
|
| + const base::TimeDelta* elapsed_time = nullptr);
|
|
|
| // 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,
|
| - SkColor color);
|
| + SkColor color,
|
| + const base::TimeDelta* elapsed_time = nullptr);
|
|
|
| // 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).
|
| @@ -58,6 +61,9 @@ GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source,
|
| // Calculates the size that will be default for |icon|, in dip.
|
| GFX_EXPORT int GetDefaultSizeOfVectorIcon(const gfx::VectorIcon& icon);
|
|
|
| +// FIXME
|
| +base::TimeDelta GetDurationOfAnimation(const VectorIcon& icon);
|
| +
|
| } // namespace gfx
|
|
|
| #endif // UI_GFX_PAINT_VECTOR_ICON_H_
|
|
|