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

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

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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/components-chromium/paper-icon-button/paper-icon-button-extracted.js
diff --git a/third_party/polymer/components-chromium/paper-icon-button/paper-icon-button-extracted.js b/third_party/polymer/components-chromium/paper-icon-button/paper-icon-button-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..4a6920b044b3c7f4feb9b63dfd6df2aff9e3b037
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-icon-button/paper-icon-button-extracted.js
@@ -0,0 +1,35 @@
+
+
+ Polymer('paper-icon-button', {
+
+ publish: {
+
+ /**
+ * If true, the ripple expands to a square to fill the containing box.
+ *
+ * @attribute fill
+ * @type boolean
+ * @default false
+ */
+ fill: {value: false, reflect: true}
+
+ },
+
+ ready: function() {
+ this.$.ripple.classList.add('recenteringTouch');
+ this.fillChanged();
+ },
+
+ fillChanged: function() {
+ this.$.ripple.classList.toggle('circle', !this.fill);
+ },
+
+ iconChanged: function(oldIcon) {
+ if (!this.label) {
+ this.setAttribute('aria-label', this.icon);
+ }
+ }
+
+ });
+
+

Powered by Google App Engine
This is Rietveld 408576698