| Index: ash/resources/vector_icons/vector_icons.cc.template
|
| diff --git a/ash/resources/vector_icons/vector_icons.cc.template b/ash/resources/vector_icons/vector_icons.cc.template
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e6f5f90101dbb63d73e8e912cae7b0bf7f998144
|
| --- /dev/null
|
| +++ b/ash/resources/vector_icons/vector_icons.cc.template
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2016 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 "ash/resources/vector_icons/vector_icons.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "ui/gfx/vector_icon_types.h"
|
| +
|
| +#define PATH_ELEMENT_TEMPLATE(path_name, ...) \
|
| +static 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 ash {
|
| +
|
| +using namespace gfx;
|
| +
|
| +TEMPLATE_PLACEHOLDER
|
| +
|
| +} // namespace ash
|
|
|