summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/resources/ui_resources.gyp9
-rw-r--r--ui/webui/resources/cr_elements_resources.grdp20
-rw-r--r--ui/webui/resources/polymer_resources.grdp52
3 files changed, 47 insertions, 34 deletions
diff --git a/ui/resources/ui_resources.gyp b/ui/resources/ui_resources.gyp
index 10eb97d..f46e1f2 100644
--- a/ui/resources/ui_resources.gyp
+++ b/ui/resources/ui_resources.gyp
@@ -9,6 +9,9 @@
'target_name': 'ui_resources',
'type': 'none',
'variables': {
+ # Enable to include Polymer 0.8 in the binary.
+ 'enable_polymer_v08%': 0,
+
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/resources',
},
'actions': [
@@ -23,6 +26,12 @@
'action_name': 'webui_resources',
'variables': {
'grit_grd_file': '../webui/resources/webui_resources.grd',
+
+ 'conditions': [
+ ['enable_polymer_v08==1', {
+ 'grit_defines': ['-D', 'enable_polymer_v08'],
+ }],
+ ],
},
'includes': [ '../../build/grit_action.gypi' ],
},
diff --git a/ui/webui/resources/cr_elements_resources.grdp b/ui/webui/resources/cr_elements_resources.grdp
index 6c44a42..bad164f 100644
--- a/ui/webui/resources/cr_elements_resources.grdp
+++ b/ui/webui/resources/cr_elements_resources.grdp
@@ -104,13 +104,15 @@
type="chrome_html" />
<!-- Polymer 0.8 Elements -->
- <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_CSS"
- file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.css"
- type="chrome_html" />
- <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_HTML"
- file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.html"
- type="chrome_html" />
- <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_JS"
- file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js"
- type="chrome_html" />
+ <if expr="enable_polymer_v08">
+ <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_CSS"
+ file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.css"
+ type="chrome_html" />
+ <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_HTML"
+ file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.html"
+ type="chrome_html" />
+ <structure name="IDR_CR_ELEMENTS_08_CR_CHECKBOX_JS"
+ file="../../webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js"
+ type="chrome_html" />
+ </if>
</grit-part>
diff --git a/ui/webui/resources/polymer_resources.grdp b/ui/webui/resources/polymer_resources.grdp
index 2af362c..5886972 100644
--- a/ui/webui/resources/polymer_resources.grdp
+++ b/ui/webui/resources/polymer_resources.grdp
@@ -475,29 +475,31 @@
file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js.map"
type="chrome_html" />
- <!-- Polymer 0.8 Elements, -->
- <structure name="IDR_POLYMER_08_POLYMER_POLYMER_HTML"
- file="../../../third_party/polymer/v0_8/components-chromium/polymer/polymer.html"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_POLYMER_POLYMER_JS"
- file="../../../third_party/polymer/v0_8/components-chromium/polymer/polymer.js"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_CSS"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox.css"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_EXTRACTED_JS"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox-extracted.js"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_HTML"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox.html"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_RIPPLE_PAPER_RIPPLE_EXTRACTED_JS"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-ripple/paper-ripple-extracted.js"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_RIPPLE_PAPER_RIPPLE_HTML"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-ripple/paper-ripple.html"
- type="chrome_html" />
- <structure name="IDR_POLYMER_08_PAPER_STYLES_DEFAULT_THEME_HTML"
- file="../../../third_party/polymer/v0_8/components-chromium/paper-styles/default-theme.html"
- type="chrome_html" />
+ <!-- Polymer 0.8 -->
+ <if expr="enable_polymer_v08">
+ <structure name="IDR_POLYMER_08_POLYMER_POLYMER_HTML"
+ file="../../../third_party/polymer/v0_8/components-chromium/polymer/polymer.html"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_POLYMER_POLYMER_JS"
+ file="../../../third_party/polymer/v0_8/components-chromium/polymer/polymer.js"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_CSS"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox.css"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_EXTRACTED_JS"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox-extracted.js"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_CHECKBOX_PAPER_CHECKBOX_HTML"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-checkbox/paper-checkbox.html"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_RIPPLE_PAPER_RIPPLE_EXTRACTED_JS"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-ripple/paper-ripple-extracted.js"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_RIPPLE_PAPER_RIPPLE_HTML"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-ripple/paper-ripple.html"
+ type="chrome_html" />
+ <structure name="IDR_POLYMER_08_PAPER_STYLES_DEFAULT_THEME_HTML"
+ file="../../../third_party/polymer/v0_8/components-chromium/paper-styles/default-theme.html"
+ type="chrome_html" />
+ </if>
</grit-part>