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, |