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

Unified Diff: ui/keyboard/keyboard_controller_proxy.h

Issue 159473002: Restore screen work area after login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a test for keyboard window Created 6 years, 10 months 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 de4473e05695d043a63192edbb9e8f33f3122dfe..e9c0118f6cbe135a4772b5306aae7e73da91f327 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.
+ bool HasKeyboardWindow() const { return keyboard_contents_; }
+
// Sets the flag of whether the keyboard window is resizing from
// its web contents.
void set_resizing_from_contents(bool resizing) {
« ash/root_window_controller_unittest.cc ('K') | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698