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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 Polymer({ 1
2 Polymer({
2 is: 'paper-toggle-button', 3 is: 'paper-toggle-button',
3 4
4 behaviors: [ 5 behaviors: [
5 Polymer.PaperInkyFocusBehavior, 6 Polymer.PaperInkyFocusBehavior,
6 Polymer.IronCheckedElementBehavior 7 Polymer.IronCheckedElementBehavior
7 ], 8 ],
8 9
9 hostAttributes: { 10 hostAttributes: {
10 role: 'button', 11 role: 'button',
11 'aria-pressed': 'false', 12 'aria-pressed': 'false',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Math.max(0, this._trackChecked ? this._width + dx : dx)); 71 Math.max(0, this._trackChecked ? this._width + dx : dx));
71 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); 72 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton);
72 this._userActivate(this._x > (this._width / 2)); 73 this._userActivate(this._x > (this._width / 2));
73 }, 74 },
74 75
75 _trackEnd: function(track) { 76 _trackEnd: function(track) {
76 this.$.toggleButton.classList.remove('dragging'); 77 this.$.toggleButton.classList.remove('dragging');
77 this.transform('', this.$.toggleButton); 78 this.transform('', this.$.toggleButton);
78 } 79 }
79 80
80 }); 81 });
82
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698