OLD | NEW |
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 |
7 * 'control-bar' is the horizontal bar at the bottom of the user manager screen. | 7 * 'supervised-user-learn-more' is a page that contains information about |
| 8 * what a supervised user is, what happens when a supervised user is created, |
| 9 * and a link to the help center for more information. |
8 * | 10 * |
9 * @element control-bar | 11 * @element supervised-user-learn-more |
10 */ | 12 */ |
11 Polymer({ | 13 Polymer({ |
12 is: 'control-bar', | 14 is: 'supervised-user-learn-more', |
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 | 15 |
34 /** | 16 /** |
35 * Handler for |Browse as Guest| button click event. | 17 * Handler for the |Done| button click event. |
36 * @param {!Event} event | 18 * @param {!Event} event |
37 * @private | 19 * @private |
38 */ | 20 */ |
39 handleGuestClick_: function(event) { | 21 handleDone_: function(event) { |
40 signin.ProfileApi.launchGuestUser(); | |
41 }, | |
42 | |
43 /** | |
44 * Handler for |Add Person| button click event. | |
45 * @param {!Event} event | |
46 * @private | |
47 */ | |
48 handleAddUserClick_: function(event) { | |
49 // Event is caught by user-manager-pages. | 22 // Event is caught by user-manager-pages. |
50 this.fire('change-page', {page: 'create-user-page'}); | 23 this.fire('change-page', {page: 'create-user-page'}); |
51 } | 24 } |
52 }); | 25 }); |
OLD | NEW |