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

Unified Diff: chrome/browser/resources/settings/dummy_page/dummy_page.js

Issue 1007803003: Polymer Settings Scaffold in MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Scaffold2
Patch Set: Created 5 years, 9 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: chrome/browser/resources/settings/dummy_page/dummy_page.js
diff --git a/chrome/browser/resources/settings/dummy_page/dummy_page.js b/chrome/browser/resources/settings/dummy_page/dummy_page.js
new file mode 100644
index 0000000000000000000000000000000000000000..a26e3abc9b19b9ec610121446845e60481c20e08
--- /dev/null
+++ b/chrome/browser/resources/settings/dummy_page/dummy_page.js
@@ -0,0 +1,47 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview
+ * 'cr-dummy-page' is a placeholder page for testing settings UI.
+ */
+Polymer('cr-settings-dummy-page', {
+ publish: {
+ /**
+ * ID of the page.
+ *
+ * @attribute PAGE_ID
+ * @const string
+ * default 'dummy'
+ */
+ PAGE_ID: 'dummy',
+
+ /**
+ * Title for the page header and navigation menu.
+ *
+ * @attribute pageTitle
+ * @type string
+ * @default 'Dummy page'
+ */
+ pageTitle: 'Dummy page',
+
+ /**
+ * Name of the 'core-icon' to show.
+ *
+ * @attribute icon
+ * @type string
+ * @default 'add-circle'
+ */
+ icon: 'add-circle',
+ },
+
+ /**
+ * Event handler for the toggle button for the 'cr-collapse'.
+ *
+ * @private
+ */
+ toggleCollapse_: function() {
+ this.$.collapse.toggle();
+ },
+});
« no previous file with comments | « chrome/browser/resources/settings/dummy_page/dummy_page.html ('k') | chrome/browser/resources/settings/settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698