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

Unified Diff: third_party/polymer/components-chromium/paper-radio-button/paper-radio-button-extracted.js

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 6 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/components-chromium/paper-radio-button/paper-radio-button-extracted.js
diff --git a/third_party/polymer/components-chromium/paper-radio-button/paper-radio-button-extracted.js b/third_party/polymer/components-chromium/paper-radio-button/paper-radio-button-extracted.js
deleted file mode 100644
index f32546c6054b79138da80309601fab9589859d23..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/paper-radio-button/paper-radio-button-extracted.js
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
- Polymer('paper-radio-button', {
-
- /**
- * Fired when the checked state changes due to user interaction.
- *
- * @event change
- */
-
- /**
- * Fired when the checked state changes.
- *
- * @event core-change
- */
-
- publish: {
- /**
- * Gets or sets the state, `true` is checked and `false` is unchecked.
- *
- * @attribute checked
- * @type boolean
- * @default false
- */
- checked: {value: false, reflect: true},
-
- /**
- * The label for the radio button.
- *
- * @attribute label
- * @type string
- * @default ''
- */
- label: '',
-
- /**
- * Normally the user cannot uncheck the radio button by tapping once
- * checked. Setting this property to `true` makes the radio button
- * toggleable from checked to unchecked.
- *
- * @attribute toggles
- * @type boolean
- * @default false
- */
- toggles: false,
-
- /**
- * If true, the user cannot interact with this element.
- *
- * @attribute disabled
- * @type boolean
- * @default false
- */
- disabled: {value: false, reflect: true}
- },
-
- eventDelegates: {
- tap: 'tap'
- },
-
- tap: function() {
- if (this.disabled) {
- return;
- }
- var old = this.checked;
- this.toggle();
- if (this.checked !== old) {
- this.fire('change');
- }
- },
-
- toggle: function() {
- this.checked = !this.toggles || !this.checked;
- },
-
- checkedChanged: function() {
- this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
- this.fire('core-change');
- },
-
- labelChanged: function() {
- this.setAttribute('aria-label', this.label);
- }
-
- });
-

Powered by Google App Engine
This is Rietveld 408576698