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

Unified Diff: Source/web/InspectorClientImpl.cpp

Issue 243233002: [DevTools] Disable touch emulation on devices with touch input. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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: Source/web/InspectorClientImpl.cpp
diff --git a/Source/web/InspectorClientImpl.cpp b/Source/web/InspectorClientImpl.cpp
index 0ddc4cca539d0bdbaf39b62bbf5c22f4684e5276..2b9981bcce118730c6a2d0fe9ef8063ac5be2315 100644
--- a/Source/web/InspectorClientImpl.cpp
+++ b/Source/web/InspectorClientImpl.cpp
@@ -114,6 +114,13 @@ void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled)
agent->setTouchEventEmulationEnabled(enabled);
}
+bool InspectorClientImpl::hasTouchInputs()
+{
+ if (WebDevToolsAgentImpl* agent = devToolsAgent())
+ return agent->hasTouchInputs();
+ return false;
+}
+
bool InspectorClientImpl::overridesShowPaintRects()
{
return m_inspectedWebView->isAcceleratedCompositingActive();

Powered by Google App Engine
This is Rietveld 408576698