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

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

Issue 986843002: Scaffold for MD-Settings, inside chrome://md-settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expand scaffold and add to chrome://md-settings (point of this CL) 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/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..1e289f41c56802df03b77d8577cec5c59109f704
--- /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,
+
+ /**
+ * ID of the page.
+ *
+ * @attribute pageId
+ * @type string
+ * @default ''
+ */
+ pageId: '',
+
+ /**
+ * Title for the page header and navigation menu.
+ *
+ * @attribute pageTitle
+ * @type string
+ * @default ''
+ */
+ pageTitle: '',
+
+ /**
+ * 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.',
+ }],
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698