summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 16:32:30 +0000
committerbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 16:32:30 +0000
commit6cdc546c281b910b38902812c183e9669ea4102e (patch)
tree85e8765d9c0120a2d0dbe9cb502fdd4903d3bb44 /ui/keyboard/keyboard_controller_proxy.h
parentd4b86678342e52743dfcf442088905a36bd603e0 (diff)
downloadchromium_src-6cdc546c281b910b38902812c183e9669ea4102e.zip
chromium_src-6cdc546c281b910b38902812c183e9669ea4102e.tar.gz
chromium_src-6cdc546c281b910b38902812c183e9669ea4102e.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 Review URL: https://chromiumcodereview.appspot.com/13207003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h8
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