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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 1138893003: Convert cr-settings-ui to Polymer 0.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rerebase Created 5 years, 7 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698