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

Unified Diff: content/browser/renderer_host/input/input_router.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.h
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h
index 186022feba8dac8adb4b544497ae3774ed696410..e84499dcf30aa1b896dd90d993063845f863a223 100644
--- a/content/browser/renderer_host/input/input_router.h
+++ b/content/browser/renderer_host/input/input_router.h
@@ -29,6 +29,11 @@ class InputRouter : public IPC::Listener {
// success and false otherwise.
virtual bool SendInput(scoped_ptr<IPC::Message> message) = 0;
+ // Called in response to a |SetNeedsFlushInput()| call made via the client.
+ // This is conditionally used for events that are best sent at a particular
+ // time, e.g., with scroll/wheel updates just before BeginFrame dispatch.
+ virtual void FlushInput(base::TimeTicks flush_time) = 0;
+
// WebInputEvents
virtual void SendMouseEvent(
const MouseEventWithLatencyInfo& mouse_event) = 0;
@@ -48,11 +53,6 @@ class InputRouter : public IPC::Listener {
// the site has a mobile-friendly viewport).
virtual void NotifySiteIsMobileOptimized(bool is_mobile_optimized) = 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