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

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

Issue 1003023002: Signal input flush when all flings have terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile Created 5 years, 9 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 940ae8ac825ee71fef30853a982974c998c2a275..3f33ae8faf8ff5cbaf37a9ea3e71b81534efced4 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:
~InputRouter() override {}
- // 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.
@@ -59,6 +55,12 @@ class InputRouter : public IPC::Listener {
};
virtual void OnViewUpdated(int view_flags) = 0;
+ // Request a notification from the input router when all events have been
+ // fully dispatched and there are no longer any pending events.
+ // Note: This may trigger a synchronous notification if the router is empty.
+ virtual void RequestNotificationWhenFlushed() = 0;
+
+ // Whether there are any events pending dispatch to or ack from the renderer.
virtual bool HasPendingEvents() const = 0;
};

Powered by Google App Engine
This is Rietveld 408576698