| 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 // 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |