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

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

Issue 19220002: [WIP] BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix client assignment Created 7 years, 3 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..6479332d444b9ca4538721a63ea0fe1449b3af15 100644
--- a/content/browser/renderer_host/input/input_router_client.h
+++ b/content/browser/renderer_host/input/input_router_client.h
@@ -61,16 +61,15 @@ class CONTENT_EXPORT InputRouterClient {
virtual bool OnSendGestureEventImmediately(
const GestureEventWithLatencyInfo& gesture_event) = 0;
- // Called upon event ack receipt from the renderer.
- virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
- InputEventAckState ack_result) = 0;
- virtual void OnWheelEventAck(const WebKit::WebMouseWheelEvent& event,
- InputEventAckState ack_result) = 0;
- virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
- InputEventAckState ack_result) = 0;
- 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
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/input/input_router_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698