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

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

Issue 1014403002: [DevTools] Emulation domain implementation (browser side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullptr 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/page_handler.h
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h
index 6777a6ab4cdd29682fb782c5309556e625112c9e..cee47594bc3ba0697595379efe35d1a98b243506 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -30,6 +30,12 @@ class PageHandler {
public:
typedef DevToolsProtocolClient::Response Response;
+ class ScreencastListener {
+ public:
+ virtual ~ScreencastListener() { }
+ virtual void ScreencastEnabledChanged() = 0;
+ };
+
PageHandler();
virtual ~PageHandler();
@@ -40,6 +46,8 @@ class PageHandler {
void OnVisibilityChanged(bool visible);
void DidAttachInterstitialPage();
void DidDetachInterstitialPage();
+ void SetScreencastListener(ScreencastListener* listener);
+ bool screencast_enabled() const { return enabled_ && screencast_enabled_; }
Response Enable();
Response Disable();
@@ -147,6 +155,7 @@ class PageHandler {
RenderViewHostImpl* host_;
scoped_ptr<Client> client_;
+ ScreencastListener* screencast_listener_;
base::WeakPtrFactory<PageHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PageHandler);
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698