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

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

Issue 312023002: Sync starting language and input method preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 // TODO(kochi): Generalize the notification as a component and put it 5 // TODO(kochi): Generalize the notification as a component and put it
6 // in js/cr/ui/notification.js . 6 // in js/cr/ui/notification.js .
7 7
8 cr.define('options', function() { 8 cr.define('options', function() {
9 /** @const */ var OptionsPage = options.OptionsPage; 9 /** @const */ var OptionsPage = options.OptionsPage;
10 /** @const */ var LanguageList = options.LanguageList; 10 /** @const */ var LanguageList = options.LanguageList;
(...skipping 13 matching lines...) Expand all
24 * @const 24 * @const
25 */ 25 */
26 var ENABLE_SPELL_CHECK_PREF = 'browser.enable_spellchecking'; 26 var ENABLE_SPELL_CHECK_PREF = 'browser.enable_spellchecking';
27 27
28 /** 28 /**
29 * The preference is a CSV string that describes preload engines 29 * The preference is a CSV string that describes preload engines
30 * (i.e. active input methods). 30 * (i.e. active input methods).
31 * @type {string} 31 * @type {string}
32 * @const 32 * @const
33 */ 33 */
34 var PRELOAD_ENGINES_PREF = 'settings.language.preload_engines'; 34 var PRELOAD_ENGINES_PREF = 'settings.language.preload_engines_local';
35 35
36 /** 36 /**
37 * The preference that lists the extension IMEs that are enabled in the 37 * The preference that lists the extension IMEs that are enabled in the
38 * language menu. 38 * language menu.
39 * @type {string} 39 * @type {string}
40 * @const 40 * @const
41 */ 41 */
42 var ENABLED_EXTENSION_IME_PREF = 'settings.language.enabled_extension_imes'; 42 var ENABLED_EXTENSION_IME_PREF =
43 'settings.language.enabled_extension_imes_local';
43 44
44 /** 45 /**
45 * The preference that lists the languages which are not translated. 46 * The preference that lists the languages which are not translated.
46 * @type {string} 47 * @type {string}
47 * @const 48 * @const
48 */ 49 */
49 var TRANSLATE_BLOCKED_LANGUAGES_PREF = 'translate_blocked_languages'; 50 var TRANSLATE_BLOCKED_LANGUAGES_PREF = 'translate_blocked_languages';
50 51
51 /** 52 /**
52 * The preference key that is a string that describes the spell check 53 * The preference key that is a string that describes the spell check
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 1329
1329 LanguageOptions.onComponentManagerInitialized = function(componentImes) { 1330 LanguageOptions.onComponentManagerInitialized = function(componentImes) {
1330 LanguageOptions.getInstance().appendComponentExtensionIme_(componentImes); 1331 LanguageOptions.getInstance().appendComponentExtensionIme_(componentImes);
1331 }; 1332 };
1332 1333
1333 // Export 1334 // Export
1334 return { 1335 return {
1335 LanguageOptions: LanguageOptions 1336 LanguageOptions: LanguageOptions
1336 }; 1337 };
1337 }); 1338 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698