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

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

Issue 9124028: separate about page into its own page (included in chrome://chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change indent, move script includes to inside body 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 [$('advancedOptionsButton')]); 72 [$('advancedOptionsButton')]);
73 OptionsPage.register(PersonalOptions.getInstance()); 73 OptionsPage.register(PersonalOptions.getInstance());
74 OptionsPage.registerSubPage(AutofillOptions.getInstance(), 74 OptionsPage.registerSubPage(AutofillOptions.getInstance(),
75 PersonalOptions.getInstance(), 75 PersonalOptions.getInstance(),
76 [$('autofill-settings')]); 76 [$('autofill-settings')]);
77 OptionsPage.registerSubPage(PasswordManager.getInstance(), 77 OptionsPage.registerSubPage(PasswordManager.getInstance(),
78 PersonalOptions.getInstance(), 78 PersonalOptions.getInstance(),
79 [$('manage-passwords')]); 79 [$('manage-passwords')]);
80 if (cr.isChromeOS) { 80 if (cr.isChromeOS) {
81 OptionsPage.register(SystemOptions.getInstance()); 81 OptionsPage.register(SystemOptions.getInstance());
82 OptionsPage.registerSubPage(AboutPage.getInstance(),
83 SystemOptions.getInstance());
84 OptionsPage.registerSubPage(LanguageOptions.getInstance(), 82 OptionsPage.registerSubPage(LanguageOptions.getInstance(),
85 SystemOptions.getInstance(), 83 SystemOptions.getInstance(),
86 [$('language-button')]); 84 [$('language-button')]);
87 OptionsPage.registerSubPage( 85 OptionsPage.registerSubPage(
88 new OptionsPage('languageChewing', 86 new OptionsPage('languageChewing',
89 templateData.languageChewingPageTabTitle, 87 templateData.languageChewingPageTabTitle,
90 'languageChewingPage'), 88 'languageChewingPage'),
91 LanguageOptions.getInstance()); 89 LanguageOptions.getInstance());
92 OptionsPage.registerSubPage( 90 OptionsPage.registerSubPage(
93 new OptionsPage('languageHangul', 91 new OptionsPage('languageHangul',
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 232
235 document.addEventListener('DOMContentLoaded', load); 233 document.addEventListener('DOMContentLoaded', load);
236 234
237 window.onpopstate = function(e) { 235 window.onpopstate = function(e) {
238 options.OptionsPage.setState(e.state); 236 options.OptionsPage.setState(e.state);
239 }; 237 };
240 238
241 window.onbeforeunload = function() { 239 window.onbeforeunload = function() {
242 options.OptionsPage.willClose(); 240 options.OptionsPage.willClose();
243 }; 241 };
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