| 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 * 'android-apps-page' is the settings page for enabling android apps. | 7 * 'android-apps-page' is the settings page for enabling android apps. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 this.androidAppsInfo_ = info; | 43 this.androidAppsInfo_ = info; |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @param {Event} event | 47 * @param {Event} event |
| 48 * @private | 48 * @private |
| 49 */ | 49 */ |
| 50 onManageAndroidAppsKeydown_: function(event) { | 50 onManageAndroidAppsKeydown_: function(event) { |
| 51 if (event.key != 'Enter' && event.key != ' ') | 51 if (event.key != 'Enter' && event.key != ' ') |
| 52 return; | 52 return; |
| 53 this.browserProxy_.showAndroidAppsSettings(true /** keyboardAction */); | 53 this.browserProxy_.showAndroidAppsSettings(true /** keyboardAction */); |
| 54 event.stopPropagation(); | 54 event.stopPropagation(); |
| 55 }, | 55 }, |
| 56 | 56 |
| 57 /** @private */ | 57 /** @private */ |
| 58 onManageAndroidAppsTap_: function(event) { | 58 onManageAndroidAppsTap_: function(event) { |
| 59 this.browserProxy_.showAndroidAppsSettings(false /** keyboardAction */); | 59 this.browserProxy_.showAndroidAppsSettings(false /** keyboardAction */); |
| 60 }, | 60 }, |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * @return {string} | 63 * @return {string} |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel | 96 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel |
| 97 * event. | 97 * event. |
| 98 * @private | 98 * @private |
| 99 */ | 99 */ |
| 100 onConfirmDisableDialogCancel_: function() { | 100 onConfirmDisableDialogCancel_: function() { |
| 101 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox) | 101 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox) |
| 102 .resetToPrefValue(); | 102 .resetToPrefValue(); |
| 103 this.$.confirmDisableDialog.close(); | 103 this.$.confirmDisableDialog.close(); |
| 104 }, | 104 }, |
| 105 }); | 105 }); |
| OLD | NEW |