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

Unified Diff: Source/web/WebDevToolsAgentImpl.h

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/WebDevToolsAgentImpl.h
diff --git a/Source/web/WebDevToolsAgentImpl.h b/Source/web/WebDevToolsAgentImpl.h
index 145520a1a1cbff6017e49cef15aff9eb7860f350..3328f43bd78ebbfd4436d3c3ca55bb2146da28fc 100644
--- a/Source/web/WebDevToolsAgentImpl.h
+++ b/Source/web/WebDevToolsAgentImpl.h
@@ -110,6 +110,7 @@ public:
virtual void overrideDeviceMetrics(int width, int height, float deviceScaleFactor, bool emulateViewport, bool fitWindow) OVERRIDE;
virtual void setTouchEventEmulationEnabled(bool) OVERRIDE;
+ virtual bool hasTouchInputs() OVERRIDE;
virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE;
virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t>&) OVERRIDE;
@@ -151,6 +152,7 @@ private:
bool m_touchEventEmulationEnabled;
bool m_originalTouchEnabled;
bool m_originalDeviceSupportsMouse;
+ bool m_originalDeviceSupportsTouch;
OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss;
OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip;

Powered by Google App Engine
This is Rietveld 408576698