summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 01:25:50 +0000
committerbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 01:25:50 +0000
commit1025937e97d65ae7155c7a84fb5189fbc22fcb5e (patch)
treefafed49f67282ed232f3e88d1dfbd0679086c159 /ui/keyboard/keyboard_controller_proxy.h
parent5a3a81eba38162731c5b4a61cf6900bf89ac3a8b (diff)
downloadchromium_src-1025937e97d65ae7155c7a84fb5189fbc22fcb5e.zip
chromium_src-1025937e97d65ae7155c7a84fb5189fbc22fcb5e.tar.gz
chromium_src-1025937e97d65ae7155c7a84fb5189fbc22fcb5e.tar.bz2
Restore screen work area after login
When user login, a new virtual keyboard is created. If the old virtual keyboard was showing before user login, we need to notfiy keyboard bounds observers that old virtual keyboard window occupy no space on screen. Otherwise, Ash still thinks the work area should exclude virtual keyboard area even the keyboard is not showing. This CL fixed the bug. BUG=342524 Review URL: https://codereview.chromium.org/159473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index de4473e..d8b7f3d3 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -44,6 +44,10 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// Whether the keyboard window is resizing from its web contents.
bool resizing_from_contents() const { return resizing_from_contents_; }
+ // Whether the keyboard window is created. The keyboard window is tied to a
+ // WebContent so we can just check if the WebContent is created or not.
+ virtual bool HasKeyboardWindow() const;
+
// Sets the flag of whether the keyboard window is resizing from
// its web contents.
void set_resizing_from_contents(bool resizing) {