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

Unified Diff: content/browser/renderer_host/input/input_router_impl.cc

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.cc
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc
index 7aabd60931cdf3677b88e6e5c573db13bad0fc10..86aadd778ce16ffbe949d5096fdc332e7b6b6aef 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -57,8 +57,7 @@ const char* GetEventAckName(InputEventAckState ack_result) {
} // namespace
-InputRouterImpl::Config::Config() {
-}
+InputRouterImpl::Config::Config() {}
InputRouterImpl::InputRouterImpl(IPC::Sender* sender,
InputRouterClient* client,
@@ -105,6 +104,11 @@ bool InputRouterImpl::SendInput(scoped_ptr<IPC::Message> message) {
}
}
+void InputRouterImpl::FlushInput(base::TimeTicks flush_time) {
+ flush_requested_ = true;
+ SignalFlushedIfNecessary();
+}
+
void InputRouterImpl::SendMouseEvent(
const MouseEventWithLatencyInfo& mouse_event) {
if (mouse_event.event.type == WebInputEvent::MouseDown &&
@@ -242,11 +246,6 @@ void InputRouterImpl::NotifySiteIsMobileOptimized(bool is_mobile_optimized) {
touch_event_queue_.SetIsMobileOptimizedSite(is_mobile_optimized);
}
-void InputRouterImpl::RequestNotificationWhenFlushed() {
- flush_requested_ = true;
- SignalFlushedIfNecessary();
-}
-
bool InputRouterImpl::HasPendingEvents() const {
return !touch_event_queue_.empty() ||
!gesture_event_queue_.empty() ||
@@ -642,7 +641,7 @@ void InputRouterImpl::SignalFlushedIfNecessary() {
return;
flush_requested_ = false;
- client_->DidFlush();
+ client_->DidFlushAllInput();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698