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

Side by Side 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: Add to chrome://md-settings 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview
7 * 'cr-settings-page' is the base class for settings pages.
8 *
9 * Example:
10 *
11 * <polymer-element name="cr-settings-a11y-page" extends="cr-settings-page">
12 * ...
13 * </polymer-element>
14 *
15 * @group Chrome Settings Elements
16 * @element cr-settings-page
17 */
18 Polymer('cr-settings-page', {
19 publish: {
20 /**
21 * Preferences state.
22 *
23 * @attribute prefs
24 * @type CrSettingsPrefsElement
25 * @default null
26 */
27 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
28
29 /**
30 * Title for the page header.
31 *
32 * @attribute pageTitle
33 * @type string
34 * @default ''
35 */
36 pageTitle: '',
37
38 /**
39 * Title for the navigation drawer.
40 *
41 * @attribute navTitle
42 * @type string
43 * @default ''
44 */
45 navTitle: '',
46
47 /**
48 * Name of the 'core-icon' to show.
49 *
50 * @attribute icon
51 * @type string
52 * @default ''
53 */
54 icon: '',
55
56 /**
57 * Text for help articles.
58 * TODO(michaelpg): Expand and set on actual pages once Help features are
59 * clarified.
60 */
61 helpArticles: [{
62 title: 'Help Article',
63 content: 'Odi et amo. Quare id faciam, fortasse requiris? Nescio, sed ' +
64 'fieri sentio et excrucior.',
65 }, {
66 title: 'More Help',
67 content: 'Arma virumque cano, Troiae qui primus ab oris Italiam, fato ' +
68 'profugus, Laviniaque venit litora, multum ille et terris ' +
69 'iactatus et alto vi superum saevae memorem Iunonis ob iram; ' +
70 'multa quoque et bello passus, dum conderet urbem, ' +
71 'inferretque deos Latio, genus unde Latinum, Albanique ' +
72 'patres, atque altae moenia Romae.',
73 }],
74 },
75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698