| 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 // 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 OptionsPage = options.OptionsPage; | 9 const OptionsPage = options.OptionsPage; |
| 10 const LanguageList = options.LanguageList; | 10 const LanguageList = options.LanguageList; |
| 11 | 11 |
| 12 // Some input methods like Chinese Pinyin have config pages. | 12 // Some input methods like Chinese Pinyin have config pages. |
| 13 // This is the map of the input method names to their config page names. | 13 // This is the map of the input method names to their config page names. |
| 14 const INPUT_METHOD_ID_TO_CONFIG_PAGE_NAME = { | 14 const INPUT_METHOD_ID_TO_CONFIG_PAGE_NAME = { |
| 15 // TODO(nona): Remove ibus-hangul support. | |
| 16 'hangul': 'languageHangul', | |
| 17 'mozc': 'languageMozc', | 15 'mozc': 'languageMozc', |
| 18 'mozc-chewing': 'languageChewing', | 16 'mozc-chewing': 'languageChewing', |
| 19 'mozc-dv': 'languageMozc', | 17 'mozc-dv': 'languageMozc', |
| 20 'mozc-hangul': 'languageHangul', | 18 'mozc-hangul': 'languageHangul', |
| 21 'mozc-jp': 'languageMozc', | 19 'mozc-jp': 'languageMozc', |
| 22 'pinyin': 'languagePinyin', | 20 'pinyin': 'languagePinyin', |
| 23 'pinyin-dv': 'languagePinyin', | 21 'pinyin-dv': 'languagePinyin', |
| 24 }; | 22 }; |
| 25 | 23 |
| 26 ///////////////////////////////////////////////////////////////////////////// | 24 ///////////////////////////////////////////////////////////////////////////// |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 LanguageOptions.uiLanguageSaved = function() { | 795 LanguageOptions.uiLanguageSaved = function() { |
| 798 $('language-options-ui-language-button').style.display = 'none'; | 796 $('language-options-ui-language-button').style.display = 'none'; |
| 799 $('language-options-ui-notification-bar').style.display = 'block'; | 797 $('language-options-ui-notification-bar').style.display = 'block'; |
| 800 }; | 798 }; |
| 801 | 799 |
| 802 // Export | 800 // Export |
| 803 return { | 801 return { |
| 804 LanguageOptions: LanguageOptions | 802 LanguageOptions: LanguageOptions |
| 805 }; | 803 }; |
| 806 }); | 804 }); |
| OLD | NEW |