diff options
author | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 18:08:35 +0000 |
---|---|---|
committer | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 18:08:35 +0000 |
commit | 96e76080d2d429aaad846dc6c44ca30267d52997 (patch) | |
tree | 476841cdf8d2206b24c1defdaadf07f1dd1eceab /ui/keyboard/keyboard_controller_proxy.h | |
parent | b140c1e73ff3aaaef2233d73ea60029c4d914f91 (diff) | |
download | chromium_src-96e76080d2d429aaad846dc6c44ca30267d52997.zip chromium_src-96e76080d2d429aaad846dc6c44ca30267d52997.tar.gz chromium_src-96e76080d2d429aaad846dc6c44ca30267d52997.tar.bz2 |
Control visibility of the virtual keyboard.
Add an observer to InputMethod. This makes the InputMethod the gatherer of text input state changes, which are then distributed to interested parties.
The KeyboardController becomes an InputMethod::Observer, and shows/hides the keyboard as appropriate.
BUG=227128
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193662
Review URL: https://codereview.chromium.org/13207003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r-- | ui/keyboard/keyboard_controller_proxy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h index e1783a4d..a656e06 100644 --- a/ui/keyboard/keyboard_controller_proxy.h +++ b/ui/keyboard/keyboard_controller_proxy.h @@ -11,6 +11,10 @@ namespace aura { class Window; } +namespace ui { +class InputMethod; +} + namespace keyboard { // A proxy used by the KeyboardController to get access to the virtual @@ -22,6 +26,10 @@ class KEYBOARD_EXPORT KeyboardControllerProxy { // Get the virtual keyboard window. Ownership of the returned Window remains // with the proxy. virtual aura::Window* GetKeyboardWindow() = 0; + + // Get the InputMethod that will provide notifications about changes in the + // text input context. + virtual ui::InputMethod* GetInputMethod() = 0; }; } // namespace keyboard |