Chromium Code Reviews| Index: components/vector_icons/vector_icons.cc.template |
| diff --git a/components/vector_icons/vector_icons.cc.template b/components/vector_icons/vector_icons.cc.template |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..edda9f5bf82a26cccbb89e650e4e74c337fbb794 |
| --- /dev/null |
| +++ b/components/vector_icons/vector_icons.cc.template |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
Evan Stade
2017/05/18 14:30:27
2017
acondor_
2017/05/18 15:54:17
Done.
|
| +// 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/vector_icons/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 vector_icons { |
| + |
| +using namespace gfx; |
| + |
| +TEMPLATE_PLACEHOLDER |
| + |
| +} // namespace vector_icons |