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

Unified Diff: Source/web/InspectorClientImpl.cpp

Issue 145003002: [DevTools] Switch from blink-based to content-based touch emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 42521e37adb6af95f1c4bee881a0e5a87751f2bf..7c7e3bf1c3130dfc4d48abb3e15ab5e6c3a47208 100644
--- a/Source/web/InspectorClientImpl.cpp
+++ b/Source/web/InspectorClientImpl.cpp
@@ -107,6 +107,12 @@ void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev
agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateViewport, fitWindow);
}
+void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled)
+{
+ if (WebDevToolsAgentImpl* agent = devToolsAgent())
+ agent->setTouchEventEmulationEnabled(enabled);
+}
+
bool InspectorClientImpl::overridesShowPaintRects()
{
return m_inspectedWebView->isAcceleratedCompositingActive();

Powered by Google App Engine
This is Rietveld 408576698