OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // vector_icons.cc.template is used to generate vector_icons.cc. Edit the former | 5 // vector_icons.cc.template is used to generate vector_icons.cc. Edit the former |
6 // rather than the latter. | 6 // rather than the latter. |
7 | 7 |
8 #include "ui/app_list/vector_icons.h" | 8 #include "ui/app_list/vector_icons/vector_icons.h" |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "ui/gfx/vector_icon_types.h" | 11 #include "ui/gfx/vector_icon_types.h" |
12 | 12 |
13 #define PATH_ELEMENT_TEMPLATE(path_name, ...) \ | 13 #define PATH_ELEMENT_TEMPLATE(path_name, ...) \ |
14 static constexpr gfx::PathElement path_name[] = {__VA_ARGS__}; | 14 static constexpr gfx::PathElement path_name[] = {__VA_ARGS__}; |
15 | 15 |
16 #define VECTOR_ICON_TEMPLATE(icon_name, path_name, path_name_1x) \ | 16 #define VECTOR_ICON_TEMPLATE(icon_name, path_name, path_name_1x) \ |
17 const gfx::VectorIcon icon_name = { path_name , path_name_1x }; | 17 const gfx::VectorIcon icon_name = { path_name , path_name_1x }; |
18 | 18 |
19 namespace app_list { | 19 namespace app_list { |
20 | 20 |
21 using namespace gfx; | 21 using namespace gfx; |
22 | 22 |
23 TEMPLATE_PLACEHOLDER | 23 TEMPLATE_PLACEHOLDER |
24 | 24 |
25 } // namespace app_list | 25 } // namespace app_list |
OLD | NEW |