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; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 OptionsPage.registerSubPage( | 96 OptionsPage.registerSubPage( |
97 new OptionsPage('languageMozc', | 97 new OptionsPage('languageMozc', |
98 templateData.languageMozcPageTabTitle, | 98 templateData.languageMozcPageTabTitle, |
99 'languageMozcPage'), | 99 'languageMozcPage'), |
100 LanguageOptions.getInstance()); | 100 LanguageOptions.getInstance()); |
101 OptionsPage.registerSubPage( | 101 OptionsPage.registerSubPage( |
102 new OptionsPage('languagePinyin', | 102 new OptionsPage('languagePinyin', |
103 templateData.languagePinyinPageTabTitle, | 103 templateData.languagePinyinPageTabTitle, |
104 'languagePinyinPage'), | 104 'languagePinyinPage'), |
105 LanguageOptions.getInstance()); | 105 LanguageOptions.getInstance()); |
106 if (cr.isTouch) { | 106 if ($('language-options-virtual-keyboard')) { |
arv (Not doing code reviews)
2011/11/30 17:36:06
This looks a bit ad hoc. I kind of preferred the o
Rick Byers
2011/12/01 01:21:44
Yeah, I debated this. We could plumb through a ne
| |
107 OptionsPage.registerSubPage(VirtualKeyboardManager.getInstance(), | 107 OptionsPage.registerSubPage(VirtualKeyboardManager.getInstance(), |
108 LanguageOptions.getInstance()); | 108 LanguageOptions.getInstance()); |
109 } | 109 } |
110 OptionsPage.register(InternetOptions.getInstance()); | 110 OptionsPage.register(InternetOptions.getInstance()); |
111 } | 111 } |
112 OptionsPage.register(AdvancedOptions.getInstance()); | 112 OptionsPage.register(AdvancedOptions.getInstance()); |
113 OptionsPage.registerSubPage(ContentSettings.getInstance(), | 113 OptionsPage.registerSubPage(ContentSettings.getInstance(), |
114 AdvancedOptions.getInstance(), | 114 AdvancedOptions.getInstance(), |
115 [$('privacyContentSettingsButton')]); | 115 [$('privacyContentSettingsButton')]); |
116 OptionsPage.registerSubPage(ContentSettingsExceptionsArea.getInstance(), | 116 OptionsPage.registerSubPage(ContentSettingsExceptionsArea.getInstance(), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 | 235 |
236 document.addEventListener('DOMContentLoaded', load); | 236 document.addEventListener('DOMContentLoaded', load); |
237 | 237 |
238 window.onpopstate = function(e) { | 238 window.onpopstate = function(e) { |
239 options.OptionsPage.setState(e.state); | 239 options.OptionsPage.setState(e.state); |
240 }; | 240 }; |
241 | 241 |
242 window.onbeforeunload = function() { | 242 window.onbeforeunload = function() { |
243 options.OptionsPage.willClose(); | 243 options.OptionsPage.willClose(); |
244 }; | 244 }; |
OLD | NEW |