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

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: Address review comments 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/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 e0fa87fa49bcba9d35da5676f8209afd761fb55c..77581234ff6ce5ec37dd823c96f4734357e7ab8f 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -131,6 +131,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
RenderViewHost* GetRenderViewHost() override;
ServiceRegistry* GetServiceRegistry() override;
void ActivateFindInPageResultForAccessibility(int request_id) override;
+ void FlushVisualState(
+ const FlushVisualStateResultCallback& callback) override;
// IPC::Sender
bool Send(IPC::Message* msg) override;
@@ -438,6 +440,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
void OnSwapOutACK();
void OnContextMenu(const ContextMenuParams& params);
void OnJavaScriptExecuteResponse(int id, const base::ListValue& result);
+ void OnFlushVisualStateResponse(int id);
void OnRunJavaScriptMessage(const base::string16& message,
const base::string16& default_prompt,
const GURL& frame_url,
@@ -537,6 +540,7 @@ 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<int, FlushVisualStateResultCallback> flush_visual_state_callbacks_;
int routing_id_;

Powered by Google App Engine
This is Rietveld 408576698