Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: ui/gfx/vector_icons.h

Issue 1214693005: Introduce some util code for drawing vector assets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile? Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/vector_icons.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
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 class VectorIconId {
17 VECTOR_ICON_NONE,
18
19 CHECK_CIRCLE,
20 PHOTO_CAMERA,
21 };
22
23 // Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dip_size|
24 // is the length of a single edge of the square icon, in device independent
25 // pixels. |color| is used as the fill.
26 GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
27 VectorIconId id,
28 size_t dip_size,
29 SkColor color);
30
31 } // namespace gfx
32
33 #endif // UI_GFX_VECTOR_ICONS_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/vector_icons.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698