Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / web / WebDevToolsAgentClient.h
index 9d4a433..e7554a4 100644 (file)
@@ -36,6 +36,7 @@
 
 namespace blink {
 class WebString;
+struct WebDeviceEmulationParams;
 struct WebDevToolsMessageData;
 struct WebRect;
 struct WebSize;
@@ -60,9 +61,6 @@ public:
     };
     virtual WebKitClientMessageLoop* createClientMessageLoop() { return 0; }
 
-    virtual void clearBrowserCache() { }
-    virtual void clearBrowserCookies() { }
-
     class AllocatedObjectVisitor {
     public:
         virtual bool visitObject(const void* ptr) = 0;
@@ -85,23 +83,20 @@ public:
 
     virtual void setTraceEventCallback(const WebString& categoryFilter, TraceEventCallback) { }
     virtual void resetTraceEventCallback() { }
+    virtual void enableTracing(const WebString& categoryFilter) { }
+    virtual void disableTracing() { }
 
     virtual void startGPUEventsRecording() { }
     virtual void stopGPUEventsRecording() { }
 
-    // Called to emulate device dimensions, scale factor and input. Window should
-    // occupy the whole device screen, while the view should be located at |viewRect|.
-    // x-coordinate of |screenRect| defines the left and right gutters' width,
-    // y-coordinate defines the top and bottom gutters' height.
-    // 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 WebRect& screenRect, const WebRect& viewRect,
-        float deviceScaleFactor, bool fitToView) { }
+    // Enables device emulation as specified in params.
+    virtual void enableDeviceEmulation(const WebDeviceEmulationParams& params) { }
 
     // Cancel emulation started via |enableDeviceEmulation| call.
     virtual void disableDeviceEmulation() { }
 
+    virtual void setTouchEventEmulationEnabled(bool enabled, bool allowPinch) { }
+
 protected:
     ~WebDevToolsAgentClient() { }
 };