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

Unified Diff: chrome/test/chromedriver/chrome/web_view_impl.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_impl.h
diff --git a/chrome/test/chromedriver/chrome/web_view_impl.h b/chrome/test/chromedriver/chrome/web_view_impl.h
index df33053c03fa1e504c12a657fddf60bfb7f04424..a64875edb22811a1b898e4be583102d31756bcf6 100644
--- a/chrome/test/chromedriver/chrome/web_view_impl.h
+++ b/chrome/test/chromedriver/chrome/web_view_impl.h
@@ -25,6 +25,7 @@ class DevToolsClient;
class DomTracker;
class FrameTracker;
class GeolocationOverrideManager;
+class DeviceMetricsOverrideManager;
class HeapSnapshotTaker;
struct KeyEvent;
struct MouseEvent;
@@ -83,6 +84,7 @@ class WebViewImpl : public WebView {
const std::string& frame_id, bool* is_pending) OVERRIDE;
virtual JavaScriptDialogManager* GetJavaScriptDialogManager() OVERRIDE;
virtual Status OverrideGeolocation(const Geoposition& geoposition) OVERRIDE;
+ virtual Status OverrideDeviceMetrics(const DeviceMetrics& device_metrics) OVERRIDE;
stgao 2014/04/30 03:32:55 Over 80 chars.
virtual Status CaptureScreenshot(std::string* screenshot) OVERRIDE;
virtual Status SetFileInputFiles(
const std::string& frame,
@@ -106,6 +108,7 @@ class WebViewImpl : public WebView {
scoped_ptr<NavigationTracker> navigation_tracker_;
scoped_ptr<JavaScriptDialogManager> dialog_manager_;
scoped_ptr<GeolocationOverrideManager> geolocation_override_manager_;
+ scoped_ptr<DeviceMetricsOverrideManager> device_metrics_override_manager_;
scoped_ptr<HeapSnapshotTaker> heap_snapshot_taker_;
scoped_ptr<DebuggerTracker> debugger_;
scoped_ptr<DevToolsClient> client_;

Powered by Google App Engine
This is Rietveld 408576698