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..cf0448b8959c748338bee5f36dc7a60d058a0a27 |
| --- /dev/null |
| +++ b/ui/gfx/vector_icons.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// 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 class VectorIconId { |
| + VECTOR_ICON_NONE, |
| + |
| + CHECK_CIRCLE, |
| + PHOTO_CAMERA, |
| +}; |
| + |
| +// Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dp_size| |
| +// is the length of a single edge of the square icon, in device pixels. |color| |
| +// is used as the fill. |
| +GFX_EXPORT void PaintVectorIcon(Canvas* canvas, |
| + VectorIconId id, |
| + size_t dp_size, |
|
sadrul
2015/07/07 04:18:11
We generally use 'dip_' prefix for device-independ
Evan Stade
2015/07/07 16:47:50
Done.
|
| + SkColor color); |
| + |
| +} // namespace gfx |
| + |
| +#endif // UI_GFX_VECTOR_ICONS_H_ |