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

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: Addressed comments #6 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 properties: {
15 /**
16 * True if 'Browse as Guest' button is displayed.
17 * @type {boolean}
18 */
19 showGuest: {
20 type: Boolean,
21 value: false
22 },
23
24 /**
25 * True if 'Add Person' button is displayed.
26 * @type {boolean}
27 */
28 showAddPerson: {
29 type: Boolean,
30 value: false
31 },
32
33 /** @private {!signin.ProfileBrowserProxy} */
34 browserProxy_: Object
35 },
36
37 /** @override */
38 created: function() {
39 this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance();
40 },
41
42 /**
43 * Handler for 'Browse as Guest' button click event.
44 * @param {!Event} event
45 * @private
46 */
47 onLauchGuestTap_: function(event) {
48 this.browserProxy_.launchGuestUser();
49 },
50
51 /**
52 * Handler for 'Add Person' button click event.
53 * @param {!Event} event
54 * @private
55 */
56 onAddUserTap_: function(event) {
57 // Event is caught by user-manager-pages.
58 this.fire('change-page', {page: 'create-user-page'});
59 }
60 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_user_manager/control_bar.html ('k') | chrome/browser/resources/md_user_manager/create_profile.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698