OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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; |
11 var BrowserOptions = options.BrowserOptions; | 11 var BrowserOptions = options.BrowserOptions; |
12 var ClearBrowserDataOverlay = options.ClearBrowserDataOverlay; | 12 var ClearBrowserDataOverlay = options.ClearBrowserDataOverlay; |
13 var ContentSettings = options.ContentSettings; | 13 var ContentSettings = options.ContentSettings; |
14 var ContentSettingsExceptionsArea = | 14 var ContentSettingsExceptionsArea = |
15 options.contentSettings.ContentSettingsExceptionsArea; | 15 options.contentSettings.ContentSettingsExceptionsArea; |
16 var CookiesView = options.CookiesView; | 16 var CookiesView = options.CookiesView; |
17 var FontSettings = options.FontSettings; | 17 var FontSettings = options.FontSettings; |
18 var HandlerOptions = options.HandlerOptions; | 18 var HandlerOptions = options.HandlerOptions; |
19 var ImportDataOverlay = options.ImportDataOverlay; | 19 var ImportDataOverlay = options.ImportDataOverlay; |
20 var IntentsView = options.IntentsView; | |
21 var InstantConfirmOverlay = options.InstantConfirmOverlay; | 20 var InstantConfirmOverlay = options.InstantConfirmOverlay; |
22 var LanguageOptions = options.LanguageOptions; | 21 var LanguageOptions = options.LanguageOptions; |
23 var OptionsPage = options.OptionsPage; | 22 var OptionsPage = options.OptionsPage; |
24 var PasswordManager = options.PasswordManager; | 23 var PasswordManager = options.PasswordManager; |
25 var PersonalOptions = options.PersonalOptions; | 24 var PersonalOptions = options.PersonalOptions; |
26 var Preferences = options.Preferences; | 25 var Preferences = options.Preferences; |
27 var ManageProfileOverlay = options.ManageProfileOverlay; | 26 var ManageProfileOverlay = options.ManageProfileOverlay; |
28 var ProxyOptions = options.ProxyOptions; | 27 var ProxyOptions = options.ProxyOptions; |
29 var SearchEngineManager = options.SearchEngineManager; | 28 var SearchEngineManager = options.SearchEngineManager; |
30 var SearchPage = options.SearchPage; | 29 var SearchPage = options.SearchPage; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 OptionsPage.registerSubPage(CookiesView.getInstance(), | 113 OptionsPage.registerSubPage(CookiesView.getInstance(), |
115 ContentSettings.getInstance(), | 114 ContentSettings.getInstance(), |
116 [$('privacyContentSettingsButton'), | 115 [$('privacyContentSettingsButton'), |
117 $('show-cookies-button')]); | 116 $('show-cookies-button')]); |
118 // If HandlerOptions is null it means it got compiled out. | 117 // If HandlerOptions is null it means it got compiled out. |
119 if (HandlerOptions) { | 118 if (HandlerOptions) { |
120 OptionsPage.registerSubPage(HandlerOptions.getInstance(), | 119 OptionsPage.registerSubPage(HandlerOptions.getInstance(), |
121 ContentSettings.getInstance(), | 120 ContentSettings.getInstance(), |
122 [$('manage-handlers-button')]); | 121 [$('manage-handlers-button')]); |
123 } | 122 } |
124 if (IntentsView && $('manage-intents-button')) { | |
125 OptionsPage.registerSubPage(IntentsView.getInstance(), | |
126 ContentSettings.getInstance(), | |
127 [$('manage-intents-button')]); | |
128 } | |
129 OptionsPage.registerSubPage(FontSettings.getInstance(), | 123 OptionsPage.registerSubPage(FontSettings.getInstance(), |
130 AdvancedOptions.getInstance(), | 124 AdvancedOptions.getInstance(), |
131 [$('fontSettingsCustomizeFontsButton')]); | 125 [$('fontSettingsCustomizeFontsButton')]); |
132 if (!cr.isChromeOS) { | 126 if (!cr.isChromeOS) { |
133 OptionsPage.registerSubPage(LanguageOptions.getInstance(), | 127 OptionsPage.registerSubPage(LanguageOptions.getInstance(), |
134 AdvancedOptions.getInstance(), | 128 AdvancedOptions.getInstance(), |
135 [$('language-button')]); | 129 [$('language-button')]); |
136 } | 130 } |
137 if (!cr.isWindows && !cr.isMac) { | 131 if (!cr.isWindows && !cr.isMac) { |
138 OptionsPage.registerSubPage(CertificateManager.getInstance(), | 132 OptionsPage.registerSubPage(CertificateManager.getInstance(), |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 221 |
228 document.addEventListener('DOMContentLoaded', load); | 222 document.addEventListener('DOMContentLoaded', load); |
229 | 223 |
230 window.onpopstate = function(e) { | 224 window.onpopstate = function(e) { |
231 options.OptionsPage.setState(e.state); | 225 options.OptionsPage.setState(e.state); |
232 }; | 226 }; |
233 | 227 |
234 window.onbeforeunload = function() { | 228 window.onbeforeunload = function() { |
235 options.OptionsPage.willClose(); | 229 options.OptionsPage.willClose(); |
236 }; | 230 }; |
OLD | NEW |