Chromium Code Reviews

Unified Diff: ui/webui/resources/custom_elements/cr/toggle-button/cr-toggle-button.html

Issue 902053003: Add cr-toggle-button to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: ui/webui/resources/custom_elements/cr/toggle-button/cr-toggle-button.html
diff --git a/ui/webui/resources/custom_elements/cr/toggle-button/cr-toggle-button.html b/ui/webui/resources/custom_elements/cr/toggle-button/cr-toggle-button.html
new file mode 100644
index 0000000000000000000000000000000000000000..541f0c809903ce5bb38b6def9f44bae24449ea84
--- /dev/null
+++ b/ui/webui/resources/custom_elements/cr/toggle-button/cr-toggle-button.html
@@ -0,0 +1,15 @@
+<link rel="import"
+ href="chrome://resources/polymer/paper-toggle-button/paper-toggle-button.html">
+<link rel="import"
+ href="chrome://resources/custom-elements/cr/util/cr-util.html">
+
+<polymer-element name="cr-toggle-button">
+ <template>
+ <link rel="stylesheet" href="cr-toggle-button.css">
+ <cr-util id="util"></cr-util>
+ <paper-toggle-button id="toggle-button"
+ checked?="{{ checked }}" disabled?="{{ disabled }}">
+ </paper-toggle-button>
+ </template>
+ <script src="cr-toggle-button.js"></script>
+</polymer-element>

Powered by Google App Engine