Chromium Code Reviews| Index: public/web/WebDevToolsAgentClient.h |
| diff --git a/public/web/WebDevToolsAgentClient.h b/public/web/WebDevToolsAgentClient.h |
| index f8538735e5248ebfe6ddcbfc7829fc088fd19784..908527ef1e8e032818520b3b1563173a6b4044fb 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,15 @@ public: |
| virtual void setTraceEventCallback(TraceEventCallback) { } |
| + // Called to emulate device dimensions and scale factor. 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 |
| + // (see WebView::setDeviceEmulationParameters). |
| + // All sizes are measured in device independent pixels. |
| + virtual void emulateDevice( |
|
aelias_OOO_until_Jul13
2013/10/01 08:08:51
Please split into two methods:
virtual void enabl
dgozman
2013/10/01 15:26:34
This method will also emulate device input in the
|
| + bool enabled, const WebSize& screenSize, const WebRect& viewRect, |
| + float deviceScaleFactor, bool fitToView) { } |
| + |
| protected: |
| ~WebDevToolsAgentClient() { } |
| }; |