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

Unified Diff: Source/web/WebDevToolsAgentImpl.h

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: another rebase 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
« no previous file with comments | « Source/web/InspectorClientImpl.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebDevToolsAgentImpl.h
diff --git a/Source/web/WebDevToolsAgentImpl.h b/Source/web/WebDevToolsAgentImpl.h
index 273200181693885cc5f84687f72eb7f0229ee636..d13a7c7c90e639706ad728ae6fc8d6dd68058b6e 100644
--- a/Source/web/WebDevToolsAgentImpl.h
+++ b/Source/web/WebDevToolsAgentImpl.h
@@ -108,6 +108,7 @@ public:
virtual void clearBrowserCookies() OVERRIDE;
virtual void overrideDeviceMetrics(int width, int height, float deviceScaleFactor, bool emulateViewport, bool fitWindow) OVERRIDE;
+ virtual void setTouchEventEmulationEnabled(bool) OVERRIDE;
virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE;
virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t>&) OVERRIDE;
@@ -140,10 +141,18 @@ private:
WebViewImpl* m_webViewImpl;
bool m_attached;
bool m_generatingEvent;
+
bool m_deviceMetricsEnabled;
bool m_emulateViewportEnabled;
bool m_originalViewportEnabled;
bool m_isOverlayScrollbarsEnabled;
+
+ bool m_touchEventEmulationEnabled;
+ bool m_originalTouchEnabled;
+ bool m_originalDeviceSupportsMouse;
+ OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss;
+ OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip;
+
typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue;
FrontendMessageQueue m_frontendMessageQueue;
};
« no previous file with comments | « Source/web/InspectorClientImpl.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698