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

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

Issue 9147054: Revert 117136 - separate about page into its own page (included in chrome://chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | 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 var AddLanguageOverlay = options.AddLanguageOverlay; 5 var AddLanguageOverlay = options.AddLanguageOverlay;
6 var AdvancedOptions = options.AdvancedOptions; 6 var AdvancedOptions = options.AdvancedOptions;
7 var AlertOverlay = options.AlertOverlay; 7 var AlertOverlay = options.AlertOverlay;
8 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; 8 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay;
9 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; 9 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay;
10 var AutofillOptions = options.AutofillOptions; 10 var AutofillOptions = options.AutofillOptions;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 OptionsPage.register(BrowserOptions.getInstance()); 68 OptionsPage.register(BrowserOptions.getInstance());
69 OptionsPage.registerSubPage(SearchEngineManager.getInstance(), 69 OptionsPage.registerSubPage(SearchEngineManager.getInstance(),
70 BrowserOptions.getInstance(), 70 BrowserOptions.getInstance(),
71 [$('defaultSearchManageEnginesButton')]); 71 [$('defaultSearchManageEnginesButton')]);
72 OptionsPage.registerSubPage(AdvancedOptions.getInstance(), 72 OptionsPage.registerSubPage(AdvancedOptions.getInstance(),
73 BrowserOptions.getInstance(), 73 BrowserOptions.getInstance(),
74 [$('advancedOptionsButton')]); 74 [$('advancedOptionsButton')]);
75 OptionsPage.register(PersonalOptions.getInstance()); 75 OptionsPage.register(PersonalOptions.getInstance());
76 if (cr.isChromeOS) { 76 if (cr.isChromeOS) {
77 OptionsPage.register(SystemOptions.getInstance()); 77 OptionsPage.register(SystemOptions.getInstance());
78 OptionsPage.registerSubPage(AboutPage.getInstance(),
79 SystemOptions.getInstance());
78 OptionsPage.registerSubPage(LanguageOptions.getInstance(), 80 OptionsPage.registerSubPage(LanguageOptions.getInstance(),
79 SystemOptions.getInstance(), 81 SystemOptions.getInstance(),
80 [$('language-button')]); 82 [$('language-button')]);
81 OptionsPage.registerSubPage( 83 OptionsPage.registerSubPage(
82 new OptionsPage('languageChewing', 84 new OptionsPage('languageChewing',
83 templateData.languageChewingPageTabTitle, 85 templateData.languageChewingPageTabTitle,
84 'languageChewingPage'), 86 'languageChewingPage'),
85 LanguageOptions.getInstance()); 87 LanguageOptions.getInstance());
86 OptionsPage.registerSubPage( 88 OptionsPage.registerSubPage(
87 new OptionsPage('languageHangul', 89 new OptionsPage('languageHangul',
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 241
240 document.addEventListener('DOMContentLoaded', load); 242 document.addEventListener('DOMContentLoaded', load);
241 243
242 window.onpopstate = function(e) { 244 window.onpopstate = function(e) {
243 options.OptionsPage.setState(e.state); 245 options.OptionsPage.setState(e.state);
244 }; 246 };
245 247
246 window.onbeforeunload = function() { 248 window.onbeforeunload = function() {
247 options.OptionsPage.willClose(); 249 options.OptionsPage.willClose();
248 }; 250 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/options.html ('k') | chrome/browser/resources/options2/options_bundle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698