Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_VECTOR_ICONS_H_ | |
| 6 #define UI_GFX_VECTOR_ICONS_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "third_party/skia/include/core/SkColor.h" | |
| 10 #include "ui/gfx/gfx_export.h" | |
| 11 | |
| 12 namespace gfx { | |
| 13 | |
| 14 class Canvas; | |
| 15 | |
| 16 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
| |
| 17 VECTOR_ICON_NONE, | |
| 18 | |
| 19 CHECK_CIRCLE, | |
| 20 PHOTO_CAMERA, | |
| 21 }; | |
| 22 | |
| 23 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.
| |
| 24 SkColor color); | |
| 25 | |
| 26 } // namespace gfx | |
| 27 | |
| 28 #endif // UI_GFX_VECTOR_ICONS_H_ | |
| OLD | NEW |