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

Unified Diff: Source/web/WebDevToolsAgentImpl.h

Issue 45363004: DevTools: explicitly control support for viewport meta tag so that desktop emulation was possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments addressed. Created 7 years, 1 month 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 1ea66134017d86d02d6600b05acec6e69b15e116..b2800c8b6cd140579ad2cf8571a1b09dc7b8ea1d 100644
--- a/Source/web/WebDevToolsAgentImpl.h
+++ b/Source/web/WebDevToolsAgentImpl.h
@@ -103,7 +103,7 @@ public:
virtual void clearBrowserCache();
virtual void clearBrowserCookies();
- virtual void overrideDeviceMetrics(int width, int height, float deviceScaleFactor, bool fitWindow);
+ virtual void overrideDeviceMetrics(int width, int height, float deviceScaleFactor, bool emulateViewport, bool fitWindow);
virtual void getAllocatedObjects(HashSet<const void*>&);
virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t>&);
@@ -124,6 +124,9 @@ private:
virtual void willProcessTask();
virtual void didProcessTask();
+ void enableViewportEmulation();
+ void disableViewportEmulation();
+
WebCore::InspectorController* inspectorController();
WebCore::Frame* mainFrame();
@@ -133,8 +136,9 @@ private:
bool m_attached;
bool m_generatingEvent;
bool m_deviceMetricsEnabled;
+ bool m_emulateViewportEnabled;
+ bool m_originalViewportEnabled;
bool m_isOverlayScrollbarsEnabled;
- bool m_isCSSViewportEnabled;
};
} // namespace WebKit
« 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