Commit 9a6cce08 authored by dpapad's avatar dpapad Committed by Commit Bot

WebUI: Use relative paths where possible in shared UI elements, part 2.

This not only results to smaller file size, but also makes the code more
portable, since it is less dependent on chrome:// URLs, and can eventually
lead to running those elements and tests outside the context of a browser_tests
and without js2gtest.

Bug: 866236
Change-Id: I26b4a22f61b10cbbd1a19c5e055bb5c0f2aaf471
Reviewed-on: https://chromium-review.googlesource.com/1150931Reviewed-by: default avatarMichael Giuffrida <michaelpg@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578913}
parent d7e6faa5
<script src="chrome://resources/js/action_link.js"></script> <script src="../js/action_link.js"></script>
<!-- "action_link_css.html" replaces "action_link.css" for MD pages. --> <!-- "action_link_css.html" replaces "action_link.css" for MD pages. -->
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> <link rel="import" href="../cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html">
<dom-module id="action-link"> <dom-module id="action-link">
......
<script src="chrome://resources/js/assert.js"></script> <script src="../js/assert.js"></script>
<link rel="import" href="chrome://resources/html/promise_resolver.html"> <link rel="import" href="../html/promise_resolver.html">
<script src="chrome://resources/js/cr.js"></script> <script src="../js/cr.js"></script>
<script src="chrome://resources/js/cr/event_target.js"></script> <script src="../../js/cr/event_target.js"></script>
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../../html/cr.html">
<script src="chrome://resources/js/cr/ui.js"></script> <script src="../../js/cr/ui.js"></script>
<script src="chrome://resources/js/cr/ui/array_data_model.js"></script> <script src="../../../js/cr/ui/array_data_model.js"></script>
\ No newline at end of file
<link rel="import" href="chrome://resources/html/cr/ui.html"> <link rel="import" href="../../../html/cr/ui.html">
<script src="chrome://resources/js/cr/ui/command.js"></script> <script src="../../../js/cr/ui/command.js"></script>
<script src="chrome://resources/js/cr/ui/context_menu_button.js"></script> <script src="../../../js/cr/ui/context_menu_button.js"></script>
<script src="chrome://resources/js/cr/ui/context_menu_handler.js"></script> <script src="../../../js/cr/ui/context_menu_handler.js"></script>
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="../../../html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../../../html/cr.html">
<script src="chrome://resources/js/cr/ui/drag_wrapper.js"></script> <script src="../../../js/cr/ui/drag_wrapper.js"></script>
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="../../../html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../../../html/cr.html">
<link rel="import" href="chrome://resources/html/event_tracker.html"> <link rel="import" href="../../../html/event_tracker.html">
<script src="chrome://resources/js/cr/ui/focus_grid.js"></script> <script src="../../../js/cr/ui/focus_grid.js"></script>
<script src="chrome://resources/js/cr/ui/focus_manager.js"></script> <script src="../../../js/cr/ui/focus_manager.js"></script>
<script src="chrome://resources/js/cr/ui/focus_outline_manager.js"></script> <script src="../../../js/cr/ui/focus_outline_manager.js"></script>
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="../../../html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../../../html/cr.html">
<link rel="import" href="chrome://resources/html/event_tracker.html"> <link rel="import" href="../../../html/event_tracker.html">
<script src="chrome://resources/js/cr/ui/focus_row.js"></script> <script src="../../../js/cr/ui/focus_row.js"></script>
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../../../html/cr.html">
<link rel="import" href="chrome://resources/html/cr/ui.html"> <link rel="import" href="../../../html/cr/ui.html">
<script src="chrome://resources/js/cr/ui/focus_without_ink.js"></script> <script src="../../../js/cr/ui/focus_without_ink.js"></script>
<link rel="import" href="chrome://resources/html/cr/ui.html"> <link rel="import" href="../../../html/cr/ui.html">
<script src="chrome://resources/js/cr/ui/list.js"></script> <script src="../../../js/cr/ui/list.js"></script>
<link rel="import" href="chrome://resources/html/cr/ui.html"> <link rel="import" href="../../../html/cr/ui.html">
<script src="chrome://resources/js/cr/ui/list_item.js"></script> <script src="../../../js/cr/ui/list_item.js"></script>
<script src="chrome://resources/js/cr/ui/list_selection_controller.js"></script> <script src="../../../js/cr/ui/list_selection_controller.js"></script>
<script src="chrome://resources/js/cr/ui/list_selection_model.js"></script> <script src="../../../js/cr/ui/list_selection_model.js"></script>
<script src="chrome://resources/js/cr/ui/menu.js"></script> <script src="../../../js/cr/ui/menu.js"></script>
<script src="chrome://resources/js/cr/ui/menu_button.js"></script> <script src="../../../js/cr/ui/menu_button.js"></script>
<script src="chrome://resources/js/cr/ui/menu_item.js"></script> <script src="../../../js/cr/ui/menu_item.js"></script>
<script src="chrome://resources/js/cr/ui/overlay.js"></script> <script src="../../../js/cr/ui/overlay.js"></script>
<script src="chrome://resources/js/cr/ui/page_manager/page.js"></script> <script src="../../../../js/cr/ui/page_manager/page.js"></script>
<script src="chrome://resources/js/cr/ui/page_manager/page_manager.js"></script> <script src="../../../../js/cr/ui/page_manager/page_manager.js"></script>
<script src="chrome://resources/js/cr/ui/position_util.js"></script> <script src="../../../js/cr/ui/position_util.js"></script>
<link rel="import" href="chrome://resources/html/cr/ui.html"> <link rel="import" href="../../../html/cr/ui.html">
<script src="chrome://resources/js/cr/ui/splitter.js"></script> <script src="../../../js/cr/ui/splitter.js"></script>
<script src="chrome://resources/js/event_tracker.js"></script> <script src="../js/event_tracker.js"></script>
<link rel="import" href="chrome://resources/html/parse_html_subset.html"> <link rel="import" href="../html/parse_html_subset.html">
<script src="chrome://resources/js/i18n_behavior.js"></script> <script src="../js/i18n_behavior.js"></script>
<script src="chrome://resources/js/i18n_template_no_process.js"></script> <script src="../js/i18n_template_no_process.js"></script>
<script src="chrome://resources/js/i18n_template_process.js"></script> <script src="../js/i18n_template_process.js"></script>
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../html/cr.html">
<link rel="import" href="chrome://resources/html/util.html"> <link rel="import" href="../html/util.html">
<script src="chrome://resources/js/icon.js"></script> <script src="../js/icon.js"></script>
<script src="chrome://resources/js/list_property_update_behavior.js"></script> <script src="../js/list_property_update_behavior.js"></script>
<script src="chrome://resources/js/assert.js"></script> <script src="../js/assert.js"></script>
<script src="chrome://resources/js/load_time_data.js"></script> <script src="../js/load_time_data.js"></script>
<script src="chrome://resources/js/parse_html_subset.js"></script> <script src="../js/parse_html_subset.js"></script>
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="../html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> <link rel="import" href="../cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html">
<dom-module id="md-select"> <dom-module id="md-select">
......
<script src="chrome://resources/js/parse_html_subset.js"></script> <script src="../js/parse_html_subset.js"></script>
<script src="chrome://resources/js/polymer_config.js"></script> <script src="../js/polymer_config.js"></script>
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="../html/assert.html">
<script src="chrome://resources/js/promise_resolver.js"></script> <script src="../js/promise_resolver.js"></script>
<script src="chrome://resources/js/search_highlight_utils.js"></script> <script src="../js/search_highlight_utils.js"></script>
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="../html/assert.html">
<script src="chrome://resources/js/util.js"></script> <script src="../js/util.js"></script>
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="../html/cr.html">
<script src="chrome://resources/js/web_ui_listener_behavior.js"></script> <script src="../js/web_ui_listener_behavior.js"></script>
<script src="chrome://resources/js/webui_listener_tracker.js"></script> <script src="../js/webui_listener_tracker.js"></script>
...@@ -334,7 +334,7 @@ without changes to the corresponding grd file. --> ...@@ -334,7 +334,7 @@ without changes to the corresponding grd file. -->
compress="gzip" /> compress="gzip" />
<structure name="IDR_WEBUI_HTML_CR_UI_PAGE_MANAGER_PAGE" <structure name="IDR_WEBUI_HTML_CR_UI_PAGE_MANAGER_PAGE"
file="html/cr/ui/page_manager/page.html" type="chrome_html" file="html/cr/ui/page_manager/page.html" type="chrome_html"
compress="gzip" flattenhtml="true" /> compress="gzip" />
<structure name="IDR_WEBUI_HTML_CR_UI_PAGE_MANAGER_PAGE_MANAGER" <structure name="IDR_WEBUI_HTML_CR_UI_PAGE_MANAGER_PAGE_MANAGER"
file="html/cr/ui/page_manager/page_manager.html" file="html/cr/ui/page_manager/page_manager.html"
type="chrome_html" compress="gzip" /> type="chrome_html" compress="gzip" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment