summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 22:29:17 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 22:29:17 +0000
commit1891d2af03e278287a3b9502ce8525f7e22c5464 (patch)
treed47b98f7b39db1e362115a4d933831d4faa14d00 /ui/keyboard/keyboard_controller_proxy.h
parent4bde3e023e53c077a9f24ddebbc1802b61e7cba9 (diff)
downloadchromium_src-1891d2af03e278287a3b9502ce8525f7e22c5464.zip
chromium_src-1891d2af03e278287a3b9502ce8525f7e22c5464.tar.gz
chromium_src-1891d2af03e278287a3b9502ce8525f7e22c5464.tar.bz2
keyboard: Allow the proxy to customize the way the keyboard window is shown/hidden.
BUG=none R=ben@chromium.org, bryeung@chromium.org Review URL: https://codereview.chromium.org/14310003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index 92a1839..09e88cd 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -40,9 +40,15 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// text input context.
virtual ui::InputMethod* GetInputMethod() = 0;
- // Called after the keyboard bounds or visibility have changed, and after all
- // KeyboardController::Observer's have been notified.
- virtual void OnKeyboardBoundsChanged(const gfx::Rect& new_bounds) = 0;
+ // Shows the container window of the keyboard. The default implementation
+ // simply shows the container. An overridden implementation can set up
+ // necessary animation, or delay the visibility change as it desires.
+ virtual void ShowKeyboardContainer(aura::Window* container);
+
+ // Hides the container window of the keyboard. The default implementation
+ // simply hides the container. An overridden implementation can set up
+ // necesasry animation, or delay the visibility change as it desires.
+ virtual void HideKeyboardContainer(aura::Window* container);
protected:
// Gets the BrowserContext to use for creating the WebContents hosting the