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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 return; | 80 return; |
81 } | 81 } |
82 this.$.confirmDisableDialog.showModal(); | 82 this.$.confirmDisableDialog.showModal(); |
83 }, | 83 }, |
84 | 84 |
85 /** | 85 /** |
86 * Handles the shared proxy confirmation dialog 'Confirm' button. | 86 * Handles the shared proxy confirmation dialog 'Confirm' button. |
87 * @private | 87 * @private |
88 */ | 88 */ |
89 onConfirmDisableDialogConfirm_: function() { | 89 onConfirmDisableDialogConfirm_: function() { |
90 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox) | 90 /** @type {!SettingsCheckboxElement} */ (this.$.enabled).sendPrefChange(); |
91 .sendPrefChange(); | |
92 this.$.confirmDisableDialog.close(); | 91 this.$.confirmDisableDialog.close(); |
93 }, | 92 }, |
94 | 93 |
95 /** | 94 /** |
96 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel | 95 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel |
97 * event. | 96 * event. |
98 * @private | 97 * @private |
99 */ | 98 */ |
100 onConfirmDisableDialogCancel_: function() { | 99 onConfirmDisableDialogCancel_: function() { |
101 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox) | 100 /** @type {!SettingsCheckboxElement} */ (this.$.enabled).resetToPrefValue(); |
102 .resetToPrefValue(); | |
103 this.$.confirmDisableDialog.close(); | 101 this.$.confirmDisableDialog.close(); |
104 }, | 102 }, |
105 }); | 103 }); |
OLD | NEW |