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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index bad6fbc9ba255eb49a636f19e829412978381da8..5454fc305b9a99fabfffb222bbb6163353a0ceb9 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -858,6 +858,8 @@ void RenderWidgetHostViewAura::OnTextInputStateChanged(
if (GetInputMethod())
GetInputMethod()->ShowImeIfNeeded();
}
+ if (!GetInputMethod()->SupportsOnScreenKeyboard())
+ OnKeyboardBoundsUnchanged();
}
void RenderWidgetHostViewAura::ImeCancelComposition() {
@@ -1659,6 +1661,10 @@ bool RenderWidgetHostViewAura::IsEditingCommandEnabled(int command_id) {
void RenderWidgetHostViewAura::ExecuteEditingCommand(int command_id) {
}
+void RenderWidgetHostViewAura::OnKeyboardBoundsUnchanged() {
+ host_->Send(new ViewMsg_FocusChangeComplete(host_->GetRoutingID()));
+}
+
////////////////////////////////////////////////////////////////////////////////
// RenderWidgetHostViewAura, gfx::DisplayObserver implementation:

Powered by Google App Engine
This is Rietveld 408576698