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

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 133273032: Guest Mode: input method should default to the underlying latin keyboard layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Use EnableInputMethod instead of EnableInputMethods. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
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..50092b456a93b389ca348095a887ea885ef3cbd0 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.h
+++ b/chrome/browser/chromeos/input_method/input_method_util.h
@@ -93,10 +93,20 @@ 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;
+
+ // Returns true if given input method can be used to input login data.
+ bool IsLoginKeyboard(const std::string& input_method_id) const;
+
// Returns true if the given input method id is supported.
bool IsValidInputMethodId(const std::string& input_method_id) const;

Powered by Google App Engine
This is Rietveld 408576698