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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.cc

Issue 7677011: Supports additional Indic languages on the language setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | 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 #include "chrome/browser/chromeos/input_method/input_method_util.h" 5 #include "chrome/browser/chromeos/input_method/input_method_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 353 };
354 354
355 } // namespace 355 } // namespace
356 356
357 const ExtraLanguage kExtraLanguages[] = { 357 const ExtraLanguage kExtraLanguages[] = {
358 // Language Code Input Method ID 358 // Language Code Input Method ID
359 { "en-AU", "xkb:us::eng" }, // For Austrailia, use US keyboard layout. 359 { "en-AU", "xkb:us::eng" }, // For Austrailia, use US keyboard layout.
360 { "id", "xkb:us::eng" }, // For Indonesian, use US keyboard layout. 360 { "id", "xkb:us::eng" }, // For Indonesian, use US keyboard layout.
361 // The code "fil" comes from app/l10_util.cc. 361 // The code "fil" comes from app/l10_util.cc.
362 { "fil", "xkb:us::eng" }, // For Filipino, use US keyboard layout. 362 { "fil", "xkb:us::eng" }, // For Filipino, use US keyboard layout.
363 // Indic Languages
364 { "bn", "xkb:us::eng" }, // For Bengali, use US keyboard layout.
365 { "gu", "xkb:us::eng" }, // For Gujarati, use US keyboard layout.
366 { "kn", "xkb:us::eng" }, // For Kannada, use US keyboard layout.
367 { "ml", "xkb:us::eng" }, // For Malayalam, use US keyboard layout.
368 { "mr", "xkb:us::eng" }, // For Marathi, use US keyboard layout.
369 { "ta", "xkb:us::eng" }, // For Tamil, use US keyboard layout.
370 { "te", "xkb:us::eng" }, // For Telugu, use US keyboard layout.
363 // For Netherlands, use US international keyboard layout. 371 // For Netherlands, use US international keyboard layout.
364 { "nl", "xkb:us:intl:eng" }, 372 { "nl", "xkb:us:intl:eng" },
365 // The code "es-419" comes from app/l10_util.cc. 373 // The code "es-419" comes from app/l10_util.cc.
366 // For Spanish in Latin America, use Latin American keyboard layout. 374 // For Spanish in Latin America, use Latin American keyboard layout.
367 { "es-419", "xkb:latam::spa" }, 375 { "es-419", "xkb:latam::spa" },
368 }; 376 };
369 const size_t kExtraLanguagesLength = arraysize(kExtraLanguages); 377 const size_t kExtraLanguagesLength = arraysize(kExtraLanguages);
370 378
371 std::wstring GetString(const std::string& english_string, 379 std::wstring GetString(const std::string& english_string,
372 const std::string& input_method_id) { 380 const std::string& input_method_id) {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 void ReloadInternalMaps() { 753 void ReloadInternalMaps() {
746 IdMaps::GetInstance()->ReloadMaps(); 754 IdMaps::GetInstance()->ReloadMaps();
747 } 755 }
748 756
749 void OnLocaleChanged() { 757 void OnLocaleChanged() {
750 ReloadInternalMaps(); 758 ReloadInternalMaps();
751 } 759 }
752 760
753 } // namespace input_method 761 } // namespace input_method
754 } // namespace chromeos 762 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698