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

Side by Side Diff: chrome/browser/resources/md_user_manager/control_bar.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: ProfileApi -> ProfileBrowserProxy. Fixed broken old user manager. Addressed comments #5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview 'control-bar' is the horizontal bar at the bottom of the user
7 * manager screen.
8 *
9 * @element control-bar
10 */
11 Polymer({
12 is: 'control-bar',
13
14 behaviors: [signin.ProfileBrowserProxyBehavior],
15
16 properties: {
17 /**
18 * True if 'Browse as Guest' button is displayed.
19 * @type {boolean}
20 */
21 showGuest: {
22 type: Boolean,
23 value: false
24 },
25
26 /**
27 * True if 'Add Person' button is displayed.
28 * @type {boolean}
29 */
30 showAddPerson: {
31 type: Boolean,
32 value: false
33 }
34 },
35
36 /**
37 * Handler for 'Browse as Guest' button click event.
38 * @param {!Event} event
39 * @private
40 */
41 onLauchGuestTap_: function(event) {
42 this.browserProxy_.launchGuestUser();
43 },
44
45 /**
46 * Handler for 'Add Person' button click event.
47 * @param {!Event} event
48 * @private
49 */
50 onAddUserTap_: function(event) {
51 // Event is caught by user-manager-pages.
52 this.fire('change-page', {page: 'create-user-page'});
53 }
54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698