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

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

Issue 101933004: Eager Gesture Recognizer (WIP) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Starting work on Android. Created 6 years, 11 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 741d145d1eeb4a2c9d2c073f57deec4f5f4e4fc0..c73ccd33fb55b29ba05632407d6a45c101812404 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -217,6 +217,7 @@ void InputRouterImpl::SendGestureEvent(
void InputRouterImpl::SendTouchEvent(
const TouchEventWithLatencyInfo& touch_event) {
+ LOG(ERROR) << "Queueing touch event";
touch_event_queue_->QueueEvent(touch_event);
}
@@ -244,6 +245,7 @@ void InputRouterImpl::SendMouseEventImmediately(
void InputRouterImpl::SendTouchEventImmediately(
const TouchEventWithLatencyInfo& touch_event) {
+ LOG(ERROR) << "Skipping Queue";
FilterAndSendWebInputEvent(touch_event.event, touch_event.latency, false);
}
@@ -259,6 +261,8 @@ const NativeWebKeyboardEvent* InputRouterImpl::GetLastKeyboardEvent() const {
}
bool InputRouterImpl::ShouldForwardTouchEvent() const {
+ if (!has_touch_handler_)
+ LOG(ERROR) << "No touch handler";
// Always send a touch event if the renderer has a touch-event handler. It is
// possible that a renderer stops listening to touch-events while there are
// still events in the touch-queue. In such cases, the new events should still
@@ -296,6 +300,7 @@ bool InputRouterImpl::OnMessageReceived(const IPC::Message& message) {
void InputRouterImpl::OnTouchEventAck(const TouchEventWithLatencyInfo& event,
InputEventAckState ack_result) {
+ LOG(ERROR) << "Touch Event Ack";
ack_handler_->OnTouchEventAck(event, ack_result);
}
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698