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

Unified Diff: content/browser/renderer_host/input/input_router_impl.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_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index e1ea09a149b39b226d5c2d9e4164486180950f21..5d9fb96b104fd853a5449064a428b25bb9e85caf 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -56,6 +56,7 @@ class CONTENT_EXPORT InputRouterImpl
// InputRouter
bool SendInput(scoped_ptr<IPC::Message> message) override;
+ void FlushInput(base::TimeTicks flush_time) override;
void SendMouseEvent(const MouseEventWithLatencyInfo& mouse_event) override;
void SendWheelEvent(
const MouseWheelEventWithLatencyInfo& wheel_event) override;
@@ -66,7 +67,6 @@ class CONTENT_EXPORT InputRouterImpl
void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override;
const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override;
void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override;
- void RequestNotificationWhenFlushed() override;
bool HasPendingEvents() const override;
// IPC::Listener
@@ -173,7 +173,7 @@ private:
// non-zero touch timeout configuration.
void UpdateTouchAckTimeoutEnabled();
- // If a flush has been requested, signals a completed flush to the client if
+ // If a flush call has been made, signals a completed flush to the client if
// all events have been dispatched (i.e., |HasPendingEvents()| is false).
void SignalFlushedIfNecessary();
@@ -236,8 +236,8 @@ private:
// Defaults to ACK_SOURCE_NONE.
AckSource current_ack_source_;
- // Whether a call to |Flush()| has yet been accompanied by a |DidFlush()| call
- // to the client_ after all events have been dispatched/acked.
+ // Whether we've received a |FlushInput()| call without yet calling
+ // |DidFlashAllInput()| on the client.
bool flush_requested_;
// Whether there are any active flings in the renderer. As the fling
« no previous file with comments | « content/browser/renderer_host/input/input_router_client.h ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698