diff options
author | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 01:03:20 +0000 |
---|---|---|
committer | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 01:03:20 +0000 |
commit | 69a0f858da149d93324c70a5a4886011ae553c99 (patch) | |
tree | 6ec3f31a5f67d3ba52a9a48bc6f5c68ce1465231 /ui/keyboard/keyboard_controller_proxy.h | |
parent | 4cb117ed84a01debdc94d8b6b0db4adf26c5ab68 (diff) | |
download | chromium_src-69a0f858da149d93324c70a5a4886011ae553c99.zip chromium_src-69a0f858da149d93324c70a5a4886011ae553c99.tar.gz chromium_src-69a0f858da149d93324c70a5a4886011ae553c99.tar.bz2 |
Scroll focused editable nodes into view.
When the keyboard is shown, scroll any focused editable node of the
currently active WebContents into view.
BUG=235157
Review URL: https://chromiumcodereview.appspot.com/14212006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r-- | ui/keyboard/keyboard_controller_proxy.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h index 985f573..92a1839 100644 --- a/ui/keyboard/keyboard_controller_proxy.h +++ b/ui/keyboard/keyboard_controller_proxy.h @@ -11,13 +11,14 @@ namespace aura { class Window; } - namespace content { class BrowserContext; class SiteInstance; class WebContents; } - +namespace gfx { +class Rect; +} namespace ui { class InputMethod; } @@ -39,6 +40,10 @@ 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; + protected: // Gets the BrowserContext to use for creating the WebContents hosting the // keyboard. |