Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: ui/keyboard/keyboard_controller_proxy.h

Issue 97013002: [Input View] Makes the input view window support window.resizeTo() and w3c visibility API its web c… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698