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

Unified Diff: content/renderer/render_view_impl.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 7f38d6c98c43cf5910a9efe523420224fe8b32d7..557237f543ae696824dfad612df7c8f22ace88b7 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1503,11 +1503,15 @@ void RenderViewImpl::OnScrollFocusedEditableNodeIntoRect(
}
blink::WebElement element = GetFocusedElement();
+ bool will_animate = false;
if (!element.isNull() && IsEditableNode(element)) {
rect_for_scrolled_focused_editable_node_ = rect;
has_scrolled_focused_editable_node_into_rect_ = true;
- webview()->scrollFocusedNodeIntoRect(rect);
+ will_animate = webview()->scrollFocusedNodeIntoRect(rect);
}
+
+ FOR_EACH_OBSERVER(RenderViewObserver, observers_,
aelias_OOO_until_Jul13 2014/11/22 03:38:11 It's brittle to tie the autofill showing up at all
please use gerrit instead 2014/11/24 20:22:31 FocusChangeComplete event is a good idea. On Andro
aelias_OOO_until_Jul13 2014/11/25 01:26:34 To be clear, what I'm suggesting is that we should
please use gerrit instead 2014/12/15 18:39:55 The step #2 (FocusComplete) is not necessary, beca
+ WillAnimatePageScale(will_animate));
}
void RenderViewImpl::OnSetEditCommandsForNextKeyEvent(
@@ -3848,6 +3852,11 @@ void RenderViewImpl::InstrumentWillComposite() {
webview()->devToolsAgent()->willComposite();
}
+void RenderViewImpl::DidCompletePageScaleAnimation() {
+ FOR_EACH_OBSERVER(RenderViewObserver, observers_,
+ DidCompletePageScaleAnimation());
+}
+
void RenderViewImpl::SetScreenMetricsEmulationParameters(
float device_scale_factor,
const gfx::Point& root_layer_offset,

Powered by Google App Engine
This is Rietveld 408576698