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

Unified Diff: content/browser/devtools/protocol/emulation_handler.h

Issue 1043173003: [DevTools] Move Page and Emulation handlers to RenderFrameHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: content/browser/devtools/protocol/emulation_handler.h
diff --git a/content/browser/devtools/protocol/emulation_handler.h b/content/browser/devtools/protocol/emulation_handler.h
index 8f14b2f66b918e4df1d838c4138a12bd6ec32811..b1f6f8413b15964a337718c8476e450189f914fa 100644
--- a/content/browser/devtools/protocol/emulation_handler.h
+++ b/content/browser/devtools/protocol/emulation_handler.h
@@ -11,7 +11,8 @@
namespace content {
-class RenderViewHostImpl;
+class RenderWidgetHostImpl;
+class WebContentsImpl;
namespace devtools {
@@ -29,7 +30,7 @@ class EmulationHandler : public page::PageHandler::ScreencastListener {
// page::PageHandler::ScreencastListener implementation.
void ScreencastEnabledChanged() override;
- void SetRenderViewHost(RenderViewHostImpl* host);
+ void SetWebContents(WebContentsImpl* web_contents);
void Detached();
Response SetGeolocationOverride(double* latitude,
@@ -52,6 +53,7 @@ class EmulationHandler : public page::PageHandler::ScreencastListener {
Response ClearDeviceMetricsOverride();
private:
+ RenderWidgetHostImpl* GetRenderWidgetHost();
void UpdateTouchEventEmulationState();
void UpdateDeviceEmulationState();
@@ -62,7 +64,7 @@ class EmulationHandler : public page::PageHandler::ScreencastListener {
blink::WebDeviceEmulationParams device_emulation_params_;
page::PageHandler* page_handler_;
- RenderViewHostImpl* host_;
+ WebContentsImpl* web_contents_;
DISALLOW_COPY_AND_ASSIGN(EmulationHandler);
};

Powered by Google App Engine
This is Rietveld 408576698