diff options
author | kevers@chromium.org <kevers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-20 18:18:02 +0000 |
---|---|---|
committer | kevers@chromium.org <kevers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-20 18:18:02 +0000 |
commit | 183e28d67e650ad4c019daeacd3eaf4ccb23f103 (patch) | |
tree | 7b267623c7a9cb7fe55546feea30dc7b2c917b00 /ui/base/ime/input_method_observer.h | |
parent | 27a4b256f1b6006ec424529710acb6621a67b3c8 (diff) | |
download | chromium_src-183e28d67e650ad4c019daeacd3eaf4ccb23f103.zip chromium_src-183e28d67e650ad4c019daeacd3eaf4ccb23f103.tar.gz chromium_src-183e28d67e650ad4c019daeacd3eaf4ccb23f103.tar.bz2 |
Limit display of the virtual keyboard to state changes triggered from a user gesture.
This patch reuses OnTextInputStateChanged, which was previously Android specific, but which includes not only type information, but whether the virtual keyboard should be displayed. This is the first step in consolidating the IPC messages between RenderWidget and RenderWidgetHostView for IME messages. Ideally, we can phase out OnTextInputTypeChanged in favor of the approach used by Android across all platforms.
BUG=289659, 294191, 331690
Review URL: https://codereview.chromium.org/29943002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/ime/input_method_observer.h')
-rw-r--r-- | ui/base/ime/input_method_observer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/base/ime/input_method_observer.h b/ui/base/ime/input_method_observer.h index 8e4355d..d3432c9 100644 --- a/ui/base/ime/input_method_observer.h +++ b/ui/base/ime/input_method_observer.h @@ -39,6 +39,10 @@ class UI_BASE_EXPORT InputMethodObserver { // Called when the observed InputMethod is being destroyed. virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0; + + // Called when a user gesture should trigger showing the virtual keyboard + // or alternate input view (e.g. handwriting palette). Used in ChromeOS. + virtual void OnShowImeIfNeeded() = 0; }; } // namespace ui |