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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 OptionsPage.register(BrowserOptions.getInstance()); | 68 OptionsPage.register(BrowserOptions.getInstance()); |
69 | 69 |
70 // BrowserOptions sub-pages. | 70 // BrowserOptions sub-pages. |
71 OptionsPage.registerSubPage(AdvancedOptions.getInstance(), | 71 OptionsPage.registerSubPage(AdvancedOptions.getInstance(), |
72 BrowserOptions.getInstance(), | 72 BrowserOptions.getInstance(), |
73 [$('advanced-settings')]); | 73 [$('advanced-settings')]); |
74 if (cr.isChromeOS) { | 74 if (cr.isChromeOS) { |
75 OptionsPage.registerSubPage(AccountsOptions.getInstance(), | 75 OptionsPage.registerSubPage(AccountsOptions.getInstance(), |
76 BrowserOptions.getInstance(), | 76 BrowserOptions.getInstance(), |
77 [$('manage-accounts-button')]); | 77 [$('manage-accounts-button')]); |
78 OptionsPage.registerSubPage(ChangePictureOptions.getInstance(), | |
79 BrowserOptions.getInstance(), | |
80 [$('change-picture-button')]); | |
81 OptionsPage.registerSubPage(InternetOptions.getInstance(), | 78 OptionsPage.registerSubPage(InternetOptions.getInstance(), |
82 BrowserOptions.getInstance(), | 79 BrowserOptions.getInstance(), |
83 [$('internet-options-button')]); | 80 [$('internet-options-button')]); |
84 } | 81 } |
85 | 82 |
86 // AdvancedOptions sub-pages. | 83 // AdvancedOptions sub-pages. |
87 OptionsPage.registerSubPage(ContentSettings.getInstance(), | 84 OptionsPage.registerSubPage(ContentSettings.getInstance(), |
88 AdvancedOptions.getInstance(), | 85 AdvancedOptions.getInstance(), |
89 [$('privacyContentSettingsButton')]); | 86 [$('privacyContentSettingsButton')]); |
90 | 87 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 OptionsPage.registerOverlay(StartupOverlay.getInstance(), | 180 OptionsPage.registerOverlay(StartupOverlay.getInstance(), |
184 BrowserOptions.getInstance()); | 181 BrowserOptions.getInstance()); |
185 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), | 182 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), |
186 BrowserOptions.getInstance()); | 183 BrowserOptions.getInstance()); |
187 if (cr.isChromeOS) { | 184 if (cr.isChromeOS) { |
188 OptionsPage.registerOverlay(BluetoothOptions.getInstance(), | 185 OptionsPage.registerOverlay(BluetoothOptions.getInstance(), |
189 AdvancedOptions.getInstance(), | 186 AdvancedOptions.getInstance(), |
190 [$('bluetooth-add-device')]); | 187 [$('bluetooth-add-device')]); |
191 OptionsPage.registerOverlay(BluetoothPairing.getInstance(), | 188 OptionsPage.registerOverlay(BluetoothPairing.getInstance(), |
192 AdvancedOptions.getInstance()); | 189 AdvancedOptions.getInstance()); |
| 190 OptionsPage.registerOverlay(ChangePictureOptions.getInstance(), |
| 191 BrowserOptions.getInstance(), |
| 192 [$('change-picture-button')]); |
193 OptionsPage.registerOverlay(DetailsInternetPage.getInstance(), | 193 OptionsPage.registerOverlay(DetailsInternetPage.getInstance(), |
194 InternetOptions.getInstance()); | 194 InternetOptions.getInstance()); |
195 OptionsPage.registerOverlay(KeyboardOverlay.getInstance(), | 195 OptionsPage.registerOverlay(KeyboardOverlay.getInstance(), |
196 BrowserOptions.getInstance(), | 196 BrowserOptions.getInstance(), |
197 [$('keyboard-settings-button')]); | 197 [$('keyboard-settings-button')]); |
198 OptionsPage.registerOverlay(PointerOverlay.getInstance(), | 198 OptionsPage.registerOverlay(PointerOverlay.getInstance(), |
199 BrowserOptions.getInstance(), | 199 BrowserOptions.getInstance(), |
200 [$('pointer-settings-button')]); | 200 [$('pointer-settings-button')]); |
201 OptionsPage.registerOverlay(ProxyOptions.getInstance(), | 201 OptionsPage.registerOverlay(ProxyOptions.getInstance(), |
202 InternetOptions.getInstance()); | 202 InternetOptions.getInstance()); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 options.OptionsPage.willClose(); | 260 options.OptionsPage.willClose(); |
261 }; | 261 }; |
262 | 262 |
263 /** | 263 /** |
264 * Listener for the |popstate| event. | 264 * Listener for the |popstate| event. |
265 * @param {Event} e The |popstate| event. | 265 * @param {Event} e The |popstate| event. |
266 */ | 266 */ |
267 window.onpopstate = function(e) { | 267 window.onpopstate = function(e) { |
268 options.OptionsPage.setState(e.state); | 268 options.OptionsPage.setState(e.state); |
269 }; | 269 }; |
OLD | NEW |