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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 831903004: [WebView] Add a new flushVisualState API to AwContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: int -> uint62 everywhere for real. Created 5 years, 10 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index f66411d23d969d39d975bf159cedae196062778b..34c0f9f0b5f0ea1f977903478cc133be804db139 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -138,6 +138,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
RenderViewHost* GetRenderViewHost() override;
ServiceRegistry* GetServiceRegistry() override;
blink::WebPageVisibilityState GetVisibilityState() override;
+ void FlushVisualState(
+ const FlushVisualStateResultCallback& callback) override;
// IPC::Sender
bool Send(IPC::Message* msg) override;
@@ -461,6 +463,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
void OnSwapOutACK();
void OnContextMenu(const ContextMenuParams& params);
void OnJavaScriptExecuteResponse(int id, const base::ListValue& result);
+ void OnFlushVisualStateResponse(uint64 id);
void OnRunJavaScriptMessage(const base::string16& message,
const base::string16& default_prompt,
const GURL& frame_url,
@@ -577,6 +580,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
// The mapping of pending JavaScript calls created by
// ExecuteJavaScript and their corresponding callbacks.
std::map<int, JavaScriptResultCallback> javascript_callbacks_;
+ std::map<uint64, FlushVisualStateResultCallback>
+ flush_visual_state_callbacks_;
// RenderFrameHosts that need management of the rendering and input events
// for their frame subtrees require RenderWidgetHosts. This typically
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698