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

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: Fix non-debug-devtools compilation Created 5 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: 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..5303663c107172717f95695116617f660109a87b 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 RenderFrameHostImpl;
+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 SetRenderFrameHost(RenderFrameHostImpl* host);
void Detached();
Response SetGeolocationOverride(double* latitude,
@@ -52,6 +53,7 @@ class EmulationHandler : public page::PageHandler::ScreencastListener {
Response ClearDeviceMetricsOverride();
private:
+ WebContentsImpl* GetWebContents();
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_;
+ RenderFrameHostImpl* host_;
DISALLOW_COPY_AND_ASSIGN(EmulationHandler);
};
« no previous file with comments | « content/browser/devtools/protocol/color_picker.cc ('k') | content/browser/devtools/protocol/emulation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698