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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 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.h
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h
index 1b30815c7ce2a781001d6273c50cd3a0575ef52b..b5eb9e159bce629020bee6d7bd792550e00da857 100644
--- a/content/browser/renderer_host/input/input_router.h
+++ b/content/browser/renderer_host/input/input_router.h
@@ -24,10 +24,6 @@ class InputRouter : public IPC::Listener {
public:
virtual ~InputRouter() {}
- // Should be called only in response to |SetNeedsFlush| requests made via
- // the |InputRouterClient|.
- virtual void Flush() = 0;
-
// Send and take ownership of the the given InputMsg_*. This should be used
// only for event types not associated with a WebInputEvent. Returns true on
// success and false otherwise.
@@ -47,6 +43,17 @@ class InputRouter : public IPC::Listener {
virtual void SendTouchEvent(
const TouchEventWithLatencyInfo& touch_event) = 0;
+ // Recycle the router for use with a new event stream, resetting all
+ // pending/queued events from the router. Event types that require in-order
+ // acks (touch events) will be provided them.
+ virtual void Recycle() = 0;
+
+ // Request a notification from the router (through its client) when it becomes
+ // empty after dispatching all current and pending events. Note that this is
+ // not a strict flush marker, as the router will wait until *all* input has
+ // been dispatched, potentially including future input.
+ virtual void RequestFlushedNotification() = 0;
+
// Returns the oldest queued or in-flight keyboard event sent to the router.
virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const = 0;

Powered by Google App Engine
This is Rietveld 408576698