diff options
| author | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 10:12:21 +0000 |
|---|---|---|
| committer | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 10:12:21 +0000 |
| commit | 1e8e765e76578341934e7285afa6b4e12b4f8c6e (patch) | |
| tree | 9d6f8f21cf5a5b75938b40a6431343ae74672330 /chrome/browser/chromeos/cros/language_library.h | |
| parent | e713a43daff36ba4317c7585a1a6ea056f49cb8c (diff) | |
| download | chromium_src-1e8e765e76578341934e7285afa6b4e12b4f8c6e.zip chromium_src-1e8e765e76578341934e7285afa6b4e12b4f8c6e.tar.gz chromium_src-1e8e765e76578341934e7285afa6b4e12b4f8c6e.tar.bz2 | |
Added input_method_util.h.
- Moved all functions in language_menu_l10n_util.h to the new file.
- Moved static methods in language_library.h and language_config_model.h to the file.
BUG=none
TEST=try bot passed
Review URL: http://codereview.chromium.org/2810008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/language_library.h')
| -rw-r--r-- | chrome/browser/chromeos/cros/language_library.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/chrome/browser/chromeos/cros/language_library.h b/chrome/browser/chromeos/cros/language_library.h index 47b6006..f961880 100644 --- a/chrome/browser/chromeos/cros/language_library.h +++ b/chrome/browser/chromeos/cros/language_library.h @@ -84,36 +84,6 @@ class InputMethodLibrary { virtual const InputMethodDescriptor& current_input_method() const = 0; virtual const ImePropertyList& current_ime_properties() const = 0; - - // Normalizes the language code and returns the normalized version. The - // function normalizes the given language code to be compatible with the - // one used in Chrome's application locales. Otherwise, returns the - // given language code as-is. - // - // Examples: - // - // - "zh_CN" => "zh-CN" (Use - instead of _) - // - "jpn" => "ja" (Use two-letter code) - // - "t" => "t" (Return as-is if unknown) - static std::string NormalizeLanguageCode(const std::string& language_code); - - // Returns true if the given input method id is for a keyboard layout. - static bool IsKeyboardLayout(const std::string& input_method_id); - - // Gets the language code from the given input method descriptor. This - // encapsulates differences between the language codes used in - // InputMethodDescriptor and Chrome's application locale codes. - static std::string GetLanguageCodeFromDescriptor( - const InputMethodDescriptor& descriptor); - - // Gets the keyboard layout name from the given input method ID. - // If the ID is invalid, the default layout name will be returned. - // - // Examples: - // - // "xkb:us::eng" => "us" - // "xkb:us:dvorak:eng" => "us(dvorak)" - static std::string GetKeyboardLayoutName(const std::string& input_method_id); }; // This class handles the interaction with the ChromeOS language library APIs. |
