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

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager_pages.js

Issue 1722843002: MD user manager (html/js/css for create profile flow) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments #2 Created 4 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 'user-manager-pages' is the element that controls paging in the
7 * 'all-sites' is the polymer element for showing the list of all sites under 7 * user manager screen.
8 * Site Settings.
9 * 8 *
10 * @group Chrome Settings Elements 9 * @element user-manager-pages
11 * @element all-sites
12 */ 10 */
13 Polymer({ 11 Polymer({
14 is: 'all-sites', 12 is: 'user-manager-pages',
15
16 behaviors: [SiteSettingsBehavior],
17 13
18 properties: { 14 properties: {
19 /** 15 /**
20 * Preferences state. 16 * ID of the currently selected page.
17 * @private {boolean}
21 */ 18 */
22 prefs: { 19 selectedPage_: {
23 type: Object, 20 type: String,
24 notify: true, 21 value: 'user-pods-page'
25 }, 22 }
23 },
26 24
27 /** 25 /** @override */
28 * The current active route. 26 attached: function() {
29 */ 27 this.addEventListener('change-page', function(e) {
30 currentRoute: { 28 this.selectedPage_ = e.detail.page;
31 type: Object, 29 }.bind(this));
32 notify: true, 30 }
33 },
34
35 /**
36 * The origin that was selected by the user in the dropdown list.
37 */
38 selectedOrigin: {
39 type: String,
40 notify: true,
41 },
42 },
43 }); 31 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698