OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * 'cr-settings-ui' implements the UI for the Settings page. | 7 * 'cr-settings-ui' implements the UI for the Settings page. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
11 * <cr-settings-ui prefs="{{prefs}}"></cr-settings-ui> | 11 * <cr-settings-ui prefs="{{prefs}}"></cr-settings-ui> |
12 * | 12 * |
13 * @group Chrome Settings Elements | 13 * @group Chrome Settings Elements |
14 * @element cr-settings-ui | 14 * @element cr-settings-ui |
15 */ | 15 */ |
16 Polymer('cr-settings-ui', { | 16 Polymer({ |
17 publish: { | 17 is: 'cr-settings-ui', |
| 18 |
| 19 properties: { |
18 /** | 20 /** |
19 * Preferences state. | 21 * Preferences state. |
20 * | 22 * @type {?CrSettingsPrefsElement} |
21 * @attribute prefs | |
22 * @type CrSettingsPrefsElement | |
23 * @default null | |
24 */ | 23 */ |
25 prefs: null, | 24 prefs: Object, |
26 | 25 |
27 /** | 26 /** |
28 * Ordered list of settings pages available to the user. Do not edit | 27 * Ordered list of settings pages available to the user. Do not edit |
29 * this variable directly. | 28 * this variable directly. |
30 * | 29 * @type {!Array<!HTMLElement>} |
31 * @attribute pages | |
32 * @type Array<!Object> | |
33 * @default null | |
34 */ | 30 */ |
35 pages: null, | 31 pages: { |
36 }, | 32 type: Array, |
37 | 33 value: function() { return []; }, |
38 /** @override */ | 34 notify: true, |
39 created: function() { | 35 }, |
40 this.pages = []; | |
41 }, | 36 }, |
42 }); | 37 }); |
OLD | NEW |