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

Unified Diff: third_party/polymer/components-chromium/core-icon-button/core-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/core-icon-button/core-icon-button-extracted.js
diff --git a/third_party/polymer/components-chromium/core-icon-button/core-icon-button-extracted.js b/third_party/polymer/components-chromium/core-icon-button/core-icon-button-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..0e7e8d782602cdab722e4583938a669eba847fd2
--- /dev/null
+++ b/third_party/polymer/components-chromium/core-icon-button/core-icon-button-extracted.js
@@ -0,0 +1,42 @@
+
+
+ Polymer('core-icon-button', {
+
+ /**
+ * The URL of an image for the icon. Should not use `icon` property
+ * if you are using this property.
+ *
+ * @attribute src
+ * @type string
+ * @default ''
+ */
+ src: '',
+
+ /**
+ * If true, border is placed around the button to indicate it's
+ * active state.
+ *
+ * @attribute active
+ * @type boolean
+ * @default false
+ */
+ active: false,
+
+ /**
+ * Specifies the icon name or index in the set of icons available in
+ * the icon set. Should not use `src` property if you are using this
+ * property.
+ *
+ * @attribute icon
+ * @type string
+ * @default ''
+ */
+ icon: '',
+
+ activeChanged: function() {
+ this.classList.toggle('selected', this.active);
+ }
+
+ });
+
+

Powered by Google App Engine
This is Rietveld 408576698