Add cr-toggle-button to Chrome
commit43dff8c48a305f4212a753d2afb58ed1cdbdbbd8
authormichaelpg <michaelpg@chromium.org>
Tue, 10 Feb 2015 00:45:58 +0000 (9 16:45 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 00:46:42 +0000 (10 00:46 +0000)
tree6aeb55dc51aeca69819285e749f8b9b78d0cdfab
parent6a6dc80aab193de63e92ead8b97cf33a6e925fee
Add cr-toggle-button to Chrome

Adds the chrome://resources/cr_elements URL, adding the
custom elements in ui/webui/resources/cr_elements. Sample in
chrome://md-settings.

Also creates cr-events to forward events that don't
cross the shadow root on their own.

BUG=456284

Review URL: https://codereview.chromium.org/902053003

Cr-Commit-Position: refs/heads/master@{#315455}
chrome/browser/resources/md_settings/md_settings.html
content/browser/webui/shared_resources_data_source.cc
ui/webui/resources/cr_elements/cr_events/cr-events.html [new file with mode: 0644]
ui/webui/resources/cr_elements/cr_events/cr-events.js [new file with mode: 0644]
ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.css [new file with mode: 0644]
ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.html [new file with mode: 0644]
ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js [new file with mode: 0644]
ui/webui/resources/cr_elements_resources.grdp [new file with mode: 0644]
ui/webui/resources/polymer_resources.grdp
ui/webui/resources/webui_resources.grd