Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html

Issue 909313003: Add cr-checkbox to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html
diff --git a/ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html b/ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html
new file mode 100644
index 0000000000000000000000000000000000000000..d4a641fffa7614a7886abfb365f27df49d2078a5
--- /dev/null
+++ b/ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html
@@ -0,0 +1,15 @@
+<link rel="import"
+ href="chrome://resources/polymer/paper-checkbox/paper-checkbox.html">
+<link rel="import"
+ href="chrome://resources/cr_elements/cr_events/cr_events.html">
Dan Beam 2015/02/13 21:56:49 that's weird. why are we using _ when polymer use
Dan Beam 2015/02/13 21:56:49 chrome cr cr cr :(
michaelpg 2015/02/13 23:27:57 cf. paper-checkbox/paper-checkbox.html "cr_events
michaelpg 2015/02/13 23:27:57 yeah. We decided to be consistent with the rest of
Dan Beam 2015/02/19 22:47:56 that's repetitive. that's repetitive. it wastes s
michaelpg 2015/02/20 01:26:48 My editor cuts this down to 2s... but I acknowledg
+
+<polymer-element name="cr-checkbox">
+ <template>
+ <link rel="stylesheet" href="cr_checkbox.css">
+ <cr-events id="events"></cr-events>
+ <paper-checkbox id="checkbox"
+ checked?="{{ checked }}" disabled?="{{ disabled }}" label="{{ label }}">
+ </paper-checkbox>
+ </template>
+ <script src="cr_checkbox.js"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698