OLD | NEW |
(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 }); |
OLD | NEW |