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

Unified Diff: third_party/polymer/components-chromium/core-scaffold/core-scaffold-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-scaffold/core-scaffold-extracted.js
diff --git a/third_party/polymer/components-chromium/core-scaffold/core-scaffold-extracted.js b/third_party/polymer/components-chromium/core-scaffold/core-scaffold-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..de5795e79c8d9a7f95a5bd3b5a07acaeb3f862aa
--- /dev/null
+++ b/third_party/polymer/components-chromium/core-scaffold/core-scaffold-extracted.js
@@ -0,0 +1,52 @@
+
+
+ Polymer('core-scaffold', {
+
+ publish: {
+ /**
+ * When the browser window size is smaller than the `responsiveWidth`,
+ * `core-drawer-panel` changes to a narrow layout. In narrow layout,
+ * the drawer will be stacked on top of the main panel.
+ *
+ * @attribute responsiveWidth
+ * @type string
+ * @default '600px'
+ */
+ responsiveWidth: '600px',
+
+ /**
+ * Used to control the header and scrolling behaviour of `core-header-panel`
+ *
+ * @attribute mode
+ * @type string
+ * @default 'seamed'
+ */
+ mode: {value: 'seamed', reflect: true}
+ },
+
+ /**
+ * Toggle the drawer panel
+ * @method togglePanel
+ */
+ togglePanel: function() {
+ this.$.drawerPanel.togglePanel();
+ },
+
+ /**
+ * Open the drawer panel
+ * @method openDrawer
+ */
+ openDrawer: function() {
+ this.$.drawerPanel.openDrawer();
+ },
+
+ /**
+ * Close the drawer panel
+ * @method closeDrawer
+ */
+ closeDrawer: function() {
+ this.$.drawerPanel.closeDrawer();
+ }
+
+ });
+

Powered by Google App Engine
This is Rietveld 408576698