Index: chrome/browser/resources/settings/settings_page/settings_page.js |
diff --git a/chrome/browser/resources/settings/settings_page/settings_page.js b/chrome/browser/resources/settings/settings_page/settings_page.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d629bda3e4011f786a6380559a23cdf1d802ee2d |
--- /dev/null |
+++ b/chrome/browser/resources/settings/settings_page/settings_page.js |
@@ -0,0 +1,75 @@ |
+// 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-settings-page' is the base class for settings pages. |
+ * |
+ * Example: |
+ * |
+ * <polymer-element name="cr-settings-a11y-page" extends="cr-settings-page"> |
+ * ... |
+ * </polymer-element> |
+ * |
+ * @group Chrome Settings Elements |
+ * @element cr-settings-page |
+ */ |
+Polymer('cr-settings-page', { |
+ publish: { |
+ /** |
+ * Preferences state. |
+ * |
+ * @attribute prefs |
+ * @type CrSettingsPrefsElement |
+ * @default null |
+ */ |
+ prefs: null, |
Jeremy Klein
2015/03/07 23:55:14
I don't think that all pages will need a prefs in
michaelpg
2015/03/08 04:22:47
Good stuff! This isn't out for review yet, but I w
|
+ |
+ /** |
+ * Title for the page header. |
+ * |
+ * @attribute pageTitle |
+ * @type string |
+ * @default '' |
+ */ |
+ pageTitle: '', |
+ |
+ /** |
+ * Title for the navigation drawer. |
+ * |
+ * @attribute navTitle |
+ * @type string |
+ * @default '' |
+ */ |
+ navTitle: '', |
+ |
+ /** |
+ * Name of the 'core-icon' to show. |
+ * |
+ * @attribute icon |
+ * @type string |
+ * @default '' |
+ */ |
+ icon: '', |
+ |
+ /** |
+ * Text for help articles. |
+ * TODO(michaelpg): Expand and set on actual pages once Help features are |
+ * clarified. |
+ */ |
+ helpArticles: [{ |
+ title: 'Help Article', |
+ content: 'Odi et amo. Quare id faciam, fortasse requiris? Nescio, sed ' + |
+ 'fieri sentio et excrucior.', |
+ }, { |
+ title: 'More Help', |
+ content: 'Arma virumque cano, Troiae qui primus ab oris Italiam, fato ' + |
+ 'profugus, Laviniaque venit litora, multum ille et terris ' + |
+ 'iactatus et alto vi superum saevae memorem Iunonis ob iram; ' + |
+ 'multa quoque et bello passus, dum conderet urbem, ' + |
+ 'inferretque deos Latio, genus unde Latinum, Albanique ' + |
+ 'patres, atque altae moenia Romae.', |
+ }], |
+ }, |
+}); |