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

Unified Diff: ui/vector_icons/vector_icons.h.template

Issue 2667753006: Make new target for vector icon structs to replace ui/gfx/vector_icons/ (Closed)
Patch Set: git add again Created 3 years, 11 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
Index: ui/vector_icons/vector_icons.h.template
diff --git a/ui/vector_icons/vector_icons.h.template b/ui/vector_icons/vector_icons.h.template
new file mode 100644
index 0000000000000000000000000000000000000000..9b8861c2ce34081b0db13aad44c53198e23e66c9
--- /dev/null
+++ b/ui/vector_icons/vector_icons.h.template
@@ -0,0 +1,26 @@
+// Copyright 2017 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.h.template is used to generate vector_icons.h. Edit the former
+// rather than the latter.
+
+#ifndef UI_VECTOR_ICONS_VECTOR_ICONS_H_
+#define UI_VECTOR_ICONS_VECTOR_ICONS_H_
+
+namespace gfx {
+struct VectorIcon;
+}
+
+#define VECTOR_ICON_TEMPLATE_H(icon_name) \
+extern const gfx::VectorIcon icon_name;
sky 2017/02/03 16:20:06 Don't you need to export there?
Evan Stade 2017/02/03 18:35:01 I would have thought so, but I believe that only a
+
+namespace ui {
+
+TEMPLATE_PLACEHOLDER
+
+} // namespace ui
+
+#undef VECTOR_ICON_TEMPLATE_H
+
+#endif // UI_VECTOR_ICONS_VECTOR_ICONS_H_

Powered by Google App Engine
This is Rietveld 408576698