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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-button-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, 5 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 /** @polymerBehavior Polymer.PaperButtonBehavior */ 1 /** @polymerBehavior Polymer.PaperButtonBehavior */
2 Polymer.PaperButtonBehaviorImpl = { 2 Polymer.PaperButtonBehaviorImpl = {
3
4 properties: { 3 properties: {
5
6 /** 4 /**
7 * The z-depth of this element, from 0-5. Setting to 0 will remove the 5 * The z-depth of this element, from 0-5. Setting to 0 will remove the
8 * shadow, and each increasing number greater than 0 will be "deeper" 6 * shadow, and each increasing number greater than 0 will be "deeper"
9 * than the last. 7 * than the last.
10 * 8 *
11 * @attribute elevation 9 * @attribute elevation
12 * @type number 10 * @type number
13 * @default 1 11 * @default 1
14 */ 12 */
15 elevation: { 13 elevation: {
16 type: Number, 14 type: Number,
17 reflectToAttribute: true, 15 reflectToAttribute: true,
18 readOnly: true 16 readOnly: true
19 } 17 }
20
21 }, 18 },
22 19
23 observers: [ 20 observers: [
24 '_calculateElevation(focused, disabled, active, pressed, receivedFocusFrom Keyboard)', 21 '_calculateElevation(focused, disabled, active, pressed, receivedFocusFrom Keyboard)',
25 '_computeKeyboardClass(receivedFocusFromKeyboard)' 22 '_computeKeyboardClass(receivedFocusFromKeyboard)'
26 ], 23 ],
27 24
28 hostAttributes: { 25 hostAttributes: {
29 role: 'button', 26 role: 'button',
30 tabindex: '0', 27 tabindex: '0',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 * create a ripple up effect. 63 * create a ripple up effect.
67 * 64 *
68 * @param {!KeyboardEvent} event . 65 * @param {!KeyboardEvent} event .
69 */ 66 */
70 _spaceKeyUpHandler: function(event) { 67 _spaceKeyUpHandler: function(event) {
71 Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this, event); 68 Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this, event);
72 if (this.hasRipple()) { 69 if (this.hasRipple()) {
73 this._ripple.uiUpAction(); 70 this._ripple.uiUpAction();
74 } 71 }
75 } 72 }
76
77 }; 73 };
78 74
79 /** @polymerBehavior */ 75 /** @polymerBehavior */
80 Polymer.PaperButtonBehavior = [ 76 Polymer.PaperButtonBehavior = [
81 Polymer.IronButtonState, 77 Polymer.IronButtonState,
82 Polymer.IronControlState, 78 Polymer.IronControlState,
83 Polymer.PaperRippleBehavior, 79 Polymer.PaperRippleBehavior,
84 Polymer.PaperButtonBehaviorImpl 80 Polymer.PaperButtonBehaviorImpl
85 ]; 81 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698