Chromium Code Reviews| Index: ui/gfx/vector_icons.h |
| diff --git a/ui/gfx/vector_icons.h b/ui/gfx/vector_icons.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf5ba81720bfe721b75a184e9220a9ece8b1fdba |
| --- /dev/null |
| +++ b/ui/gfx/vector_icons.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
|
sky
2015/07/01 16:19:52
no (c) here and in the .cc.
Evan Stade
2015/07/01 21:52:59
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_GFX_VECTOR_ICONS_H_ |
| +#define UI_GFX_VECTOR_ICONS_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "third_party/skia/include/core/SkColor.h" |
| +#include "ui/gfx/gfx_export.h" |
| + |
| +namespace gfx { |
| + |
| +class Canvas; |
| + |
| +enum VectorIconId { |
|
sky
2015/07/01 16:19:52
enum class, that way you can forward declare it in
Evan Stade
2015/07/01 21:52:59
TIL that exists. I've switched to enum class, but
|
| + VECTOR_ICON_NONE, |
| + |
| + CHECK_CIRCLE, |
| + PHOTO_CAMERA, |
| +}; |
| + |
| +GFX_EXPORT void PaintVectorIcon(Canvas* canvas, VectorIconId id, size_t dp_size, |
|
sky
2015/07/01 16:19:52
Document what dp_size and color are.
Evan Stade
2015/07/01 21:52:59
Done.
|
| + SkColor color); |
| + |
| +} // namespace gfx |
| + |
| +#endif // UI_GFX_VECTOR_ICONS_H_ |