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

Unified Diff: components/omnibox/browser/vector_icons/vector_icons.cc.template

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment 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: components/omnibox/browser/vector_icons/vector_icons.cc.template
diff --git a/components/omnibox/browser/vector_icons/vector_icons.cc.template b/components/omnibox/browser/vector_icons/vector_icons.cc.template
new file mode 100644
index 0000000000000000000000000000000000000000..d7b6f834ed4684bc29a59e0f7944ba66c0527b10
--- /dev/null
+++ b/components/omnibox/browser/vector_icons/vector_icons.cc.template
@@ -0,0 +1,25 @@
+// 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.cc.template is used to generate vector_icons.cc. Edit the former
+// rather than the latter.
+
+#include "components/omnibox/browser/vector_icons.h"
+
+#include "base/logging.h"
+#include "ui/gfx/vector_icon_types.h"
+
+#define PATH_ELEMENT_TEMPLATE(path_name, ...) \
+static constexpr gfx::PathElement path_name[] = {__VA_ARGS__};
+
+#define VECTOR_ICON_TEMPLATE(icon_name, path_name, path_name_1x) \
+const gfx::VectorIcon icon_name = { path_name , path_name_1x };
+
+namespace omnibox {
+
+using namespace gfx;
+
+TEMPLATE_PLACEHOLDER
+
+}
« no previous file with comments | « components/omnibox/browser/vector_icons/star.1x.icon ('k') | components/omnibox/browser/vector_icons/vector_icons.h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698