Chromium Code Reviews| Index: ui/gfx/vector_icon_types.h |
| diff --git a/ui/gfx/vector_icon_types.h b/ui/gfx/vector_icon_types.h |
| index cc1be94d0f8ba614872f05f231ea037b69e9e329..fd6fdc0aa396268131db2f1c7f980cda65a47183 100644 |
| --- a/ui/gfx/vector_icon_types.h |
| +++ b/ui/gfx/vector_icon_types.h |
| @@ -12,6 +12,7 @@ |
| namespace gfx { |
| +struct VectorIcon; |
|
Evan Stade
2016/08/26 22:34:06
why is this here?
tdanderson
2016/08/31 22:18:21
Gone.
|
| enum class VectorIconId; |
| // The size of a single side of the square canvas to which path coordinates |
| @@ -72,6 +73,13 @@ struct PathElement { |
| }; |
| }; |
| +struct VectorIcon { |
| + gfx::PathElement* path; |
|
oshima
2016/08/31 00:11:44
would it be better to have initializer (=nullptr;)
tdanderson
2016/08/31 22:18:21
Done.
|
| + gfx::PathElement* path_1x; |
| + |
| + bool is_empty() const { return !path; } |
| +}; |
| + |
| // Returns an array of path commands and arguments, terminated by END. |
| const PathElement* GetPathForVectorIcon(VectorIconId id); |
| // As above, but returns an icon specifically adjusted for 1x scale factors. |