diff options
author | alemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 13:29:09 +0000 |
---|---|---|
committer | alemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 13:29:09 +0000 |
commit | e979192fa8302019421a95473edb119133875d7e (patch) | |
tree | 58ec0818b4a1dd049e4072c04e5f9803e5b07272 /chromeos | |
parent | dda9d16107cc68315242a1168697448aa081e900 (diff) | |
download | chromium_src-e979192fa8302019421a95473edb119133875d7e.zip chromium_src-e979192fa8302019421a95473edb119133875d7e.tar.gz chromium_src-e979192fa8302019421a95473edb119133875d7e.tar.bz2 |
Guest Mode: input method should default to the underlying latin keyboard layout.
Currently Guest mode always uses default value of
Preferences.PreferredInputMethod = "" (empty string) that
always leads to "us" keyboard layout (compiled-in default).
Guest sessions should have the following input methods/keyboards readily
available:
- the VPD value (assuming the latin keyboard representing the underlying
hardware; should be the default; e.g. French chromebook => azerty)
- the additional input method/keyboard based on the locale (e.g. Japanese
locale => should also add the Japanese IME; there are existing rules for
this)
BUG=329018
TEST=unittest
Review URL: https://codereview.chromium.org/133273032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/ime/input_method_manager.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chromeos/ime/input_method_manager.h b/chromeos/ime/input_method_manager.h index bbd5212..c86a07e 100644 --- a/chromeos/ime/input_method_manager.h +++ b/chromeos/ime/input_method_manager.h @@ -114,16 +114,16 @@ class CHROMEOS_EXPORT InputMethodManager { // is not active, switch to the first one in the active input method list. virtual void ChangeInputMethod(const std::string& input_method_id) = 0; - // Enables keyboard layouts (e.g. US Qwerty, US Dvorak, French Azerty) that - // are necessary for the |language_code| and then switches to |initial_layout| - // if the string is not empty. For example, if |language_code| is "en-US", US - // Qwerty, US International, US Extended, US Dvorak, and US Colemak layouts - // would be enabled. Likewise, for Germany locale, US Qwerty which corresponds - // to the hardware keyboard layout and several keyboard layouts for Germany - // would be enabled. - // This method is for setting up i18n keyboard layouts for the login screen. - virtual void EnableLayouts(const std::string& language_code, - const std::string& initial_layout) = 0; + // Enables "login" keyboard layouts (e.g. US Qwerty, US Dvorak, French + // Azerty) that are necessary for the |language_code| and then switches to + // |initial_layout| if the string is not empty. For example, if + // |language_code| is "en-US", US Qwerty, US International, US Extended, US + // Dvorak, and US Colemak layouts would be enabled. Likewise, for Germany + // locale, US Qwerty which corresponds to the hardware keyboard layout and + // several keyboard layouts for Germany would be enabled. + // Only layouts suitable for login screen are enabled. + virtual void EnableLoginLayouts(const std::string& language_code, + const std::string& initial_layout) = 0; // Activates the input method property specified by the |key|. virtual void ActivateInputMethodProperty(const std::string& key) = 0; |