Index: public/web/WebView.h |
diff --git a/public/web/WebView.h b/public/web/WebView.h |
index 29ef2c4b9b9adb059ab45f7ab1984cb34220200d..9145e03ce557939156181f47027c0309d59a8700 100644 |
--- a/public/web/WebView.h |
+++ b/public/web/WebView.h |
@@ -402,6 +402,15 @@ public: |
virtual void setInspectorSetting(const WebString& key, |
const WebString& value) = 0; |
+ // Set an override of device scale factor passed from WebView to |
+ // compositor. Pass zero to cancel override. This is used to implement |
+ // device metrics emulation. |
+ virtual void setCompositorDeviceScaleFactorOverride(float) = 0; |
+ |
+ // Set scaling transformation on the root composited layer. This is used |
+ // to implement device metrics emulation. |
+ virtual void setRootLayerScaleTransform(float) = 0; |
+ |
// The embedder may optionally engage a WebDevToolsAgent. This may only |
// be set once per WebView. |
virtual WebDevToolsAgent* devToolsAgent() = 0; |