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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2856423002: input: Change how synthesized events are dispatched in telemetry tests. (Closed)
Patch Set: . Created 3 years, 7 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/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 0a5c0dbb3b980e40790a9b73d530ebbd02a71ce1..959a322ef1df1f217bb72198d7d6b9e11b98b299 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -477,11 +477,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// Update the renderer's cache of the screen rect of the view and window.
void SendScreenRects();
- // Called by the view in response to a flush request.
- void FlushInput();
-
- // Request a flush signal from the view.
- void SetNeedsFlush();
+ void OnBeginFrame();
// Indicates whether the renderer drives the RenderWidgetHosts's size or the
// other way around.
@@ -641,6 +637,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info);
+ void RequestBeginFrameForSynthesizedInput(
+ base::OnceClosure begin_frame_callback);
+
// IPC message handlers
void OnRenderProcessGone(int status, int error_code);
void OnClose();
@@ -983,6 +982,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// Sorted by frame token.
std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_;
+ base::OnceClosure begin_frame_callback_;
+
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);

Powered by Google App Engine
This is Rietveld 408576698