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

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

Issue 1050993004: Route touchmove existence notifications to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 b0198962fe284e3a677657e219253e78ec2662a3..1ef5056d99d765a3b6d6fa4ef5b6951eb05ff36c 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -21,7 +21,6 @@
#include "content/common/input/touch_action.h"
#include "content/common/input/web_touch_event_traits.h"
#include "content/common/input_messages.h"
-#include "content/common/view_messages.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/user_metrics.h"
@@ -270,8 +269,10 @@ bool InputRouterImpl::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(InputHostMsg_SelectRange_ACK, OnSelectMessageAck)
IPC_MESSAGE_HANDLER(InputHostMsg_MoveRangeSelectionExtent_ACK,
OnSelectMessageAck)
- IPC_MESSAGE_HANDLER(ViewHostMsg_HasTouchEventHandlers,
+ IPC_MESSAGE_HANDLER(InputHostMsg_HasTouchEventHandlers,
OnHasTouchEventHandlers)
+ IPC_MESSAGE_HANDLER(InputHostMsg_HasTouchMoveEventHandlers,
+ OnHasTouchMoveEventHandlers)
IPC_MESSAGE_HANDLER(InputHostMsg_SetTouchAction,
OnSetTouchAction)
IPC_MESSAGE_HANDLER(InputHostMsg_DidStopFlinging, OnDidStopFlinging)
@@ -486,6 +487,13 @@ void InputRouterImpl::OnHasTouchEventHandlers(bool has_handlers) {
client_->OnHasTouchEventHandlers(has_handlers);
}
+void InputRouterImpl::OnHasTouchMoveEventHandlers(bool has_handlers) {
+ TRACE_EVENT1("input", "InputRouterImpl::OnHasTouchMoveEventHandlers",
+ "has_handlers", has_handlers);
+
+ touch_event_queue_.OnHasTouchMoveEventHandlers(has_handlers);
+}
+
void InputRouterImpl::OnSetTouchAction(TouchAction touch_action) {
// Synthetic touchstart events should get filtered out in RenderWidget.
DCHECK(touch_event_queue_.IsPendingAckTouchStart());

Powered by Google App Engine
This is Rietveld 408576698