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

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

Issue 20356003: Provided batched input delivery with a BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BufferedInputRouter unit tests Created 7 years, 4 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 9c854224b5202f5bd223699fbef03f6836fab6bc..6b23df0ae6ed54751126e3ee941d4b532adbd965 100644
--- a/content/browser/renderer_host/input/input_router_client.h
+++ b/content/browser/renderer_host/input/input_router_client.h
@@ -71,6 +71,16 @@ class CONTENT_EXPORT InputRouterClient {
virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event,
InputEventAckState ack_result) = 0;
virtual void OnUnexpectedEventAck(bool bad_message) = 0;
+
+ // Certain router implementations require periodic flushing of queued events.
+ // When this method is called, the client should ensure a timely call, either
+ // synchronous or asynchronous, of |Flush| on the InputRouter.
+ virtual void SetNeedsFlush() = 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;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698