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

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

Issue 1140583003: Material PDF: Add required Polymer 0.8 elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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-fab/paper-fab-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-fab/paper-fab-extracted.js
similarity index 52%
copy from third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button-extracted.js
copy to third_party/polymer/v0_8/components-chromium/paper-fab/paper-fab-extracted.js
index 523fe5099a54475164efb75abd1d894a8f2a63f6..de419bad2d81ebd41ef32a913750290c7f5e332a 100644
--- a/third_party/polymer/v0_8/components-chromium/paper-icon-button/paper-icon-button-extracted.js
+++ b/third_party/polymer/v0_8/components-chromium/paper-fab/paper-fab-extracted.js
@@ -1,29 +1,51 @@
Polymer({
- is: 'paper-icon-button',
+ is: 'paper-fab',
+
+ enableCustomStyleProperties: true,
behaviors: [
Polymer.PaperButtonBehavior
],
- enableCustomStyleProperties: true,
-
properties: {
/**
* The URL of an image for the icon. If the src property is specified,
* the icon property should not be.
+ *
+ * @attribute src
+ * @type string
+ * @default ''
*/
src: {
- type: String
+ type: String,
+ value: ''
},
/**
* Specifies the icon name or index in the set of icons available in
* the icon's icon set. If the icon property is specified,
* the src property should not be.
+ *
+ * @attribute icon
+ * @type string
+ * @default ''
*/
icon: {
- type: String
+ type: String,
+ value: ''
+ },
+
+ /**
+ * Set this to true to style this is a "mini" FAB.
+ *
+ * @attribute mini
+ * @type boolean
+ * @default false
+ */
+ mini: {
+ type: Boolean,
+ value: false
}
}
});

Powered by Google App Engine
This is Rietveld 408576698