summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.cc
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.cc
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.cc')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.cc b/ui/keyboard/keyboard_controller_proxy.cc
index be49005..33e2b71 100644
--- a/ui/keyboard/keyboard_controller_proxy.cc
+++ b/ui/keyboard/keyboard_controller_proxy.cc
@@ -9,6 +9,7 @@
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_view.h"
+#include "ui/aura/window.h"
#include "ui/keyboard/keyboard_constants.h"
namespace {
@@ -71,6 +72,14 @@ aura::Window* KeyboardControllerProxy::GetKeyboardWindow() {
return keyboard_contents_->GetView()->GetNativeView();
}
+void KeyboardControllerProxy::ShowKeyboardContainer(aura::Window* container) {
+ container->Show();
+}
+
+void KeyboardControllerProxy::HideKeyboardContainer(aura::Window* container) {
+ container->Hide();
+}
+
void KeyboardControllerProxy::SetupWebContents(content::WebContents* contents) {
}