summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorbshe <bshe@chromium.org>2015-05-15 12:38:04 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-15 19:39:04 +0000
commit2b52cba3b5a831c466311faba812d51ddd532ba5 (patch)
tree0dd3cb98471d86af81dcd609a9d272687a414887 /ui/keyboard/keyboard_controller_proxy.h
parent349704cec73c9b5a377827313860d178b062fb8c (diff)
downloadchromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.zip
chromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.tar.gz
chromium_src-2b52cba3b5a831c466311faba812d51ddd532ba5.tar.bz2
Implements onBoundsChanged event in virtualKeyboardPrivate namespace
BUG=484699 Review URL: https://codereview.chromium.org/1128173003 Cr-Commit-Position: refs/heads/master@{#330169}
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index 2c91446..f927849 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -31,6 +31,8 @@ class Shadow;
namespace keyboard {
+class KeyboardController;
+
// A proxy used by the KeyboardController to get access to the virtual
// keyboard window.
class KEYBOARD_EXPORT KeyboardControllerProxy : public aura::WindowObserver {
@@ -101,6 +103,11 @@ class KEYBOARD_EXPORT KeyboardControllerProxy : public aura::WindowObserver {
// provide one.
virtual void ReloadKeyboardIfNeeded();
+ // KeyboardController owns KeyboardControllerProxy so KeyboardControllerProxy
+ // or its subclasses should not take ownership of the |controller|.
+ // |controller| can be null when KeyboardController is destroying.
+ virtual void SetController(KeyboardController* controller) {}
+
protected:
// The implementation can choose to setup the WebContents before the virtual
// keyboard page is loaded (e.g. install a WebContentsObserver).