Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/browser/resources/settings/android_apps_page/android_apps_page.js

Issue 2617533003: MD Settings: change most checkboxes to toggles (leave dialogs alone) (Closed)
Patch Set: fix tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698