Index: ui/keyboard/keyboard_controller_proxy.h |
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h |
index cdd870a6a726ad29b86a932b8c85432ba7772de0..da28d07fff76f7735fafee2741e8ee33d7b14af0 100644 |
--- a/ui/keyboard/keyboard_controller_proxy.h |
+++ b/ui/keyboard/keyboard_controller_proxy.h |
@@ -27,6 +27,11 @@ class InputMethod; |
namespace keyboard { |
+class KeyboardResizer { |
+ public: |
+ virtual void SetKeyboardHeight(int height) = 0; |
kevers
2013/11/29 20:26:05
Please document the method including units for the
Shu Chen
2013/12/02 03:54:40
I've refactored the changes and removed the keyboa
|
+}; |
+ |
// A proxy used by the KeyboardController to get access to the virtual |
// keyboard window. |
class KEYBOARD_EXPORT KeyboardControllerProxy { |
@@ -41,6 +46,12 @@ class KEYBOARD_EXPORT KeyboardControllerProxy { |
// Sets the override content url. |
void SetOverrideContentUrl(const GURL& url); |
+ // Sets the keyboard resizer. |
+ void SetKeyboardResizer(KeyboardResizer* resizer); |
+ |
+ // Sets the keyboard height through the keyboard resizer. |
+ void SetKeyboardHeight(int height); |
+ |
// Gets the InputMethod that will provide notifications about changes in the |
// text input context. |
virtual ui::InputMethod* GetInputMethod() = 0; |
@@ -86,6 +97,8 @@ class KEYBOARD_EXPORT KeyboardControllerProxy { |
const GURL default_url_; |
GURL override_url_; |
+ KeyboardResizer* keyboard_resizer_; |
+ |
scoped_ptr<content::WebContents> keyboard_contents_; |
DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); |