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

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

Issue 1725563003: MD user manager (learn more page, user manager tutorial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using dom-if template in the tutorial 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 'control-bar' is the horizontal bar at the bottom of the user 6 * @fileoverview 'control-bar' is the horizontal bar at the bottom of the user
7 * manager screen. 7 * manager screen.
8 * 8 *
9 * @element control-bar 9 * @element control-bar
10 */ 10 */
(...skipping 18 matching lines...) Expand all
29 type: Boolean, 29 type: Boolean,
30 value: false 30 value: false
31 } 31 }
32 }, 32 },
33 33
34 /** 34 /**
35 * Handler for 'Browse as Guest' button click event. 35 * Handler for 'Browse as Guest' button click event.
36 * @param {!Event} event 36 * @param {!Event} event
37 * @private 37 * @private
38 */ 38 */
39 handleGuestClick_: function(event) { 39 onGuestUserTap_: function(event) {
40 signin.ProfileApi.launchGuestUser(); 40 signin.ProfileApi.launchGuestUser();
41 }, 41 },
42 42
43 /** 43 /**
44 * Handler for 'Add Person' button click event. 44 * Handler for 'Add Person' button click event.
45 * @param {!Event} event 45 * @param {!Event} event
46 * @private 46 * @private
47 */ 47 */
48 handleAddUserClick_: function(event) { 48 onAddUserTap_: function(event) {
49 // Event is caught by user-manager-pages. 49 // Event is caught by user-manager-pages.
50 this.fire('change-page', {page: 'create-user-page'}); 50 this.fire('change-page', {page: 'create-user-page'});
51 } 51 }
52 }); 52 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698