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

Unified Diff: content/renderer/devtools/devtools_agent.h

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Moved helper class to cc Created 7 years, 3 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: content/renderer/devtools/devtools_agent.h
===================================================================
--- content/renderer/devtools/devtools_agent.h (revision 221161)
+++ content/renderer/devtools/devtools_agent.h (working copy)
@@ -53,6 +53,10 @@
virtual void clearBrowserCookies();
virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor);
virtual void setTraceEventCallback(TraceEventCallback cb);
+ virtual void emulateDevice(
+ bool enabled, const WebKit::WebSize& device_size,
+ const WebKit::WebRect& view_rect, float device_scale_factor,
+ bool fit_to_view);
void OnAttach();
void OnReattach(const std::string& agent_state);

Powered by Google App Engine
This is Rietveld 408576698