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

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

Issue 2832023004: MD Settings: reduce amount of focus ripples shown by mouse (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Polymer({ 1 Polymer({
2 is: 'paper-icon-button-light', 2 is: 'paper-icon-button-light',
3 extends: 'button', 3 extends: 'button',
4 4
5 behaviors: [ 5 behaviors: [
6 Polymer.PaperRippleBehavior 6 Polymer.PaperRippleBehavior
7 ], 7 ],
8 8
9 listeners: { 9 listeners: {
10 'down': '_rippleDown', 10 'down': '_rippleDown',
11 'up': '_rippleUp', 11 'up': '_rippleUp',
12 'focus': '_rippleDown', 12 'focus': '_rippleDown',
13 'blur': '_rippleUp', 13 'blur': '_rippleUp',
14 }, 14 },
15 15
16 _rippleDown: function() { 16 _rippleDown: function() {
17 this.getRipple().downAction(); 17 this.getRipple().uiDownAction();
18 }, 18 },
19 19
20 _rippleUp: function() { 20 _rippleUp: function() {
21 this.getRipple().upAction(); 21 this.getRipple().uiUpAction();
22 }, 22 },
23 23
24 /** 24 /**
25 * @param {...*} var_args 25 * @param {...*} var_args
26 */ 26 */
27 ensureRipple: function(var_args) { 27 ensureRipple: function(var_args) {
28 var lastRipple = this._ripple; 28 var lastRipple = this._ripple;
29 Polymer.PaperRippleBehavior.ensureRipple.apply(this, arguments); 29 Polymer.PaperRippleBehavior.ensureRipple.apply(this, arguments);
30 if (this._ripple && this._ripple !== lastRipple) { 30 if (this._ripple && this._ripple !== lastRipple) {
31 this._ripple.center = true; 31 this._ripple.center = true;
32 this._ripple.classList.add('circle'); 32 this._ripple.classList.add('circle');
33 } 33 }
34 } 34 }
35 }); 35 });
OLDNEW
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698