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

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

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 6 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
(Empty)
1
2
3 /** @polymerBehavior */
4 Polymer.PaperButtonBehaviorImpl = {
5
6 properties: {
7
8 _elevation: {
9 type: Number
10 }
11
12 },
13
14 observers: [
15 '_calculateElevation(focused, disabled, active, pressed, receivedFocusFrom Keyboard)'
16 ],
17
18 hostAttributes: {
19 role: 'button',
20 tabindex: '0'
21 },
22
23 _calculateElevation: function() {
24 var e = 1;
25 if (this.disabled) {
26 e = 0;
27 } else if (this.active || this.pressed) {
28 e = 4;
29 } else if (this.receivedFocusFromKeyboard) {
30 e = 3;
31 }
32 this._elevation = e;
33 }
34 };
35
36 Polymer.PaperButtonBehavior = [
37 Polymer.IronButtonState,
38 Polymer.IronControlState,
39 Polymer.PaperButtonBehaviorImpl
40 ];
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698