| 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 Polymer({ |
| 7 is: 'control-bar', |
| 8 |
| 9 properties: { |
| 10 |
| 11 /* |
| 12 * If true then |Browse as Guest| button is displayed. |
| 13 */ |
| 14 showGuest: { |
| 15 type: Boolean, |
| 16 value: false |
| 17 }, |
| 18 |
| 19 /* |
| 20 * If true then |Add Person| button is displayed. |
| 21 */ |
| 22 showAddPerson: { |
| 23 type: Boolean, |
| 24 value: false |
| 25 } |
| 26 }, |
| 27 |
| 28 handleGuestClick_: function(e) { |
| 29 chrome.send('launchGuest'); |
| 30 }, |
| 31 |
| 32 handleAddUserClick_: function(e) { |
| 33 // Event is caught by user-manager-pages. |
| 34 this.fire('change-page', {page: 'create-user-page'}); |
| 35 } |
| 36 }); |
| OLD | NEW |