Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-button / paper-button-extracted.js
blobe5598731ae12ef1ef6f0dfc001027bc11361f572
1 Polymer({
2     is: 'paper-button',
4     behaviors: [
5       Polymer.PaperButtonBehavior
6     ],
8     properties: {
9       /**
10        * If true, the button should be styled with a shadow.
11        */
12       raised: {
13         type: Boolean,
14         reflectToAttribute: true,
15         value: false,
16         observer: '_calculateElevation'
17       }
18     },
20     _calculateElevation: function() {
21       if (!this.raised) {
22         this._elevation = 0;
23       } else {
24         Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this);
25       }
26     },
28     _computeContentClass: function(receivedFocusFromKeyboard) {
29       var className = 'content ';
30       if (receivedFocusFromKeyboard) {
31         className += ' keyboard-focus';
32       }
33       return className;
34     }
35   });