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

Unified Diff: public/web/WebDevToolsAgentClient.h

Issue 24272003: [DevTools] Blink-side APIs for device metrics emulation in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Comments 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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebDevToolsAgentClient.h
diff --git a/public/web/WebDevToolsAgentClient.h b/public/web/WebDevToolsAgentClient.h
index f8538735e5248ebfe6ddcbfc7829fc088fd19784..21d17994261b426c10d50c701183cb184dce1feb 100644
--- a/public/web/WebDevToolsAgentClient.h
+++ b/public/web/WebDevToolsAgentClient.h
@@ -37,6 +37,8 @@
namespace WebKit {
class WebString;
struct WebDevToolsMessageData;
+struct WebRect;
+struct WebSize;
class WebDevToolsAgentClient {
public:
@@ -83,6 +85,16 @@ public:
virtual void setTraceEventCallback(TraceEventCallback) { }
+ // Called to emulate device dimensions, scale factor and input. Window should
+ // occupy the whole device screen, while the view should be located at |viewRect|.
+ // With |fitToView| set, contents should be scaled down to fit into embedder window.
+ // All sizes are measured in device independent pixels.
+ virtual void enableDeviceEmulation(
+ const WebSize& screenSize, const WebRect& viewRect,
+ float deviceScaleFactor, bool fitToView) { }
+ // Cancel emulation started via |enableDeviceEmulation| call.
pfeldman 2013/10/01 14:50:15 Blank line above the comment.
dgozman 2013/10/01 15:22:56 Done.
+ virtual void disableDeviceEmulation() { }
+
protected:
~WebDevToolsAgentClient() { }
};
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698