OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_PAINT_VECTOR_ICON_H_ | 5 #ifndef UI_GFX_PAINT_VECTOR_ICON_H_ |
6 #define UI_GFX_PAINT_VECTOR_ICON_H_ | 6 #define UI_GFX_PAINT_VECTOR_ICON_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stddef.h> |
| 9 |
9 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/gfx/gfx_export.h" | 11 #include "ui/gfx/gfx_export.h" |
11 #include "ui/gfx/image/image_skia.h" | 12 #include "ui/gfx/image/image_skia.h" |
12 | 13 |
13 namespace gfx { | 14 namespace gfx { |
14 | 15 |
15 class Canvas; | 16 class Canvas; |
16 enum class VectorIconId; | 17 enum class VectorIconId; |
17 | 18 |
18 // Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dip_size| | 19 // Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dip_size| |
(...skipping 21 matching lines...) Expand all Loading... |
40 // a canvas. This should only be used as a debugging aid and should never be | 41 // a canvas. This should only be used as a debugging aid and should never be |
41 // used in production code. | 42 // used in production code. |
42 GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source, | 43 GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source, |
43 size_t dip_size, | 44 size_t dip_size, |
44 SkColor color); | 45 SkColor color); |
45 #endif | 46 #endif |
46 | 47 |
47 } // namespace gfx | 48 } // namespace gfx |
48 | 49 |
49 #endif // UI_GFX_PAINT_VECTOR_ICON_H_ | 50 #endif // UI_GFX_PAINT_VECTOR_ICON_H_ |
OLD | NEW |