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

Unified Diff: ui/keyboard/keyboard_controller.h

Issue 487253003: Keep virtual keyboard visibility the same after enable an IME in a different extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reviews Created 6 years, 4 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.h
diff --git a/ui/keyboard/keyboard_controller.h b/ui/keyboard/keyboard_controller.h
index f0ae012e996244abfc9bf3b518972f2a969cda76..492a0ca00650981f9f7e3600cec9c34008cdbe78 100644
--- a/ui/keyboard/keyboard_controller.h
+++ b/ui/keyboard/keyboard_controller.h
@@ -93,6 +93,8 @@ class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver,
// Returns true if keyboard is currently visible.
bool keyboard_visible() { return keyboard_visible_; }
+ bool show_on_resize() { return show_on_resize_; }
+
// Returns the current keyboard bounds. When the keyboard is not shown,
// an empty rectangle will get returned.
const gfx::Rect& current_keyboard_bounds() {
@@ -153,6 +155,7 @@ class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver,
ui::InputMethod* input_method_;
bool keyboard_visible_;
+ bool show_on_resize_;
bool lock_keyboard_;
ui::TextInputType type_;

Powered by Google App Engine
This is Rietveld 408576698