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

Unified Diff: chrome/test/chromedriver/chrome/web_view.h

Issue 251933005: [ChromeDriver] Support mobile emulation on desktop Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
Index: chrome/test/chromedriver/chrome/web_view.h
diff --git a/chrome/test/chromedriver/chrome/web_view.h b/chrome/test/chromedriver/chrome/web_view.h
index e30ec9518150e844f313209ca350a03f29658760..b59c8d882d2851c7d3b3b189176273eda0b83c5a 100644
--- a/chrome/test/chromedriver/chrome/web_view.h
+++ b/chrome/test/chromedriver/chrome/web_view.h
@@ -21,6 +21,7 @@ class Value;
class DevToolsClient;
struct Geoposition;
+struct DeviceMetrics;
stgao 2014/04/30 03:32:55 Not in order.
sam.rawlins 2014/05/06 23:51:46 Done.
class JavaScriptDialogManager;
struct KeyEvent;
struct MouseEvent;
@@ -139,6 +140,9 @@ class WebView {
// Overrides normal geolocation with a given geoposition.
virtual Status OverrideGeolocation(const Geoposition& geoposition) = 0;
+ // Overrides normal device metrics with a given set of metrics.
+ virtual Status OverrideDeviceMetrics(const DeviceMetrics& device_metrics) = 0;
stgao 2014/05/03 00:15:20 Same as my comment in device_metrics_override_mana
sam.rawlins 2014/05/06 23:51:46 Done.
+
// Captures the visible portions of the web view as a base64-encoded PNG.
virtual Status CaptureScreenshot(std::string* screenshot) = 0;

Powered by Google App Engine
This is Rietveld 408576698