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

Unified Diff: Source/core/inspector/InspectorController.cpp

Issue 23085004: DevTools: handle gesture tap event while in inspecting element mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorController.cpp
diff --git a/Source/core/inspector/InspectorController.cpp b/Source/core/inspector/InspectorController.cpp
index a9cb37b199ae844813f5f80009368de73bae471a..fdb31a51c3298b1798867580f65403ad42598cdf 100644
--- a/Source/core/inspector/InspectorController.cpp
+++ b/Source/core/inspector/InspectorController.cpp
@@ -322,6 +322,15 @@ Node* InspectorController::highlightedNode() const
return m_overlay->highlightedNode();
}
+bool InspectorController::handleGestureEvent(Frame* frame, const PlatformGestureEvent& event)
+{
+ // Overlay should not consume events.
+ m_overlay->handleGestureEvent(event);
+ if (InspectorDOMAgent* domAgent = m_instrumentingAgents->inspectorDOMAgent())
+ return domAgent->handleGestureEvent(frame, event);
+ return false;
+}
+
bool InspectorController::handleMouseEvent(Frame* frame, const PlatformMouseEvent& event)
{
// Overlay should not consume events.
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698