| 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 #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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 }; | 362 }; |
| 363 | 363 |
| 364 } // namespace | 364 } // namespace |
| 365 | 365 |
| 366 const ExtraLanguage kExtraLanguages[] = { | 366 const ExtraLanguage kExtraLanguages[] = { |
| 367 // Language Code Input Method ID | 367 // Language Code Input Method ID |
| 368 { "en-AU", "xkb:us::eng" }, // For Austrailia, use US keyboard layout. | 368 { "en-AU", "xkb:us::eng" }, // For Austrailia, use US keyboard layout. |
| 369 { "id", "xkb:us::eng" }, // For Indonesian, use US keyboard layout. | 369 { "id", "xkb:us::eng" }, // For Indonesian, use US keyboard layout. |
| 370 // The code "fil" comes from app/l10_util.cc. | 370 // The code "fil" comes from app/l10_util.cc. |
| 371 { "fil", "xkb:us::eng" }, // For Filipino, use US keyboard layout. | 371 { "fil", "xkb:us::eng" }, // For Filipino, use US keyboard layout. |
| 372 // Indic Languages | |
| 373 { "bn", "xkb:us::eng" }, // For Bengali, use US keyboard layout. | |
| 374 { "gu", "xkb:us::eng" }, // For Gujarati, use US keyboard layout. | |
| 375 { "ml", "xkb:us::eng" }, // For Malayalam, use US keyboard layout. | |
| 376 { "mr", "xkb:us::eng" }, // For Marathi, use US keyboard layout. | |
| 377 { "ta", "xkb:us::eng" }, // For Tamil, use US keyboard layout. | |
| 378 // For Netherlands, use US international keyboard layout. | 372 // For Netherlands, use US international keyboard layout. |
| 379 { "nl", "xkb:us:intl:eng" }, | 373 { "nl", "xkb:us:intl:eng" }, |
| 380 // The code "es-419" comes from app/l10_util.cc. | 374 // The code "es-419" comes from app/l10_util.cc. |
| 381 // For Spanish in Latin America, use Latin American keyboard layout. | 375 // For Spanish in Latin America, use Latin American keyboard layout. |
| 382 { "es-419", "xkb:latam::spa" }, | 376 { "es-419", "xkb:latam::spa" }, |
| 383 }; | 377 }; |
| 384 const size_t kExtraLanguagesLength = arraysize(kExtraLanguages); | 378 const size_t kExtraLanguagesLength = arraysize(kExtraLanguages); |
| 385 | 379 |
| 386 std::wstring GetString(const std::string& english_string, | 380 std::wstring GetString(const std::string& english_string, |
| 387 const std::string& input_method_id) { | 381 const std::string& input_method_id) { |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 void ReloadInternalMaps() { | 762 void ReloadInternalMaps() { |
| 769 IdMaps::GetInstance()->ReloadMaps(); | 763 IdMaps::GetInstance()->ReloadMaps(); |
| 770 } | 764 } |
| 771 | 765 |
| 772 void OnLocaleChanged() { | 766 void OnLocaleChanged() { |
| 773 ReloadInternalMaps(); | 767 ReloadInternalMaps(); |
| 774 } | 768 } |
| 775 | 769 |
| 776 } // namespace input_method | 770 } // namespace input_method |
| 777 } // namespace chromeos | 771 } // namespace chromeos |
| OLD | NEW |