diff options
author | shuchen@chromium.org <shuchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-09 10:41:57 +0000 |
---|---|---|
committer | shuchen@chromium.org <shuchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-09 10:41:57 +0000 |
commit | 70aab186163dfe63f4d1ec1fde151549c50cdd4c (patch) | |
tree | 48db7dc14983544bf5bb919bdf3f542f50154f20 /chromeos | |
parent | 7d47aac2d51c7f4b4c56ca631c51c7f350d26472 (diff) | |
download | chromium_src-70aab186163dfe63f4d1ec1fde151549c50cdd4c.zip chromium_src-70aab186163dfe63f4d1ec1fde151549c50cdd4c.tar.gz chromium_src-70aab186163dfe63f4d1ec1fde151549c50cdd4c.tar.bz2 |
Use onActivate event to carry screen type instead of onFocus for IME extensions.
The original solution to let onFocus event carry screen type has a bug:
If no input field is focused after unlock, the IME extension doesn't receive
onFocus event and thus doesn't know about the screen type changed from 'lock'
to 'normal'. And A11y virtual keyboard can be opened without focusing an input
field.
BUG=401968
TEST=Verified on linux_chromeos.
Review URL: https://codereview.chromium.org/457673003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/ime/input_method_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chromeos/ime/input_method_manager.h b/chromeos/ime/input_method_manager.h index 1ef694e..a31dcb6 100644 --- a/chromeos/ime/input_method_manager.h +++ b/chromeos/ime/input_method_manager.h @@ -79,6 +79,9 @@ class CHROMEOS_EXPORT InputMethodManager { // Initialize component extensions. virtual void InitializeComponentExtension() = 0; + // Get the current UI session state (e.g. login screen, lock screen, etc.). + virtual State GetState() = 0; + // Adds an observer to receive notifications of input method related // changes as desribed in the Observer class above. virtual void AddObserver(Observer* observer) = 0; |