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

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

Issue 2733823003: Move final vector icons out of ui/gfx/vector_icons/ and remove the (Closed)
Patch Set: fix deps Created 3 years, 9 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/pdf.1x.icon ('k') | ui/gfx/vector_icons/vector_icons.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
deleted file mode 100644
index e935923303cf30aa55b701a814a7ae9feb3eb35f..0000000000000000000000000000000000000000
--- a/ui/gfx/vector_icons/vector_icons.cc.template
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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/vector_icons.h"
-
-#include "base/logging.h"
-#include "ui/gfx/vector_icon_types.h"
-
-#define ICON_TEMPLATE(icon_name, ...) \
- case VectorIconId::icon_name: {\
- static constexpr PathElement path[] = {__VA_ARGS__};\
- return path;\
- }
-
-namespace gfx {
-
-const PathElement* GetPathForVectorIcon(VectorIconId id) {
- switch (id) {
-TEMPLATE_PLACEHOLDER
-
- case VectorIconId::VECTOR_ICON_NONE:
- NOTREACHED();
- return nullptr;
- }
-
- NOTREACHED();
- return nullptr;
-}
-
-const PathElement* GetPathForVectorIconAt1xScale(VectorIconId id) {
- switch (id) {
-TEMPLATE_PLACEHOLDER_1X
-
- default:
- return GetPathForVectorIcon(id);
- }
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/vector_icons/pdf.1x.icon ('k') | ui/gfx/vector_icons/vector_icons.h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698