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

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

Issue 7044044: Add pinyin-dv support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'hangul': 'languageHangul', 15 'hangul': 'languageHangul',
16 'mozc': 'languageMozc', 16 'mozc': 'languageMozc',
17 'mozc-chewing': 'languageChewing', 17 'mozc-chewing': 'languageChewing',
18 'mozc-dv': 'languageMozc', 18 'mozc-dv': 'languageMozc',
19 'mozc-jp': 'languageMozc', 19 'mozc-jp': 'languageMozc',
20 'pinyin': 'languagePinyin', 20 'pinyin': 'languagePinyin',
21 'pinyin-dv': 'languagePinyin',
21 }; 22 };
22 23
23 ///////////////////////////////////////////////////////////////////////////// 24 /////////////////////////////////////////////////////////////////////////////
24 // LanguageOptions class: 25 // LanguageOptions class:
25 26
26 /** 27 /**
27 * Encapsulated handling of ChromeOS language options page. 28 * Encapsulated handling of ChromeOS language options page.
28 * @constructor 29 * @constructor
29 */ 30 */
30 function LanguageOptions(model) { 31 function LanguageOptions(model) {
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 LanguageOptions.uiLanguageSaved = function() { 766 LanguageOptions.uiLanguageSaved = function() {
766 $('language-options-ui-language-button').style.display = 'none'; 767 $('language-options-ui-language-button').style.display = 'none';
767 $('language-options-ui-notification-bar').style.display = 'block'; 768 $('language-options-ui-notification-bar').style.display = 'block';
768 }; 769 };
769 770
770 // Export 771 // Export
771 return { 772 return {
772 LanguageOptions: LanguageOptions 773 LanguageOptions: LanguageOptions
773 }; 774 };
774 }); 775 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698