Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 288193004: [Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities (Closed) Base URL:
Patch Set: Created 6 years, 7 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..71a7ae07f49bc6b11b63edd30fde981e307ac088 100644
--- a/chrome/test/chromedriver/chrome/web_view_impl.h
+++ b/chrome/test/chromedriver/chrome/web_view_impl.h
@@ -21,10 +21,12 @@ class Value;
struct BrowserInfo;
class DebuggerTracker;
+struct DeviceMetrics;
class DevToolsClient;
class DomTracker;
class FrameTracker;
class GeolocationOverrideManager;
+class MobileEmulationOverrideManager;
class HeapSnapshotTaker;
struct KeyEvent;
struct MouseEvent;
@@ -36,6 +38,10 @@ class WebViewImpl : public WebView {
WebViewImpl(const std::string& id,
const BrowserInfo* browser_info,
scoped_ptr<DevToolsClient> client);
+ WebViewImpl(const std::string& id,
+ const BrowserInfo* browser_info,
+ scoped_ptr<DevToolsClient> client,
+ const DeviceMetrics* device_metrics);
virtual ~WebViewImpl();
// Overridden from WebView:
@@ -105,6 +111,7 @@ class WebViewImpl : public WebView {
scoped_ptr<FrameTracker> frame_tracker_;
scoped_ptr<NavigationTracker> navigation_tracker_;
scoped_ptr<JavaScriptDialogManager> dialog_manager_;
+ scoped_ptr<MobileEmulationOverrideManager> mobile_emulation_override_manager_;
scoped_ptr<GeolocationOverrideManager> geolocation_override_manager_;
scoped_ptr<HeapSnapshotTaker> heap_snapshot_taker_;
scoped_ptr<DebuggerTracker> debugger_;

Powered by Google App Engine
This is Rietveld 408576698