| OLD | NEW |
| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 document.documentElement.classList.add('hide-menu'); | 60 document.documentElement.classList.add('hide-menu'); |
| 61 | 61 |
| 62 localStrings = new LocalStrings(); | 62 localStrings = new LocalStrings(); |
| 63 | 63 |
| 64 OptionsPage.register(SearchPage.getInstance()); | 64 OptionsPage.register(SearchPage.getInstance()); |
| 65 | 65 |
| 66 OptionsPage.register(BrowserOptions.getInstance()); | 66 OptionsPage.register(BrowserOptions.getInstance()); |
| 67 OptionsPage.registerSubPage(SearchEngineManager.getInstance(), | 67 OptionsPage.registerSubPage(SearchEngineManager.getInstance(), |
| 68 BrowserOptions.getInstance(), | 68 BrowserOptions.getInstance(), |
| 69 [$('defaultSearchManageEnginesButton')]); | 69 [$('defaultSearchManageEnginesButton')]); |
| 70 OptionsPage.registerSubPage(AdvancedOptions.getInstance(), |
| 71 BrowserOptions.getInstance(), |
| 72 [$('advancedOptionsButton')]); |
| 70 OptionsPage.register(PersonalOptions.getInstance()); | 73 OptionsPage.register(PersonalOptions.getInstance()); |
| 71 OptionsPage.registerSubPage(AutofillOptions.getInstance(), | 74 OptionsPage.registerSubPage(AutofillOptions.getInstance(), |
| 72 PersonalOptions.getInstance(), | 75 PersonalOptions.getInstance(), |
| 73 [$('autofill-settings')]); | 76 [$('autofill-settings')]); |
| 74 OptionsPage.registerSubPage(PasswordManager.getInstance(), | 77 OptionsPage.registerSubPage(PasswordManager.getInstance(), |
| 75 PersonalOptions.getInstance(), | 78 PersonalOptions.getInstance(), |
| 76 [$('manage-passwords')]); | 79 [$('manage-passwords')]); |
| 77 if (cr.isChromeOS) { | 80 if (cr.isChromeOS) { |
| 78 OptionsPage.register(SystemOptions.getInstance()); | 81 OptionsPage.register(SystemOptions.getInstance()); |
| 79 OptionsPage.registerSubPage(AboutPage.getInstance(), | 82 OptionsPage.registerSubPage(AboutPage.getInstance(), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 103 LanguageOptions.getInstance()); | 106 LanguageOptions.getInstance()); |
| 104 // Only use the VirtualKeyboardManager if the keyboard DOM elements (which | 107 // Only use the VirtualKeyboardManager if the keyboard DOM elements (which |
| 105 // it will assume exists) are present (i.e. if we were built with | 108 // it will assume exists) are present (i.e. if we were built with |
| 106 // USE_VIRTUAL_KEYBOARD). | 109 // USE_VIRTUAL_KEYBOARD). |
| 107 if ($('language-options-virtual-keyboard')) { | 110 if ($('language-options-virtual-keyboard')) { |
| 108 OptionsPage.registerSubPage(VirtualKeyboardManager.getInstance(), | 111 OptionsPage.registerSubPage(VirtualKeyboardManager.getInstance(), |
| 109 LanguageOptions.getInstance()); | 112 LanguageOptions.getInstance()); |
| 110 } | 113 } |
| 111 OptionsPage.register(InternetOptions.getInstance()); | 114 OptionsPage.register(InternetOptions.getInstance()); |
| 112 } | 115 } |
| 113 OptionsPage.register(AdvancedOptions.getInstance()); | |
| 114 OptionsPage.registerSubPage(ContentSettings.getInstance(), | 116 OptionsPage.registerSubPage(ContentSettings.getInstance(), |
| 115 AdvancedOptions.getInstance(), | 117 AdvancedOptions.getInstance(), |
| 116 [$('privacyContentSettingsButton')]); | 118 [$('privacyContentSettingsButton')]); |
| 117 OptionsPage.registerSubPage(ContentSettingsExceptionsArea.getInstance(), | 119 OptionsPage.registerSubPage(ContentSettingsExceptionsArea.getInstance(), |
| 118 ContentSettings.getInstance()); | 120 ContentSettings.getInstance()); |
| 119 OptionsPage.registerSubPage(CookiesView.getInstance(), | 121 OptionsPage.registerSubPage(CookiesView.getInstance(), |
| 120 ContentSettings.getInstance(), | 122 ContentSettings.getInstance(), |
| 121 [$('privacyContentSettingsButton'), | 123 [$('privacyContentSettingsButton'), |
| 122 $('show-cookies-button')]); | 124 $('show-cookies-button')]); |
| 123 // If HandlerOptions is null it means it got compiled out. | 125 // If HandlerOptions is null it means it got compiled out. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 234 |
| 233 document.addEventListener('DOMContentLoaded', load); | 235 document.addEventListener('DOMContentLoaded', load); |
| 234 | 236 |
| 235 window.onpopstate = function(e) { | 237 window.onpopstate = function(e) { |
| 236 options.OptionsPage.setState(e.state); | 238 options.OptionsPage.setState(e.state); |
| 237 }; | 239 }; |
| 238 | 240 |
| 239 window.onbeforeunload = function() { | 241 window.onbeforeunload = function() { |
| 240 options.OptionsPage.willClose(); | 242 options.OptionsPage.willClose(); |
| 241 }; | 243 }; |
| OLD | NEW |