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

Side by Side Diff: chrome/browser/resources/options/reset_profile_settings_overlay.js

Issue 16980002: Reset profile: unpin all pinned tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android compilation Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698