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

Unified Diff: ui/keyboard/keyboard_controller.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup when resizing the viewport resulted in movement of the focused element. Created 6 years 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.cc
diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc
index 4ee23b128c284c1dbe013cdd149b056115347b4e..43407030e0e3db139aa746e39f7b039313eaf0cd 100644
--- a/ui/keyboard/keyboard_controller.cc
+++ b/ui/keyboard/keyboard_controller.cc
@@ -245,6 +245,7 @@ KeyboardController::KeyboardController(KeyboardControllerProxy* proxy)
weak_factory_(this) {
CHECK(proxy);
input_method_ = proxy_->GetInputMethod();
+ input_method_->SetSupportsOnScreenKeyboard(true);
input_method_->AddObserver(this);
window_bounds_observer_.reset(new WindowBoundsChangeObserver());
}
@@ -478,6 +479,7 @@ void KeyboardController::ShowKeyboardInternal() {
proxy_->ReloadKeyboardIfNeeded();
if (keyboard_visible_) {
+ proxy_->GetInputMethod()->GetTextInputClient()->OnKeyboardBoundsUnchanged();
return;
} else if (proxy_->GetKeyboardWindow()->bounds().height() == 0) {
show_on_resize_ = true;

Powered by Google App Engine
This is Rietveld 408576698