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

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

Issue 2886283004: input: Fix running the completion callback for telemetry gesture. (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 67d6dc0f9ff417140273c066eadbf415f63e11e9..581231ded625d6d4e9f680cc21ba7bf4f13fc9a4 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -33,6 +33,7 @@
#include "content/browser/renderer_host/input/input_router_client.h"
#include "content/browser/renderer_host/input/render_widget_host_latency_tracker.h"
#include "content/browser/renderer_host/input/synthetic_gesture.h"
+#include "content/browser/renderer_host/input/synthetic_gesture_controller.h"
#include "content/browser/renderer_host/input/touch_emulator_client.h"
#include "content/browser/renderer_host/render_widget_host_delegate.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
@@ -101,6 +102,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl
public InputRouterClient,
public InputAckHandler,
public TouchEmulatorClient,
+ public NON_EXPORTED_BASE(SyntheticGestureController::Delegate),
public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink),
public IPC::Listener {
public:
@@ -580,6 +582,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl
return last_frame_metadata_;
}
+ // SyntheticGestureController::Delegate:
+ void RequestBeginFrameForSynthesizedInput(
+ base::OnceClosure begin_frame_callback) override;
+ bool HasGestureStopped() override;
+
// cc::mojom::MojoCompositorFrameSink implementation.
void SetNeedsBeginFrame(bool needs_begin_frame) override;
void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
@@ -638,8 +645,6 @@ 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);

Powered by Google App Engine
This is Rietveld 408576698