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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-ripple-behavior-extracted.js

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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 /**
2 * `Polymer.PaperRippleBehavior` dynamically implements a ripple 2 * `Polymer.PaperRippleBehavior` dynamically implements a ripple
3 * when the element has focus via pointer or keyboard. 3 * when the element has focus via pointer or keyboard.
4 * 4 *
5 * NOTE: This behavior is intended to be used in conjunction with and after 5 * NOTE: This behavior is intended to be used in conjunction with and after
6 * `Polymer.IronButtonState` and `Polymer.IronControlState`. 6 * `Polymer.IronButtonState` and `Polymer.IronControlState`.
7 * 7 *
8 * @polymerBehavior Polymer.PaperRippleBehavior 8 * @polymerBehavior Polymer.PaperRippleBehavior
9 */ 9 */
10 Polymer.PaperRippleBehavior = { 10 Polymer.PaperRippleBehavior = {
11
12 properties: { 11 properties: {
13 /** 12 /**
14 * If true, the element will not produce a ripple effect when interacted 13 * If true, the element will not produce a ripple effect when interacted
15 * with via the pointer. 14 * with via the pointer.
16 */ 15 */
17 noink: { 16 noink: {
18 type: Boolean, 17 type: Boolean,
19 observer: '_noinkChanged' 18 observer: '_noinkChanged'
20 }, 19 },
21 20
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 _createRipple: function() { 101 _createRipple: function() {
103 return /** @type {!PaperRippleElement} */ ( 102 return /** @type {!PaperRippleElement} */ (
104 document.createElement('paper-ripple')); 103 document.createElement('paper-ripple'));
105 }, 104 },
106 105
107 _noinkChanged: function(noink) { 106 _noinkChanged: function(noink) {
108 if (this.hasRipple()) { 107 if (this.hasRipple()) {
109 this._ripple.noink = noink; 108 this._ripple.noink = noink;
110 } 109 }
111 } 110 }
112
113 }; 111 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698