| 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 'supervised-user-learn-more' is a page that contains | 6 * @fileoverview 'supervised-user-learn-more' is a page that contains |
| 7 * information about what a supervised user is, what happens when a supervised | 7 * information about what a supervised user is, what happens when a supervised |
| 8 * user is created, and a link to the help center for more information. | 8 * user is created, and a link to the help center for more information. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'supervised-user-learn-more', | 11 is: 'supervised-user-learn-more', |
| 12 | 12 |
| 13 properties: { | 13 properties: { |
| 14 /** @private {!signin.ProfileBrowserProxy} */ | 14 /** @private {!signin.ProfileBrowserProxy} */ |
| 15 browserProxy_: Object | 15 browserProxy_: Object |
| 16 }, | 16 }, |
| 17 | 17 |
| 18 listeners: { | 18 listeners: {'tap': 'onTap_'}, |
| 19 'tap': 'onTap_' | |
| 20 }, | |
| 21 | 19 |
| 22 /** @override */ | 20 /** @override */ |
| 23 created: function() { | 21 created: function() { |
| 24 this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance(); | 22 this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance(); |
| 25 }, | 23 }, |
| 26 | 24 |
| 27 /** | 25 /** |
| 28 * Handles tap events from dynamically created links in the | 26 * Handles tap events from dynamically created links in the |
| 29 * supervisedUserLearnMoreText i18n string. | 27 * supervisedUserLearnMoreText i18n string. |
| 30 * @param {!Event} event | 28 * @param {!Event} event |
| (...skipping 12 matching lines...) Expand all Loading... |
| 43 /** | 41 /** |
| 44 * Handler for the 'Done' button tap event. | 42 * Handler for the 'Done' button tap event. |
| 45 * @param {!Event} event | 43 * @param {!Event} event |
| 46 * @private | 44 * @private |
| 47 */ | 45 */ |
| 48 onDoneTap_: function(event) { | 46 onDoneTap_: function(event) { |
| 49 // Event is caught by user-manager-pages. | 47 // Event is caught by user-manager-pages. |
| 50 this.fire('change-page', {page: 'create-user-page'}); | 48 this.fire('change-page', {page: 'create-user-page'}); |
| 51 } | 49 } |
| 52 }); | 50 }); |
| OLD | NEW |