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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 1 Polymer({
2 Polymer({
3 is: 'paper-toggle-button', 2 is: 'paper-toggle-button',
4 3
5 behaviors: [ 4 behaviors: [
6 Polymer.PaperInkyFocusBehavior 5 Polymer.PaperInkyFocusBehavior
7 ], 6 ],
8 7
9 hostAttributes: { 8 hostAttributes: {
10 role: 'button', 9 role: 'button',
11 'aria-pressed': 'false', 10 'aria-pressed': 'false',
12 tabindex: 0 11 tabindex: 0
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Math.max(0, this._trackChecked ? this._width + dx : dx)); 102 Math.max(0, this._trackChecked ? this._width + dx : dx));
104 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); 103 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton);
105 this._userActivate(this._x > (this._width / 2)); 104 this._userActivate(this._x > (this._width / 2));
106 }, 105 },
107 106
108 _trackEnd: function(track) { 107 _trackEnd: function(track) {
109 this.$.toggleButton.classList.remove('dragging'); 108 this.$.toggleButton.classList.remove('dragging');
110 this.transform('', this.$.toggleButton); 109 this.transform('', this.$.toggleButton);
111 } 110 }
112 111
113 }); 112 });
114
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698