Add ICU message format support
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-button / paper-button-extracted.js
bloba4b23fc5399987ea96d4f94b29f348b6e14988a5
3   Polymer({
5     is: 'paper-button',
7     behaviors: [
8       Polymer.PaperButtonBehavior
9     ],
11     properties: {
13       /**
14        * If true, the button should be styled with a shadow.
15        */
16       raised: {
17         type: Boolean,
18         reflectToAttribute: true,
19         value: false,
20         observer: '_calculateElevation'
21       }
22     },
24     _calculateElevation: function() {
25       if (!this.raised) {
26         this._elevation = 0;
27       } else {
28         Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this);
29       }
30     },
32     _computeContentClass: function(receivedFocusFromKeyboard) {
33       var className = 'content ';
34       if (receivedFocusFromKeyboard) {
35         className += ' keyboard-focus';
36       }
37       return className;
38     }
39   });