Chromium Code Reviews| 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 AlertOverlay = options.AlertOverlay; | 6 var AlertOverlay = options.AlertOverlay; |
| 7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; | 7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; |
| 8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; | 8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; |
| 9 var AutofillOptions = options.AutofillOptions; | 9 var AutofillOptions = options.AutofillOptions; |
| 10 var BrowserOptions = options.BrowserOptions; | 10 var BrowserOptions = options.BrowserOptions; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 options.OptionsPage.willClose(); | 232 options.OptionsPage.willClose(); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 /** | 235 /** |
| 236 * Listener for the |popstate| event. | 236 * Listener for the |popstate| event. |
| 237 * @param {Event} e The |popstate| event. | 237 * @param {Event} e The |popstate| event. |
| 238 */ | 238 */ |
| 239 window.onpopstate = function(e) { | 239 window.onpopstate = function(e) { |
| 240 options.OptionsPage.setState(e.state); | 240 options.OptionsPage.setState(e.state); |
| 241 }; | 241 }; |
| 242 | |
| 243 // Initialize handlers now, before the DOMContentLoaded event. This is separate | |
| 244 // from initializing the pages which happens in load(). | |
| 245 OptionsPage.reinitializeCore(); | |
|
Evan Stade
2012/04/05 20:41:02
remove, call from C++ as discussed offline
| |
| OLD | NEW |