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..13f627cb4858aec0273887bd4516cb39879406e2 |
--- /dev/null |
+++ b/chrome/browser/resources/settings/dummy_page/dummy_page.js |
@@ -0,0 +1,58 @@ |
+// 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', |
+ }, |
+ |
+ /** |
+ * Placeholder text for help articles. |
+ */ |
+ helpArticles: [{ |
+ title: 'Dummy Help Article', |
+ content: 'You are not a dummy, but in case you need help, this help ' + |
+ 'article might help.', |
+ }, { |
+ title: 'Did You Know?', |
+ content: 'Oh... you did? Ok. I was just going to... well.. never mind. ' + |
+ 'I\'ll just let you be, then.', |
+ }], |
+ |
+ /** |
+ * Event handler for the toggle button for the 'cr-collapse'. |
+ */ |
+ toggleCollapse_: function() { |
+ this.$.collapse.toggle(); |
+ }, |
+}); |