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

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

Issue 517413002: Compile chrome://settings, part 1: remove all warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * ImportDataOverlay class 10 * ImportDataOverlay class
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (this.browserProfiles.length > index) 140 if (this.browserProfiles.length > index)
141 browserProfile = this.browserProfiles[index]; 141 browserProfile = this.browserProfiles[index];
142 var enable = browserProfile && browserProfile['show_bottom_bar']; 142 var enable = browserProfile && browserProfile['show_bottom_bar'];
143 <if expr="is_macosx"> 143 <if expr="is_macosx">
144 $('mac-password-keychain').hidden = !enable; 144 $('mac-password-keychain').hidden = !enable;
145 </if> 145 </if>
146 }, 146 },
147 147
148 /** 148 /**
149 * Update the supported browsers popup with given entries. 149 * Update the supported browsers popup with given entries.
150 * @param {array} browsers List of supported browsers name. 150 * @param {Array} browsers List of supported browsers name.
151 * @private 151 * @private
152 */ 152 */
153 updateSupportedBrowsers_: function(browsers) { 153 updateSupportedBrowsers_: function(browsers) {
154 this.browserProfiles = browsers; 154 this.browserProfiles = browsers;
155 var browserSelect = $('import-browsers'); 155 var browserSelect = $('import-browsers');
156 browserSelect.remove(0); // Remove the 'Loading...' option. 156 browserSelect.remove(0); // Remove the 'Loading...' option.
157 browserSelect.textContent = ''; 157 browserSelect.textContent = '';
158 var browserCount = browsers.length; 158 var browserCount = browsers.length;
159 159
160 if (browserCount == 0) { 160 if (browserCount == 0) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 sections[i].hidden = !success; 206 sections[i].hidden = !success;
207 }, 207 },
208 }; 208 };
209 209
210 ImportDataOverlay.clearUserPrefs = function() { 210 ImportDataOverlay.clearUserPrefs = function() {
211 ImportDataOverlay.getInstance().clearUserPrefs_(); 211 ImportDataOverlay.getInstance().clearUserPrefs_();
212 }; 212 };
213 213
214 /** 214 /**
215 * Update the supported browsers popup with given entries. 215 * Update the supported browsers popup with given entries.
216 * @param {array} list of supported browsers name. 216 * @param {Array} browsers List of supported browsers name.
217 */ 217 */
218 ImportDataOverlay.updateSupportedBrowsers = function(browsers) { 218 ImportDataOverlay.updateSupportedBrowsers = function(browsers) {
219 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers); 219 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers);
220 }; 220 };
221 221
222 /** 222 /**
223 * Update the UI to reflect whether an import operation is in progress. 223 * Update the UI to reflect whether an import operation is in progress.
224 * @param {boolean} importing True if an import operation is in progress. 224 * @param {boolean} importing True if an import operation is in progress.
225 */ 225 */
226 ImportDataOverlay.setImportingState = function(importing) { 226 ImportDataOverlay.setImportingState = function(importing) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 ImportDataOverlay.getInstance().validateCommitButton_(); 263 ImportDataOverlay.getInstance().validateCommitButton_();
264 264
265 PageManager.showPageByName('importData'); 265 PageManager.showPageByName('importData');
266 }; 266 };
267 267
268 // Export 268 // Export
269 return { 269 return {
270 ImportDataOverlay: ImportDataOverlay 270 ImportDataOverlay: ImportDataOverlay
271 }; 271 };
272 }); 272 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698