Chromium Code Reviews| Index: chrome/browser/chromeos/input_method/input_method_util.h |
| diff --git a/chrome/browser/chromeos/input_method/input_method_util.h b/chrome/browser/chromeos/input_method/input_method_util.h |
| index 32f3efbc177d4163c19cc8dcb538a00256da63b3..01b913f6391b2355efbd7dc17194cf3d9a93be6f 100644 |
| --- a/chrome/browser/chromeos/input_method/input_method_util.h |
| +++ b/chrome/browser/chromeos/input_method/input_method_util.h |
| @@ -93,10 +93,19 @@ class InputMethodUtil { |
| const std::vector<std::string>& input_method_ids, |
| std::vector<std::string>* out_language_codes) const; |
| + // Gets first input method associated with the language. |
| + // Returns empty string on error. |
| + std::string GetLanguageDefaultInputMethodId(const std::string& language_code); |
| + |
| // Returns the input method ID of the hardware keyboard. e.g. "xkb:us::eng" |
| // for the US Qwerty keyboard. |
| std::string GetHardwareInputMethodId() const; |
| + // Returns the login-allowed input method ID of the hardware keyboard. |
| + std::string GetHardwareLoginInputMethodId() const; |
| + |
| + bool IsLoginKeyboard(const std::string& layout) const; |
|
Hiro Komatsu
2014/01/22 10:01:55
Please add comment and unittest.
layout -> input_
Alexander Alekseev
2014/01/22 11:35:05
Done.
|
| + |
| // Returns true if the given input method id is supported. |
| bool IsValidInputMethodId(const std::string& input_method_id) const; |