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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 831903004: [WebView] Add a new flushVisualState API to AwContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for crbug/452530 Created 5 years, 11 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index fb5f2b51b94291be69fbca171ff0649e3d82116e..a26866c3a21dc42895efc7870fbc3a4aa65cdf33 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -982,6 +982,8 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
OnJavaScriptExecuteRequest)
IPC_MESSAGE_HANDLER(FrameMsg_JavaScriptExecuteRequestForTests,
OnJavaScriptExecuteRequestForTests)
+ IPC_MESSAGE_HANDLER(FrameMsg_FlushVisualStateRequest,
+ OnFlushVisualStateRequest)
IPC_MESSAGE_HANDLER(FrameMsg_SetEditableSelectionOffsets,
OnSetEditableSelectionOffsets)
IPC_MESSAGE_HANDLER(FrameMsg_SetupTransitionView, OnSetupTransitionView)
@@ -1448,6 +1450,12 @@ void RenderFrameImpl::HandleJavascriptExecutionResult(
}
}
+void RenderFrameImpl::OnFlushVisualStateRequest(int id) {
mkosiba (inactive) 2015/01/27 22:07:20 int64?
Ignacio Solla 2015/02/05 16:00:38 Done.
Ignacio Solla 2015/02/05 16:00:38 Done.
+ GetRenderWidget()->QueueMessage(
+ new FrameHostMsg_FlushVisualStateResponse(routing_id_, id),
+ MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
+}
+
void RenderFrameImpl::OnSetEditableSelectionOffsets(int start, int end) {
base::AutoReset<bool> handling_select_range(&handling_select_range_, true);
if (!GetRenderWidget()->ShouldHandleImeEvent())
« content/renderer/render_frame_impl.h ('K') | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698