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

Unified Diff: third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js
index 6181650ab7e9b19d7940711c03b021a17b0bd5b7..a4b23fc5399987ea96d4f94b29f348b6e14988a5 100644
--- a/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js
+++ b/third_party/polymer/v0_8/components-chromium/paper-button/paper-button-extracted.js
@@ -12,29 +12,29 @@
/**
* If true, the button should be styled with a shadow.
- *
- * @attribute raised
- * @type boolean
- * @default false
*/
raised: {
type: Boolean,
reflectToAttribute: true,
value: false,
- observer: '_buttonStateChanged'
+ observer: '_calculateElevation'
}
-
},
- ready: function() {
- if (!this.hasAttribute('role')) {
- this.setAttribute('role', 'button');
+ _calculateElevation: function() {
+ if (!this.raised) {
+ this._elevation = 0;
+ } else {
+ Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this);
}
},
- _buttonStateChanged: function() {
- this._calculateElevation();
+ _computeContentClass: function(receivedFocusFromKeyboard) {
+ var className = 'content ';
+ if (receivedFocusFromKeyboard) {
+ className += ' keyboard-focus';
+ }
+ return className;
}
-
});

Powered by Google App Engine
This is Rietveld 408576698