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

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

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rerun reproduce.sh Created 5 years, 8 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 Polymer.PaperButtonElevation = {
4
5 properties: {
6
7 _elevation: {
8 type: Number
9 }
10
11 },
12
13 _calculateElevation: function() {
14 var e = 1;
15 if (this.disabled || !this.raised) {
16 e = 0;
17 } else if (this.active || this.pressed) {
18 e = 2;
19 } else if (this.focused) {
20 e = 3;
21 }
22 this._elevation = e;
23 }
24
25 };
26
27 Polymer.PaperButtonBehavior = [
28 Polymer.IronControlState,
29 Polymer.IronButtonState,
30 Polymer.PaperButtonElevation
31 ];
32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698