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

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

Issue 2401863003: Move synthetic gesture input to be aligned with BeginFrame. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 0c10ef0b8304b5a3b159ca8013bd2f445e678a7b..e641cf82344183771264efc1f659567cdf8f7aef 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -162,6 +162,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
void EndFrameSubscription() override;
bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
gfx::Rect GetBoundsInRootWindow() override;
+ void OnSetNeedsFlushInput() override;
void WheelEventAck(const blink::WebMouseWheelEvent& event,
InputEventAckState ack_result) override;
void GestureEventAck(const blink::WebGestureEvent& event,
@@ -532,6 +533,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Forwards a mouse event to this view's parent window delegate.
void ForwardMouseEventToParent(ui::MouseEvent* event);
+ // Adds/Removes frame observer based on state.
void UpdateNeedsBeginFramesInternal();
// Returns the RenderViewHostDelegateView instance for this view. Returns
@@ -598,6 +600,9 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Whether a request for begin frames has been issued.
bool needs_begin_frames_;
+ // Whether a request to flush input has been issued.
+ bool needs_flush_input_;
+
// Whether or not a frame observer has been added.
bool added_frame_observer_;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698