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

Unified Diff: content/browser/renderer_host/input/input_router_client.h

Issue 1408213002: Add hooks for flushing input from BeginFrame dispatch on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build for real Created 5 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
Index: content/browser/renderer_host/input/input_router_client.h
diff --git a/content/browser/renderer_host/input/input_router_client.h b/content/browser/renderer_host/input/input_router_client.h
index 34fdf0eb9b7783bcbcaea9701dd46a4a71d079e9..51c913b78f750a0b3c152d80f21e45c65606237c 100644
--- a/content/browser/renderer_host/input/input_router_client.h
+++ b/content/browser/renderer_host/input/input_router_client.h
@@ -33,7 +33,7 @@ class CONTENT_EXPORT InputRouterClient {
const blink::WebInputEvent& input_event,
const ui::LatencyInfo& latency_info) = 0;
- // Called each time a WebInputEvent IPC is sent.
+ // Called each time a WebInputEvent IPC that expects an ACK is sent.
virtual void IncrementInFlightEventCount() = 0;
// Called each time a WebInputEvent ACK IPC is received.
@@ -42,10 +42,13 @@ class CONTENT_EXPORT InputRouterClient {
// Called when the renderer notifies that it has touch event handlers.
virtual void OnHasTouchEventHandlers(bool has_handlers) = 0;
- // Called when the router has finished flushing all events queued at the time
- // of the call to Flush. The call will typically be asynchronous with
- // respect to the call to |Flush| on the InputRouter.
- virtual void DidFlush() = 0;
+ // Called when the InputRouter requires a frame-aligned flush signal to
+ // forward pending input.
+ virtual void SetNeedsFlushInput() = 0;
+
+ // Called when the router has finished processing all queued events, both
+ // those awaiting dispatch and those currently in-flight.
+ virtual void DidFlushAllInput() = 0;
// Called when the router has received an overscroll notification from the
// renderer.
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698