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

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

Issue 1336623003: [MD settings] updating polymer to 1.1.13 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed Polymer.IronCheckedElementBehavior name 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 Polymer({
2
3 is: 'paper-button', 2 is: 'paper-button',
4 3
5 behaviors: [ 4 behaviors: [
6 Polymer.PaperButtonBehavior 5 Polymer.PaperButtonBehavior
7 ], 6 ],
8 7
9 properties: { 8 properties: {
10
11 /** 9 /**
12 * If true, the button should be styled with a shadow. 10 * If true, the button should be styled with a shadow.
13 */ 11 */
14 raised: { 12 raised: {
15 type: Boolean, 13 type: Boolean,
16 reflectToAttribute: true, 14 reflectToAttribute: true,
17 value: false, 15 value: false,
18 observer: '_calculateElevation' 16 observer: '_calculateElevation'
19 } 17 }
20 }, 18 },
21 19
22 _calculateElevation: function() { 20 _calculateElevation: function() {
23 if (!this.raised) { 21 if (!this.raised) {
24 this._elevation = 0; 22 this._elevation = 0;
25 } else { 23 } else {
26 Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this); 24 Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this);
27 } 25 }
28 }, 26 },
29 27
30 _computeContentClass: function(receivedFocusFromKeyboard) { 28 _computeContentClass: function(receivedFocusFromKeyboard) {
31 var className = 'content '; 29 var className = 'content ';
32 if (receivedFocusFromKeyboard) { 30 if (receivedFocusFromKeyboard) {
33 className += ' keyboard-focus'; 31 className += ' keyboard-focus';
34 } 32 }
35 return className; 33 return className;
36 } 34 }
37 }); 35 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698