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

Unified Diff: public/web/WebView.h

Issue 24272003: [DevTools] Blink-side APIs for device metrics emulation in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Rebase 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 | « public/web/WebSettings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « public/web/WebSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698