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

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

Issue 981203007: Scaffold for MD-Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove help 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-drawer' holds the user card and navigation menu for settings
8 * pages.
9 *
10 * Example:
11 *
12 * <core-drawer-panel>
13 * <cr-settings-drawer drawer selectedIndex="{{index}}" pages="{{pages}}">
14 * </cr-settings-drawer>
15 * <cr-settings-main main currentPageIndex="{{index}}" pages="{{pages}}">
16 * </cr-settings-main>
17 * </core-drawer-panel>
18 *
19 * @group Chrome Settings Elements
20 * @element cr-settings-drawer
21 */
22 Polymer('cr-settings-drawer', {
23 publish: {
24 /**
25 * Pages to include in the navigation.
26 *
27 * @attribute pages
28 * @type Array<!Object>
29 * @default []
30 */
31 pages: [],
Jeremy Klein 2015/03/09 21:17:13 Same comment as the other cl about initializing ar
michaelpg 2015/03/12 01:41:39 Missed that comment, thank you.
32
33 /**
34 * Index of the currently selected page.
35 *
36 * @attribute selectedIndex
37 * @type number
38 * default 0
39 */
40 selectedIndex: 0,
41 },
42
43 /**
44 * @type {Object}
Jeremy Klein 2015/03/09 21:17:13 Worth a typedef here? Don't you also need an avata
michaelpg 2015/03/09 22:24:11 Yeah. I'd rather keep this TODO for this CL.
45 * TODO(michaelpg): Create custom element and data source for user card.
46 */
47 user: {
48 name: 'Chrome User',
49 email: 'user@example.com',
50 },
51 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698