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

Side by Side Diff: ui/gfx/vector_icons/vector_icons.cc.template

Issue 1228923002: Revert vector icon CLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_aide_oobe_completion
Patch Set: 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
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 // vector_icons.cc.template is used to generate vector_icons.cc. Edit the former
6 // rather than the latter.
7
8 #include "ui/gfx/vector_icons.h"
9
10 #include "base/logging.h"
11 #include "ui/gfx/vector_icons_public.h"
12
13 #define ICON_TEMPLATE(icon_name, ...) \
14 case VectorIconId::icon_name: {\
15 static PathElement path[] = {__VA_ARGS__};\
16 return path;\
17 }
18
19 namespace gfx {
20
21 const PathElement* GetPathForVectorIcon(VectorIconId id) {
22 switch (id) {
23 case VectorIconId::VECTOR_ICON_NONE:
24 NOTREACHED();
25 return nullptr;
26
27 TEMPLATE_PLACEHOLDER
28 }
29
30 NOTREACHED();
31 return nullptr;
32 }
33
34 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/vector_icons/photo_camera.icon ('k') | ui/gfx/vector_icons/vector_icons_public.h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698