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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
168 OptionsPage.registerOverlay(AlertOverlay.getInstance()); | 168 OptionsPage.registerOverlay(AlertOverlay.getInstance()); |
169 OptionsPage.registerOverlay(AutofillEditAddressOverlay.getInstance(), | 169 OptionsPage.registerOverlay(AutofillEditAddressOverlay.getInstance(), |
170 AutofillOptions.getInstance()); | 170 AutofillOptions.getInstance()); |
171 OptionsPage.registerOverlay(AutofillEditCreditCardOverlay.getInstance(), | 171 OptionsPage.registerOverlay(AutofillEditCreditCardOverlay.getInstance(), |
172 AutofillOptions.getInstance()); | 172 AutofillOptions.getInstance()); |
173 OptionsPage.registerOverlay(ClearBrowserDataOverlay.getInstance(), | 173 OptionsPage.registerOverlay(ClearBrowserDataOverlay.getInstance(), |
174 AdvancedOptions.getInstance(), | 174 AdvancedOptions.getInstance(), |
175 [$('privacyClearDataButton')]); | 175 [$('privacyClearDataButton')]); |
176 OptionsPage.registerOverlay(HomePageOverlay.getInstance(), | 176 OptionsPage.registerOverlay(HomePageOverlay.getInstance(), |
177 BrowserOptions.getInstance(), | 177 BrowserOptions.getInstance(), |
178 [$('toolbarShowHomeButton')]); | 178 [$('homepageURL')]); |
csilv
2012/02/02 19:32:26
This should point to the element that invokes this
Tyler Breisacher (Chromium)
2012/02/02 19:52:44
Done.
| |
179 OptionsPage.registerOverlay(ImportDataOverlay.getInstance(), | 179 OptionsPage.registerOverlay(ImportDataOverlay.getInstance(), |
180 BrowserOptions.getInstance()); | 180 BrowserOptions.getInstance()); |
181 OptionsPage.registerOverlay(InstantConfirmOverlay.getInstance(), | 181 OptionsPage.registerOverlay(InstantConfirmOverlay.getInstance(), |
182 BrowserOptions.getInstance()); | 182 BrowserOptions.getInstance()); |
183 OptionsPage.registerOverlay(ManageProfileOverlay.getInstance(), | 183 OptionsPage.registerOverlay(ManageProfileOverlay.getInstance(), |
184 BrowserOptions.getInstance()); | 184 BrowserOptions.getInstance()); |
185 OptionsPage.registerOverlay(StartupOverlay.getInstance(), | 185 OptionsPage.registerOverlay(StartupOverlay.getInstance(), |
186 BrowserOptions.getInstance()); | 186 BrowserOptions.getInstance()); |
187 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), | 187 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), |
188 BrowserOptions.getInstance()); | 188 BrowserOptions.getInstance()); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 | 247 |
248 document.addEventListener('DOMContentLoaded', load); | 248 document.addEventListener('DOMContentLoaded', load); |
249 | 249 |
250 window.onbeforeunload = function() { | 250 window.onbeforeunload = function() { |
251 options.OptionsPage.willClose(); | 251 options.OptionsPage.willClose(); |
252 }; | 252 }; |
253 | 253 |
254 window.onpopstate = function(e) { | 254 window.onpopstate = function(e) { |
255 options.OptionsPage.setState(e.state); | 255 options.OptionsPage.setState(e.state); |
256 }; | 256 }; |
OLD | NEW |