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

Unified Diff: ui/gfx/vector_icons/vector_icons.cc.template

Issue 1231843002: Revert of Revert vector icon CLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_aide_oobe_completion
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/vector_icons/vector_icons.cc.template
diff --git a/ui/gfx/vector_icons/vector_icons.cc.template b/ui/gfx/vector_icons/vector_icons.cc.template
new file mode 100644
index 0000000000000000000000000000000000000000..9c8d3e22d5a8a776272eabb701dede797fab28ac
--- /dev/null
+++ b/ui/gfx/vector_icons/vector_icons.cc.template
@@ -0,0 +1,34 @@
+// 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.
+
+// vector_icons.cc.template is used to generate vector_icons.cc. Edit the former
+// rather than the latter.
+
+#include "ui/gfx/vector_icons.h"
+
+#include "base/logging.h"
+#include "ui/gfx/vector_icons_public.h"
+
+#define ICON_TEMPLATE(icon_name, ...) \
+ case VectorIconId::icon_name: {\
+ static PathElement path[] = {__VA_ARGS__};\
+ return path;\
+ }
+
+namespace gfx {
+
+const PathElement* GetPathForVectorIcon(VectorIconId id) {
+ switch (id) {
+ case VectorIconId::VECTOR_ICON_NONE:
+ NOTREACHED();
+ return nullptr;
+
+TEMPLATE_PLACEHOLDER
+ }
+
+ NOTREACHED();
+ return nullptr;
+}
+
+} // namespace gfx
« 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