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

Unified Diff: third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html

Issue 1124053009: Pull latest Polymer elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html
diff --git a/third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html b/third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html
index 1da57ac5d062c9fc9ece349105a0358caf64fee3..a593ac102d355545715df6e51de36065c4893b23 100644
--- a/third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html
+++ b/third_party/polymer/v0_8/components/paper-toggle-button/paper-toggle-button.html
@@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
-<link rel="import" href="../paper-behaviors/paper-button-behavior.html">
+<link rel="import" href="../paper-behaviors/paper-radio-button-behavior.html">
<!--
`paper-toggle-button` provides a ON/OFF switch that user can toggle the state
@@ -67,7 +67,7 @@ Styling toggle-button:
is: 'paper-toggle-button',
behaviors: [
- Polymer.PaperButtonBehavior
+ Polymer.PaperRadioButtonBehavior
],
// The custom properties shim is currently an opt-in feature.
@@ -101,7 +101,22 @@ Styling toggle-button:
type: Boolean,
value: false,
reflectToAttribute: true,
+ notify: true,
observer: '_checkedChanged'
+ },
+
+ /**
+ * If true, the button toggles the active state with each tap or press
+ * of the spacebar.
+ *
+ * @attribute toggles
+ * @type boolean
+ * @default true
+ */
+ toggles: {
+ type: Boolean,
+ value: true,
+ reflectToAttribute: true
}
},
@@ -111,10 +126,6 @@ Styling toggle-button:
//xtrack: '_ontrack'
},
- ready: function() {
- this.toggles = true;
- },
-
// button-behavior hook
_buttonStateChanged: function() {
this.checked = this.active;

Powered by Google App Engine
This is Rietveld 408576698