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

Side by Side Diff: chrome/browser/resources/settings/settings.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' is the main MD-Settings element, combining the UI and models
8 * and controlling which pages are shown.
9 *
10 * Example:
11 *
12 * <cr-settings></cr-settings>
13 *
14 * @group Chrome Settings Elements
15 * @element cr-settings
16 */
17 Polymer('cr-settings', {
18 /**
19 * Settings pages available to the user.
20 *
21 * @private Array<!CrSettingsPage>
22 */
23 pages_: [],
24
25 /** @override */
26 ready: function() {
27 // Add pages depending on the platform. Pages should be imported in
28 // settings.html.
29 if (utils.isChromeOs())
30 this.pages_.push(new CrSettingsA11yPage());
Jeremy Klein 2015/03/07 23:55:13 I really still feel like I'd rather do this declar
31
32 this.pages_.push(new CrSettingsDummyPage());
33
34 for (var i = 0; i < this.pages_.length; i++)
35 this.pages_[i].prefs = this.$.settings;
36 },
37 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698