| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * ResetProfileSettingsOverlay class | 9 * ResetProfileSettingsOverlay class |
| 10 * Encapsulated handling of the 'Reset Profile Settings' overlay page. | 10 * Encapsulated handling of the 'Reset Profile Settings' overlay page. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 /** | 66 /** |
| 67 * Enables/disables UI elements after/while Chrome is performing a reset. | 67 * Enables/disables UI elements after/while Chrome is performing a reset. |
| 68 * @param {boolean} state If true, UI elements are disabled. | 68 * @param {boolean} state If true, UI elements are disabled. |
| 69 */ | 69 */ |
| 70 ResetProfileSettingsOverlay.setResettingState = function(state) { | 70 ResetProfileSettingsOverlay.setResettingState = function(state) { |
| 71 $('reset-default-search-engine-checkbox').disabled = state; | 71 $('reset-default-search-engine-checkbox').disabled = state; |
| 72 $('reset-homepage-checkbox').disabled = state; | 72 $('reset-homepage-checkbox').disabled = state; |
| 73 $('reset-content-settings-checkbox').disabled = state; | 73 $('reset-content-settings-checkbox').disabled = state; |
| 74 $('reset-cookies-and-site-data-checkbox').disabled = state; | 74 $('reset-cookies-and-site-data-checkbox').disabled = state; |
| 75 $('reset-extensions-checkbox').disabled = state; | 75 $('reset-extensions-checkbox').disabled = state; |
| 76 $('reset-extensions-handling').disabled = state; | |
| 77 $('reset-profile-settings-throbber').style.visibility = | 76 $('reset-profile-settings-throbber').style.visibility = |
| 78 state ? 'visible' : 'hidden'; | 77 state ? 'visible' : 'hidden'; |
| 79 $('reset-profile-settings-dismiss').disabled = state; | 78 $('reset-profile-settings-dismiss').disabled = state; |
| 80 | 79 |
| 81 if (state) | 80 if (state) |
| 82 $('reset-profile-settings-commit').disabled = true; | 81 $('reset-profile-settings-commit').disabled = true; |
| 83 else | 82 else |
| 84 ResetProfileSettingsOverlay.getInstance().updateCommitButtonState_(); | 83 ResetProfileSettingsOverlay.getInstance().updateCommitButtonState_(); |
| 85 }; | 84 }; |
| 86 | 85 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 103 ResetProfileSettingsOverlay.dismiss = function() { | 102 ResetProfileSettingsOverlay.dismiss = function() { |
| 104 OptionsPage.closeOverlay(); | 103 OptionsPage.closeOverlay(); |
| 105 ResetProfileSettingsOverlay.setResettingState(false); | 104 ResetProfileSettingsOverlay.setResettingState(false); |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 // Export | 107 // Export |
| 109 return { | 108 return { |
| 110 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay | 109 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay |
| 111 }; | 110 }; |
| 112 }); | 111 }); |
| OLD | NEW |