Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: chrome/browser/resources/options2/options.js

Issue 10399046: Remove virtual keyboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 var PasswordManager = options.PasswordManager; 24 var PasswordManager = options.PasswordManager;
25 var Preferences = options.Preferences; 25 var Preferences = options.Preferences;
26 var PreferredNetworks = options.PreferredNetworks; 26 var PreferredNetworks = options.PreferredNetworks;
27 var ManageProfileOverlay = options.ManageProfileOverlay; 27 var ManageProfileOverlay = options.ManageProfileOverlay;
28 var SearchEngineManager = options.SearchEngineManager; 28 var SearchEngineManager = options.SearchEngineManager;
29 var SearchPage = options.SearchPage; 29 var SearchPage = options.SearchPage;
30 var SessionRestoreOverlay = options.SessionRestoreOverlay; 30 var SessionRestoreOverlay = options.SessionRestoreOverlay;
31 var SpellingConfirmOverlay = options.SpellingConfirmOverlay; 31 var SpellingConfirmOverlay = options.SpellingConfirmOverlay;
32 var StartupOverlay = options.StartupOverlay; 32 var StartupOverlay = options.StartupOverlay;
33 var SyncSetupOverlay = options.SyncSetupOverlay; 33 var SyncSetupOverlay = options.SyncSetupOverlay;
34 var VirtualKeyboardManager = options.VirtualKeyboardManager;
35 34
36 /** 35 /**
37 * DOMContentLoaded handler, sets up the page. 36 * DOMContentLoaded handler, sets up the page.
38 */ 37 */
39 function load() { 38 function load() {
40 // Decorate the existing elements in the document. 39 // Decorate the existing elements in the document.
41 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 40 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox);
42 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 41 cr.ui.decorate('input[pref][type=number]', options.PrefNumber);
43 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 42 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio);
44 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 43 cr.ui.decorate('input[pref][type=range]', options.PrefRange);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 OptionsPage.registerOverlay( 148 OptionsPage.registerOverlay(
150 new OptionsPage('languageMozc', 149 new OptionsPage('languageMozc',
151 loadTimeData.getString('languageMozcPageTabTitle'), 150 loadTimeData.getString('languageMozcPageTabTitle'),
152 'languageMozcPage'), 151 'languageMozcPage'),
153 LanguageOptions.getInstance()); 152 LanguageOptions.getInstance());
154 OptionsPage.registerOverlay( 153 OptionsPage.registerOverlay(
155 new OptionsPage('languagePinyin', 154 new OptionsPage('languagePinyin',
156 loadTimeData.getString('languagePinyinPageTabTitle'), 155 loadTimeData.getString('languagePinyinPageTabTitle'),
157 'languagePinyinPage'), 156 'languagePinyinPage'),
158 LanguageOptions.getInstance()); 157 LanguageOptions.getInstance());
159 // Only use the VirtualKeyboardManager if the keyboard DOM elements (which
160 // it will assume exists) are present (i.e. if we were built with
161 // use_virtual_keyboard=1).
162 if ($('language-options-virtual-keyboard')) {
163 OptionsPage.registerOverlay(VirtualKeyboardManager.getInstance(),
164 LanguageOptions.getInstance());
165 }
166 } 158 }
167 159
168 <if expr="pp_ifdef('chromeos') and pp_ifdef('use_ash')"> 160 <if expr="pp_ifdef('chromeos') and pp_ifdef('use_ash')">
169 if (SetWallpaperOptions) { 161 if (SetWallpaperOptions) {
170 OptionsPage.registerOverlay(SetWallpaperOptions.getInstance(), 162 OptionsPage.registerOverlay(SetWallpaperOptions.getInstance(),
171 BrowserOptions.getInstance(), 163 BrowserOptions.getInstance(),
172 [$('set-wallpaper')]); 164 [$('set-wallpaper')]);
173 } 165 }
174 </if> 166 </if>
175 167
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 options.OptionsPage.willClose(); 218 options.OptionsPage.willClose();
227 }; 219 };
228 220
229 /** 221 /**
230 * Listener for the |popstate| event. 222 * Listener for the |popstate| event.
231 * @param {Event} e The |popstate| event. 223 * @param {Event} e The |popstate| event.
232 */ 224 */
233 window.onpopstate = function(e) { 225 window.onpopstate = function(e) {
234 options.OptionsPage.setState(e.state); 226 options.OptionsPage.setState(e.state);
235 }; 227 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/options.html ('k') | chrome/browser/resources/options2/options_bundle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698