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

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

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 (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 OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * ImportDataOverlay class 9 * ImportDataOverlay class
10 * Encapsulated handling of the 'Import Data' overlay page. 10 * Encapsulated handling of the 'Import Data' overlay page.
11 * @class 11 * @class
12 */ 12 */
13 function ImportDataOverlay() { 13 function ImportDataOverlay() {
14 OptionsPage.call(this, 14 OptionsPage.call(this,
15 'importData', 15 'importData',
16 loadTimeData.getString('importDataOverlayTabTitle'), 16 loadTimeData.getString('importDataOverlayTabTitle'),
17 'import-data-overlay'); 17 'import-data-overlay');
18 } 18 }
19 19
20 cr.addSingletonGetter(ImportDataOverlay); 20 cr.addSingletonGetter(ImportDataOverlay);
21 21
22 ImportDataOverlay.prototype = { 22 ImportDataOverlay.prototype = {
23 // Inherit from OptionsPage. 23 // Inherit from OptionsPage.
24 __proto__: OptionsPage.prototype, 24 __proto__: OptionsPage.prototype,
25 25
26 /** 26 /** @override */
27 * Initialize the page.
28 */
29 initializePage: function() { 27 initializePage: function() {
30 // Call base class implementation to start preference initialization. 28 // Call base class implementation to start preference initialization.
31 OptionsPage.prototype.initializePage.call(this); 29 OptionsPage.prototype.initializePage.call(this);
32 30
33 var self = this; 31 var self = this;
34 var checkboxes = 32 var checkboxes =
35 document.querySelectorAll('#import-checkboxes input[type=checkbox]'); 33 document.querySelectorAll('#import-checkboxes input[type=checkbox]');
36 for (var i = 0; i < checkboxes.length; i++) { 34 for (var i = 0; i < checkboxes.length; i++) {
37 checkboxes[i].onchange = function() { 35 checkboxes[i].onchange = function() {
38 self.validateCommitButton_(); 36 self.validateCommitButton_();
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 ImportDataOverlay.getInstance().validateCommitButton_(); 263 ImportDataOverlay.getInstance().validateCommitButton_();
266 264
267 OptionsPage.navigateToPage('importData'); 265 OptionsPage.navigateToPage('importData');
268 }; 266 };
269 267
270 // Export 268 // Export
271 return { 269 return {
272 ImportDataOverlay: ImportDataOverlay 270 ImportDataOverlay: ImportDataOverlay
273 }; 271 };
274 }); 272 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698