0

WebUI: Start auto-generating parts of webui_resources.grd

Creating an auto-generated webui_generated_resources.grd file to host
resources moved over from the non-generated webui_resources.grd.

In this CL:
 - auto-generating entries for third_party/polymer/
 - auto-generating entries for third_party/web-animations-js/
 - removing aliases from shared_resources_data_source.cc that become
   obsolete by the auto-generation.
 - adding webui_generated_resources.grd to the build (currently
   only for !ios && !android)
 - delete obsolete tools/polymer/txt_to_polymer_grdp.py script

Bug: 1132403
Change-Id: I244ab22b7178771da71e55b5bcaf9f823d291c4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489921
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821143}
This commit is contained in:
dpapad
2020-10-27 08:56:16 +00:00
committed by Commit Bot
parent fe1f2f904f
commit 5989252a8c
15 changed files with 288 additions and 648 deletions

@ -143,6 +143,7 @@ template("chrome_extra_paks") {
"$root_gen_dir/chrome/settings_resources.pak",
"$root_gen_dir/content/browser/devtools/devtools_resources.pak",
"$root_gen_dir/headless/headless_lib_resources.pak",
"$root_gen_dir/ui/resources/webui_generated_resources.pak",
]
deps += [
"//chrome/browser/media/kaleidoscope:kaleidoscope_resources",

@ -88,6 +88,8 @@ include_rules = [
"+ui/latency",
"+ui/native_theme",
"+ui/resources/grit/ui_resources.h",
"+ui/resources/grit/webui_generated_resources.h",
"+ui/resources/grit/webui_generated_resources_map.h",
"+ui/resources/grit/webui_resources.h",
"+ui/resources/grit/webui_resources_map.h",
"+ui/shell_dialogs",

@ -46,6 +46,10 @@
#include "base/strings/utf_string_conversions.h"
#endif
#if !defined(OS_ANDROID)
#include "ui/resources/grit/webui_generated_resources_map.h"
#endif
namespace content {
namespace {
@ -56,10 +60,6 @@ const std::map<std::string, std::string> CreatePathPrefixAliasesMap() {
// TODO(rkc): Once we have a separate source for apps, remove '*/apps/'
// aliases.
std::map<std::string, std::string> aliases = {
{"../../../third_party/polymer/v1_0/components-chromium/", "polymer/v1_0/"},
{"../../../third_party/polymer/v3_0/components-chromium/", "polymer/v3_0/"},
{"../../../third_party/web-animations-js/sources/",
"polymer/v1_0/web-animations-js/"},
{"../../views/resources/default_100_percent/common/", "images/apps/"},
{"../../views/resources/default_200_percent/common/", "images/2x/apps/"},
{"../../webui/resources/cr_components/", "cr_components/"},
@ -77,8 +77,6 @@ const std::map<std::string, std::string> CreatePathPrefixAliasesMap() {
#if !defined(OS_ANDROID)
aliases["../../../third_party/lottie/"] = "lottie/";
aliases["../../../third_party/polymer/v1_0/components-chromium/polymer2/"] =
"polymer/v1_0/polymer/";
#endif // !defined(OS_ANDROID)
return aliases;
}
@ -232,6 +230,11 @@ const ResourcesMap* CreateResourcesMap() {
AddAliasedResourcesToMap(CreateContentResourceIdToAliasMap(),
kMediaInternalsResources,
kMediaInternalsResourcesSize, result);
#if !defined(OS_ANDROID)
AddGritResourcesToMap(
base::make_span(kWebuiGeneratedResources, kWebuiGeneratedResourcesSize),
result);
#endif
AddGritResourcesToMap(
base::make_span(kMojoBindingsResources, kMojoBindingsResourcesSize),
result);

118
third_party/polymer/v1_0/BUILD.gn vendored Normal file

@ -0,0 +1,118 @@
# Copyright 2020 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.
import("//ui/webui/resources/tools/generate_grd.gni")
generate_grd("build_grdp") {
grd_prefix = "polymer_1_0"
out_grd = "$target_gen_dir/${grd_prefix}_resources.grdp"
input_files = [
"font-roboto/roboto.html",
"iron-a11y-announcer/iron-a11y-announcer-extracted.js",
"iron-a11y-announcer/iron-a11y-announcer.html",
"iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js",
"iron-a11y-keys-behavior/iron-a11y-keys-behavior.html",
"iron-a11y-keys/iron-a11y-keys-extracted.js",
"iron-a11y-keys/iron-a11y-keys.html",
"iron-behaviors/iron-button-state-extracted.js",
"iron-behaviors/iron-button-state.html",
"iron-behaviors/iron-control-state-extracted.js",
"iron-behaviors/iron-control-state.html",
"iron-collapse/iron-collapse-extracted.js",
"iron-collapse/iron-collapse.html",
"iron-fit-behavior/iron-fit-behavior-extracted.js",
"iron-fit-behavior/iron-fit-behavior.html",
"iron-flex-layout/iron-flex-layout-classes.html",
"iron-flex-layout/iron-flex-layout.html",
"iron-icon/iron-icon-extracted.js",
"iron-icon/iron-icon.html",
"iron-iconset-svg/iron-iconset-svg-extracted.js",
"iron-iconset-svg/iron-iconset-svg.html",
"iron-list/iron-list-extracted.js",
"iron-list/iron-list.html",
"iron-location/iron-location-extracted.js",
"iron-location/iron-location.html",
"iron-location/iron-query-params-extracted.js",
"iron-location/iron-query-params.html",
"iron-media-query/iron-media-query-extracted.js",
"iron-media-query/iron-media-query.html",
"iron-meta/iron-meta-extracted.js",
"iron-meta/iron-meta.html",
"iron-pages/iron-pages-extracted.js",
"iron-pages/iron-pages.html",
"iron-range-behavior/iron-range-behavior-extracted.js",
"iron-range-behavior/iron-range-behavior.html",
"iron-resizable-behavior/iron-resizable-behavior-extracted.js",
"iron-resizable-behavior/iron-resizable-behavior.html",
"iron-scroll-target-behavior/iron-scroll-target-behavior-extracted.js",
"iron-scroll-target-behavior/iron-scroll-target-behavior.html",
"iron-scroll-threshold/iron-scroll-threshold-extracted.js",
"iron-scroll-threshold/iron-scroll-threshold.html",
"iron-selector/iron-multi-selectable-extracted.js",
"iron-selector/iron-multi-selectable.html",
"iron-selector/iron-selectable-extracted.js",
"iron-selector/iron-selectable.html",
"iron-selector/iron-selection-extracted.js",
"iron-selector/iron-selection.html",
"iron-selector/iron-selector-extracted.js",
"iron-selector/iron-selector.html",
"paper-behaviors/paper-ripple-behavior-extracted.js",
"paper-behaviors/paper-ripple-behavior.html",
"paper-progress/paper-progress-extracted.js",
"paper-progress/paper-progress.html",
"paper-ripple/paper-ripple-extracted.js",
"paper-ripple/paper-ripple.html",
"paper-spinner/paper-spinner-behavior-extracted.js",
"paper-spinner/paper-spinner-behavior.html",
"paper-spinner/paper-spinner-lite-extracted.js",
"paper-spinner/paper-spinner-lite.html",
"paper-spinner/paper-spinner-styles.html",
"paper-styles/color.html",
"paper-styles/shadow.html",
"paper-tooltip/paper-tooltip-extracted.js",
"paper-tooltip/paper-tooltip.html",
"polymer2/polymer-extracted.js",
"polymer2/polymer.html",
]
if (is_chromeos) {
input_files += [
"html-imports/html-imports.min.js",
"iron-dropdown/iron-dropdown-extracted.js",
"iron-dropdown/iron-dropdown.html",
"iron-dropdown/iron-dropdown-scroll-manager-extracted.js",
"iron-dropdown/iron-dropdown-scroll-manager.html",
"iron-overlay-behavior/iron-focusables-helper-extracted.js",
"iron-overlay-behavior/iron-focusables-helper.html",
"iron-overlay-behavior/iron-overlay-backdrop-extracted.js",
"iron-overlay-behavior/iron-overlay-backdrop.html",
"iron-overlay-behavior/iron-overlay-behavior-extracted.js",
"iron-overlay-behavior/iron-overlay-behavior.html",
"iron-overlay-behavior/iron-overlay-manager-extracted.js",
"iron-overlay-behavior/iron-overlay-manager.html",
"iron-overlay-behavior/iron-scroll-manager-extracted.js",
"iron-overlay-behavior/iron-scroll-manager.html",
"neon-animation/animations/fade-in-animation-extracted.js",
"neon-animation/animations/fade-in-animation.html",
"neon-animation/animations/fade-out-animation-extracted.js",
"neon-animation/animations/fade-out-animation.html",
"neon-animation/neon-animatable-behavior-extracted.js",
"neon-animation/neon-animatable-behavior.html",
"neon-animation/neon-animatable-extracted.js",
"neon-animation/neon-animatable.html",
"neon-animation/neon-animated-pages-extracted.js",
"neon-animation/neon-animated-pages.html",
"neon-animation/neon-animation-behavior-extracted.js",
"neon-animation/neon-animation-behavior.html",
"neon-animation/neon-animation-runner-behavior-extracted.js",
"neon-animation/neon-animation-runner-behavior.html",
"neon-animation/web-animations.html",
]
}
input_files_base_dir = rebase_path("./components-chromium/", "//")
resource_path_rewrites = [
"polymer2/polymer-extracted.js|polymer/polymer-extracted.js",
"polymer2/polymer.html|polymer/polymer.html",
]
}

71
third_party/polymer/v3_0/BUILD.gn vendored Normal file

@ -0,0 +1,71 @@
# Copyright 2020 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.
import("//ui/webui/resources/tools/generate_grd.gni")
generate_grd("build_grdp") {
grd_prefix = "polymer_3_0"
out_grd = "$target_gen_dir/${grd_prefix}_resources.grdp"
input_files = [
"font-roboto/roboto.js",
"iron-a11y-announcer/iron-a11y-announcer.js",
"iron-a11y-keys-behavior/iron-a11y-keys-behavior.js",
"iron-a11y-keys/iron-a11y-keys.js",
"iron-behaviors/iron-button-state.js",
"iron-behaviors/iron-control-state.js",
"iron-collapse/iron-collapse.js",
"iron-fit-behavior/iron-fit-behavior.js",
"iron-flex-layout/iron-flex-layout-classes.js",
"iron-flex-layout/iron-flex-layout.js",
"iron-icon/iron-icon.js",
"iron-iconset-svg/iron-iconset-svg.js",
"iron-list/iron-list.js",
"iron-location/iron-location.js",
"iron-location/iron-query-params.js",
"iron-media-query/iron-media-query.js",
"iron-meta/iron-meta.js",
"iron-pages/iron-pages.js",
"iron-range-behavior/iron-range-behavior.js",
"iron-resizable-behavior/iron-resizable-behavior.js",
"iron-scroll-target-behavior/iron-scroll-target-behavior.js",
"iron-scroll-threshold/iron-scroll-threshold.js",
"iron-selector/iron-multi-selectable.js",
"iron-selector/iron-selectable.js",
"iron-selector/iron-selection.js",
"iron-selector/iron-selector.js",
"iron-test-helpers/mock-interactions.js",
"paper-behaviors/paper-inky-focus-behavior.js",
"paper-behaviors/paper-ripple-behavior.js",
"paper-progress/paper-progress.js",
"paper-ripple/paper-ripple.js",
"paper-spinner/paper-spinner-behavior.js",
"paper-spinner/paper-spinner-lite.js",
"paper-spinner/paper-spinner-styles.js",
"paper-styles/color.js",
"paper-styles/shadow.js",
"paper-styles/typography.js",
"paper-tooltip/paper-tooltip.js",
"polymer/polymer_bundled.min.js",
]
if (is_chromeos) {
input_files += [
"iron-dropdown/iron-dropdown.js",
"iron-dropdown/iron-dropdown-scroll-manager.js",
"iron-overlay-behavior/iron-focusables-helper.js",
"iron-overlay-behavior/iron-overlay-backdrop.js",
"iron-overlay-behavior/iron-overlay-behavior.js",
"iron-overlay-behavior/iron-overlay-manager.js",
"iron-overlay-behavior/iron-scroll-manager.js",
"neon-animation/animations/fade-in-animation.js",
"neon-animation/animations/fade-out-animation.js",
"neon-animation/neon-animatable-behavior.js",
"neon-animation/neon-animatable.js",
"neon-animation/neon-animated-pages.js",
"neon-animation/neon-animation-behavior.js",
"neon-animation/neon-animation-runner-behavior.js",
]
}
input_files_base_dir = rebase_path("./components-chromium/", "//")
}

13
third_party/web-animations-js/BUILD.gn vendored Normal file

@ -0,0 +1,13 @@
# Copyright 2020 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.
import("//ui/webui/resources/tools/generate_grd.gni")
generate_grd("build_grdp") {
grd_prefix = "web_animations"
out_grd = "$target_gen_dir/${grd_prefix}_resources.grdp"
input_files = [ "web-animations-next-lite.min.js" ]
input_files_base_dir = rebase_path("./sources", "//")
resource_path_rewrites = [ "web-animations-next-lite.min.js|polymer/v1_0/web-animations-js/web-animations-next-lite.min.js" ]
}

@ -645,6 +645,10 @@
"includes": [3800],
"structures": [3820],
},
"<(SHARED_INTERMEDIATE_DIR)/ui/webui/resources/webui_generated_resources.grd": {
"META": {"sizes": {"includes": [200]}},
"includes": [3830],
},
"weblayer/weblayer_resources.grd": {
"includes": [3840],
},

@ -1,114 +0,0 @@
#!/usr/bin/env python
# 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.
from __future__ import with_statement
from __future__ import print_function
import argparse
import os
import string
import sys
FILE_TEMPLATE = \
"""<?xml version="1.0" encoding="utf-8"?>
<!--
This file is partially generated. See note below about the "partially" part.
Please use 'src/tools/polymer/polymer_grdp_to_txt.py' and
'src/tools/polymer/txt_to_polymer_grdp.py' to modify it, if possible.
'polymer_grdp_to_txt.py' converts 'polymer_resources.grdp' to a plain list of
used Polymer components:
...
iron-iron-iconset/iron-iconset-extracted.js
iron-iron-iconset/iron-iconset.html
...
'txt_to_polymer_grdp.py' converts list back to GRDP file.
Usage:
$ polymer_grdp_to_txt.py polymer_resources.grdp \-\-polymer_version=%(version)s > /tmp/list.txt
$ vim /tmp/list.txt
$ txt_to_polymer_grdp.py /tmp/list.txt \-\-polymer_version=%(version)s > polymer_resources.grdp
NOTE: Regenerating this file will eliminate all previous <if expr> statements.
Please restore these manually.
-->
<grit-part>
<!-- Polymer %(version)s.0 -->
%(contents)s
%(web_animations)s
</grit-part>
"""
DEFINITION_TEMPLATE_WEB_ANIMATIONS = \
""" <structure name="IDR_POLYMER_1_0_WEB_ANIMATIONS_JS_WEB_ANIMATIONS_NEXT_LITE_MIN_JS"
file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js"
type="chrome_html" />"""
DEFINITION_TEMPLATE = \
""" <structure name="%(name)s"
file="../../../third_party/polymer/v%(version)s_0/components-chromium/%(path)s"
type="chrome_html" />"""
def PathToGritId(polymer_version, path):
table = string.maketrans(string.lowercase + '/.-', string.uppercase + '___')
return ('IDR_POLYMER_%s_0_' % polymer_version) + path.translate(table)
def SortKey(polymer_version, record):
return (record, PathToGritId(record, polymer_version))
def ParseRecord(record):
return record.strip()
class FileNotFoundException(Exception):
pass
_HERE = os.path.dirname(os.path.realpath(__file__))
def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('--polymer_version', required=True)
args = parser.parse_args(argv)
polymer_version = args.polymer_version
polymer_dir = os.path.join(_HERE, os.pardir, os.pardir,
'third_party', 'polymer', 'v%s_0' % polymer_version,
'components-chromium')
with open(args.input) as f:
records = [ParseRecord(r) for r in f if not r.isspace()]
lines = []
for path in sorted(set(records), key=lambda r: SortKey(r, polymer_version)):
full_path = os.path.normpath(os.path.join(polymer_dir, path))
if not os.path.exists(full_path):
raise FileNotFoundException('%s not found' % full_path)
lines.append(DEFINITION_TEMPLATE % {
'version': polymer_version,
'name': PathToGritId(polymer_version, path),
'path': path})
print(FILE_TEMPLATE % {
'contents':
'\n'.join(lines),
'web_animations':
'' if polymer_version == '3' else DEFINITION_TEMPLATE_WEB_ANIMATIONS,
'version':
polymer_version
})
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))

@ -12,6 +12,9 @@ group("resources") {
":ui_unscaled_resources_grd",
":webui_resources_grd",
]
if (!is_android && !is_ios) {
public_deps += [ ":webui_generated_resources_grd" ]
}
}
grit("ui_resources_grd") {
@ -55,6 +58,29 @@ grit("webui_resources_grd") {
]
}
if (!is_android && !is_ios) {
grit("webui_generated_resources_grd") {
enable_input_discovery_for_gn_analyze = false
defines = [ "SHARED_INTERMEDIATE_DIR=" +
rebase_path(root_gen_dir, root_build_dir) ]
source = "$root_gen_dir/ui/webui/resources/webui_generated_resources.grd"
deps = [ "//ui/webui/resources:build_grd" ]
outputs = [
"grit/webui_generated_resources.h",
"grit/webui_generated_resources_map.cc",
"grit/webui_generated_resources_map.h",
"webui_generated_resources.pak",
]
grit_flags = [
"-E",
"root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
"-E",
"root_src_dir=" + rebase_path("//", root_build_dir),
]
}
}
if (!is_mac) {
copy("copy_ui_resources_100_percent") {
sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ]
@ -149,6 +175,10 @@ repack("repack_ui_test_pak_100_percent") {
]
}
if (!is_android && !is_ios) {
sources += [ "$root_gen_dir/ui/resources/webui_generated_resources.pak" ]
}
output = "$root_out_dir/ui_test.pak"
deps = [

@ -4,9 +4,35 @@
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/grit/preprocess_grit.gni")
import("//ui/webui/resources/tools/generate_grd.gni")
preprocess_folder = "preprocessed"
include_polymer = !is_android && !is_ios
if (include_polymer) {
# Note: Currently webui_generated_resources.grd contains only Polymer-related
# files so no need to exist where Polymer is not available. This might
# change as more files are moved to webui_generated_resources.grd.
generate_grd("build_grd") {
grd_prefix = "webui_generated"
out_grd = "$target_gen_dir/${grd_prefix}_resources.grd"
deps = [
"//third_party/polymer/v1_0:build_grdp",
"//third_party/polymer/v3_0:build_grdp",
]
grdp_files = [
"$root_gen_dir/third_party/polymer/v1_0/polymer_1_0_resources.grdp",
"$root_gen_dir/third_party/polymer/v3_0/polymer_3_0_resources.grdp",
]
if (is_chromeos) {
deps += [ "//third_party/web-animations-js:build_grdp" ]
grdp_files += [ "$root_gen_dir/third_party/web-animations-js/web_animations_resources.grdp" ]
}
}
}
group("preprocess") {
deps = [
":preprocess_generated",
@ -24,7 +50,7 @@ preprocess_grit("preprocess_src") {
"js/plural_string_proxy.js",
]
if (!is_android) {
if (include_polymer) {
in_files += [
"cr_elements/cr_splitter/cr_splitter.js",
"cr_components/certificate_manager/certificates_browser_proxy.js",
@ -57,7 +83,7 @@ preprocess_grit("preprocess_generated") {
"js/cr/ui/store.m.js",
]
if (!is_android) {
if (include_polymer) {
in_files += [
"cr_components/certificate_manager/ca_trust_edit_dialog.js",
"cr_components/certificate_manager/certificate_delete_confirmation_dialog.js",

@ -1,327 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is partially generated. See note below about the "partially" part.
Please use 'src/tools/polymer/polymer_grdp_to_txt.py' and
'src/tools/polymer/txt_to_polymer_grdp.py' to modify it, if possible.
'polymer_grdp_to_txt.py' converts 'polymer_resources.grdp' to a plain list of
used Polymer components:
...
iron-iron-iconset/iron-iconset-extracted.js
iron-iron-iconset/iron-iconset.html
...
'txt_to_polymer_grdp.py' converts list back to GRDP file.
Usage:
$ polymer_grdp_to_txt.py polymer_resources.grdp \-\-polymer-version=1 > /tmp/list.txt
$ vim /tmp/list.txt
$ txt_to_polymer_grdp.py /tmp/list.txt \-\-polymer-version=1 > polymer_resources.grdp
NOTE: Regenerating this file will eliminate all previous <if expr> statements.
Please restore these manually.
-->
<grit-part>
<!-- Polymer 1.0 -->
<structure name="IDR_POLYMER_1_0_FONT_ROBOTO_ROBOTO_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/font-roboto/roboto.html"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_1_0_HTML_IMPORTS_HTML_IMPORTS_MIN_JS"
file="../../../third_party/polymer/v1_0/components-chromium/html-imports/html-imports.min.js"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_1_0_IRON_A11Y_ANNOUNCER_IRON_A11Y_ANNOUNCER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_A11Y_ANNOUNCER_IRON_A11Y_ANNOUNCER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_A11Y_KEYS_BEHAVIOR_IRON_A11Y_KEYS_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_A11Y_KEYS_BEHAVIOR_IRON_A11Y_KEYS_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_A11Y_KEYS_IRON_A11Y_KEYS_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-keys/iron-a11y-keys-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_A11Y_KEYS_IRON_A11Y_KEYS_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-a11y-keys/iron-a11y-keys.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_BEHAVIORS_IRON_BUTTON_STATE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_BEHAVIORS_IRON_BUTTON_STATE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_BEHAVIORS_IRON_CONTROL_STATE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-control-state-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_BEHAVIORS_IRON_CONTROL_STATE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-control-state.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_COLLAPSE_IRON_COLLAPSE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-collapse/iron-collapse-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_COLLAPSE_IRON_COLLAPSE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-collapse/iron-collapse.html"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_1_0_IRON_DROPDOWN_IRON_DROPDOWN_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_DROPDOWN_IRON_DROPDOWN_SCROLL_MANAGER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-scroll-manager-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_DROPDOWN_IRON_DROPDOWN_SCROLL_MANAGER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-scroll-manager.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_DROPDOWN_IRON_DROPDOWN_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown.html"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_1_0_IRON_FIT_BEHAVIOR_IRON_FIT_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-fit-behavior/iron-fit-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_FIT_BEHAVIOR_IRON_FIT_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-fit-behavior/iron-fit-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_FLEX_LAYOUT_IRON_FLEX_LAYOUT_CLASSES_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-flex-layout/iron-flex-layout-classes.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_FLEX_LAYOUT_IRON_FLEX_LAYOUT_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-flex-layout/iron-flex-layout.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_ICON_IRON_ICON_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-icon/iron-icon-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_ICON_IRON_ICON_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-icon/iron-icon.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_ICONSET_SVG_IRON_ICONSET_SVG_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-iconset-svg/iron-iconset-svg-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_ICONSET_SVG_IRON_ICONSET_SVG_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-iconset-svg/iron-iconset-svg.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LIST_IRON_LIST_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-list/iron-list-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LIST_IRON_LIST_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-list/iron-list.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LOCATION_IRON_LOCATION_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-location/iron-location-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LOCATION_IRON_LOCATION_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-location/iron-location.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LOCATION_IRON_QUERY_PARAMS_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-location/iron-query-params-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_LOCATION_IRON_QUERY_PARAMS_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-location/iron-query-params.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_MEDIA_QUERY_IRON_MEDIA_QUERY_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-media-query/iron-media-query-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_MEDIA_QUERY_IRON_MEDIA_QUERY_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-media-query/iron-media-query.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_META_IRON_META_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-meta/iron-meta-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_META_IRON_META_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-meta/iron-meta.html"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_FOCUSABLES_HELPER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-focusables-helper-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_FOCUSABLES_HELPER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-focusables-helper.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BACKDROP_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-backdrop-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BACKDROP_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-backdrop.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_MANAGER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-manager-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_MANAGER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-manager.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_SCROLL_MANAGER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-scroll-manager-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_OVERLAY_BEHAVIOR_IRON_SCROLL_MANAGER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-scroll-manager.html"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_1_0_IRON_PAGES_IRON_PAGES_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-pages/iron-pages-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_PAGES_IRON_PAGES_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-pages/iron-pages.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_RANGE_BEHAVIOR_IRON_RANGE_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-range-behavior/iron-range-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_RANGE_BEHAVIOR_IRON_RANGE_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-range-behavior/iron-range-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_RESIZABLE_BEHAVIOR_IRON_RESIZABLE_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-resizable-behavior/iron-resizable-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_RESIZABLE_BEHAVIOR_IRON_RESIZABLE_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-resizable-behavior/iron-resizable-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SCROLL_TARGET_BEHAVIOR_IRON_SCROLL_TARGET_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-scroll-target-behavior/iron-scroll-target-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SCROLL_TARGET_BEHAVIOR_IRON_SCROLL_TARGET_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-scroll-target-behavior/iron-scroll-target-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SCROLL_THRESHOLD_IRON_SCROLL_THRESHOLD_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-scroll-threshold/iron-scroll-threshold-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SCROLL_THRESHOLD_IRON_SCROLL_THRESHOLD_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-scroll-threshold/iron-scroll-threshold.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_MULTI_SELECTABLE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-multi-selectable-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_MULTI_SELECTABLE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-multi-selectable.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTABLE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selectable-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTABLE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selectable.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTION_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selection-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTION_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selection.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_IRON_SELECTOR_IRON_SELECTOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/iron-selector/iron-selector.html"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_ANIMATIONS_FADE_IN_ANIMATION_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/animations/fade-in-animation-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_ANIMATIONS_FADE_IN_ANIMATION_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/animations/fade-in-animation.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_ANIMATIONS_FADE_OUT_ANIMATION_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/animations/fade-out-animation-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_ANIMATIONS_FADE_OUT_ANIMATION_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/animations/fade-out-animation.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATABLE_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animatable-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATABLE_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animatable-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATABLE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animatable-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATABLE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animatable.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATED_PAGES_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATED_PAGES_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATION_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATION_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATION_RUNNER_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_NEON_ANIMATION_RUNNER_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/neon-animation-runner-behavior.html"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_1_0_NEON_ANIMATION_WEB_ANIMATIONS_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/neon-animation/web-animations.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_BEHAVIORS_PAPER_RIPPLE_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-ripple-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_BEHAVIORS_PAPER_RIPPLE_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-ripple-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_PROGRESS_PAPER_PROGRESS_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-progress/paper-progress-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_PROGRESS_PAPER_PROGRESS_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-progress/paper-progress.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_RIPPLE_PAPER_RIPPLE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_RIPPLE_PAPER_RIPPLE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_SPINNER_PAPER_SPINNER_BEHAVIOR_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-behavior-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_SPINNER_PAPER_SPINNER_BEHAVIOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-behavior.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_SPINNER_PAPER_SPINNER_LITE_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-lite-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_SPINNER_PAPER_SPINNER_LITE_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-lite.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_SPINNER_PAPER_SPINNER_STYLES_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-styles.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_STYLES_COLOR_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-styles/color.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_STYLES_SHADOW_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-styles/shadow.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_TOOLTIP_PAPER_TOOLTIP_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/paper-tooltip/paper-tooltip-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_PAPER_TOOLTIP_PAPER_TOOLTIP_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/paper-tooltip/paper-tooltip.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_POLYMER2_POLYMER_EXTRACTED_JS"
file="../../../third_party/polymer/v1_0/components-chromium/polymer2/polymer-extracted.js"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_POLYMER2_POLYMER_HTML"
file="../../../third_party/polymer/v1_0/components-chromium/polymer2/polymer.html"
type="chrome_html" />
<structure name="IDR_POLYMER_1_0_WEB_ANIMATIONS_JS_WEB_ANIMATIONS_NEXT_LITE_MIN_JS"
file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js"
type="chrome_html" />
</grit-part>

@ -1,193 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is partially generated. See note below about the "partially" part.
Please use 'src/tools/polymer/polymer_grdp_to_txt.py' and
'src/tools/polymer/txt_to_polymer_grdp.py' to modify it, if possible.
'polymer_grdp_to_txt.py' converts 'polymer_resources.grdp' to a plain list of
used Polymer components:
...
iron-iron-iconset/iron-iconset-extracted.js
iron-iron-iconset/iron-iconset.html
...
'txt_to_polymer_grdp.py' converts list back to GRDP file.
Usage:
$ polymer_grdp_to_txt.py polymer_resources.grdp \-\-polymer_version=3 > /tmp/list.txt
$ vim /tmp/list.txt
$ txt_to_polymer_grdp.py /tmp/list.txt \-\-polymer_version=3 > polymer_resources.grdp
NOTE: Regenerating this file will eliminate all previous <if expr> statements.
Please restore these manually.
-->
<grit-part>
<!-- Polymer 3.0 -->
<structure name="IDR_POLYMER_3_0_FONT_ROBOTO_ROBOTO_JS"
file="../../../third_party/polymer/v3_0/components-chromium/font-roboto/roboto.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_A11Y_ANNOUNCER_IRON_A11Y_ANNOUNCER_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_A11Y_KEYS_BEHAVIOR_IRON_A11Y_KEYS_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_A11Y_KEYS_IRON_A11Y_KEYS_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-a11y-keys/iron-a11y-keys.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_BEHAVIORS_IRON_BUTTON_STATE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-behaviors/iron-button-state.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_BEHAVIORS_IRON_CONTROL_STATE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-behaviors/iron-control-state.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_COLLAPSE_IRON_COLLAPSE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-collapse/iron-collapse.js"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_3_0_IRON_DROPDOWN_IRON_DROPDOWN_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-dropdown/iron-dropdown.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_DROPDOWN_IRON_DROPDOWN_SCROLL_MANAGER_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-dropdown/iron-dropdown-scroll-manager.js"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_3_0_IRON_FIT_BEHAVIOR_IRON_FIT_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-fit-behavior/iron-fit-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_FLEX_LAYOUT_IRON_FLEX_LAYOUT_CLASSES_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-flex-layout/iron-flex-layout-classes.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_FLEX_LAYOUT_IRON_FLEX_LAYOUT_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-flex-layout/iron-flex-layout.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_ICONSET_SVG_IRON_ICONSET_SVG_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-iconset-svg/iron-iconset-svg.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_ICON_IRON_ICON_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-icon/iron-icon.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_LIST_IRON_LIST_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-list/iron-list.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_LOCATION_IRON_LOCATION_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-location/iron-location.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_LOCATION_IRON_QUERY_PARAMS_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-location/iron-query-params.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_MEDIA_QUERY_IRON_MEDIA_QUERY_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-media-query/iron-media-query.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_META_IRON_META_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-meta/iron-meta.js"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_3_0_IRON_OVERLAY_BEHAVIOR_IRON_FOCUSABLES_HELPER_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-overlay-behavior/iron-focusables-helper.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BACKDROP_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-overlay-behavior/iron-overlay-backdrop.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_OVERLAY_BEHAVIOR_IRON_OVERLAY_MANAGER_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-overlay-behavior/iron-overlay-manager.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_OVERLAY_BEHAVIOR_IRON_SCROLL_MANAGER_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-overlay-behavior/iron-scroll-manager.js"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_3_0_IRON_PAGES_IRON_PAGES_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-pages/iron-pages.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_RANGE_BEHAVIOR_IRON_RANGE_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-range-behavior/iron-range-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_RESIZABLE_BEHAVIOR_IRON_RESIZABLE_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-resizable-behavior/iron-resizable-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SCROLL_TARGET_BEHAVIOR_IRON_SCROLL_TARGET_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-scroll-target-behavior/iron-scroll-target-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SCROLL_THRESHOLD_IRON_SCROLL_THRESHOLD_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-scroll-threshold/iron-scroll-threshold.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SELECTOR_IRON_MULTI_SELECTABLE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-selector/iron-multi-selectable.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SELECTOR_IRON_SELECTABLE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-selector/iron-selectable.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SELECTOR_IRON_SELECTION_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-selector/iron-selection.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_SELECTOR_IRON_SELECTOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-selector/iron-selector.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_IRON_TEST_HELPERS_MOCK_INTERACTIONS_JS"
file="../../../third_party/polymer/v3_0/components-chromium/iron-test-helpers/mock-interactions.js"
type="chrome_html" />
<if expr="chromeos">
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_ANIMATIONS_FADE_IN_ANIMATION_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/animations/fade-in-animation.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_ANIMATIONS_FADE_OUT_ANIMATION_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/animations/fade-out-animation.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_NEON_ANIMATABLE_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/neon-animatable-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_NEON_ANIMATABLE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/neon-animatable.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_NEON_ANIMATED_PAGES_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/neon-animated-pages.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_NEON_ANIMATION_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/neon-animation-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_NEON_ANIMATION_NEON_ANIMATION_RUNNER_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/neon-animation/neon-animation-runner-behavior.js"
type="chrome_html" />
</if>
<structure name="IDR_POLYMER_3_0_PAPER_BEHAVIORS_PAPER_INKY_FOCUS_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-behaviors/paper-inky-focus-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_BEHAVIORS_PAPER_RIPPLE_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-behaviors/paper-ripple-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_PROGRESS_PAPER_PROGRESS_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-progress/paper-progress.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_RIPPLE_PAPER_RIPPLE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-ripple/paper-ripple.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_SPINNER_PAPER_SPINNER_BEHAVIOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-spinner/paper-spinner-behavior.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_SPINNER_PAPER_SPINNER_LITE_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-spinner/paper-spinner-lite.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_SPINNER_PAPER_SPINNER_STYLES_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-spinner/paper-spinner-styles.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_STYLES_COLOR_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-styles/color.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_STYLES_SHADOW_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-styles/shadow.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_STYLES_TYPOGRAPHY_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-styles/typography.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_PAPER_TOOLTIP_PAPER_TOOLTIP_JS"
file="../../../third_party/polymer/v3_0/components-chromium/paper-tooltip/paper-tooltip.js"
type="chrome_html" />
<structure name="IDR_POLYMER_3_0_POLYMER_POLYMER_BUNDLED_MIN_JS"
file="../../../third_party/polymer/v3_0/components-chromium/polymer/polymer_bundled.min.js"
type="chrome_html" />
</grit-part>

@ -36,10 +36,10 @@ template("generate_grd") {
if (defined(invoker.input_files)) {
args += [
"--input-files-base-dir",
invoker.input_files_base_dir,
]
args += [ "--input-files" ] + invoker.input_files
"--input-files-base-dir",
invoker.input_files_base_dir,
"--input-files",
] + invoker.input_files
}
if (defined(invoker.resource_path_rewrites)) {

@ -84,8 +84,16 @@ def _generate_include_row(grd_prefix, filename, pathname, \
extension = os.path.splitext(filename)[1]
type = 'chrome_html' if extension == '.html' or extension == '.js' \
else 'BINDATA'
resource_path = resource_path_rewrites[filename] \
if filename in resource_path_rewrites else filename
# Rewrite resource_path for third_party/polymer/.
if 'third_party/polymer/v1_0/components-chromium/' in pathname:
resource_path = 'polymer/v1_0/' + resource_path
if 'third_party/polymer/v3_0/components-chromium/' in pathname:
resource_path = 'polymer/v3_0/' + resource_path
return GRD_INCLUDE_TEMPLATE.format(
file=pathname,
path=resource_path,

@ -470,8 +470,6 @@ without changes to the corresponding grd file. -->
<part file="cr_components/cr_components_resources.grdp" />
<part file="cr_elements_resources.grdp" />
<part file="cr_polymer_resources.grdp" />
<part file="polymer_resources.grdp" />
<part file="polymer_resources_v3.grdp" />
</if>
</structures>
</release>