OLD | NEW |
---|---|
(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 }); | |
OLD | NEW |