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

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

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and mac popups compilation 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b5b14c63c553d5348d77124e35ce11c60b31352..6777a6ab4cdd29682fb782c5309556e625112c9e 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -12,6 +12,7 @@
#include "cc/output/compositor_frame_metadata.h"
#include "content/browser/devtools/protocol/devtools_protocol_handler.h"
#include "content/public/browser/readback_types.h"
+#include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
class SkBitmap;
@@ -99,6 +100,7 @@ class PageHandler {
private:
void UpdateTouchEventEmulationState();
+ void UpdateDeviceEmulationState();
void NotifyScreencastVisibility(bool visible);
void InnerSwapCompositorFrame();
@@ -120,9 +122,13 @@ class PageHandler {
scoped_refptr<StopRecordingFramesResponse> response_data);
bool enabled_;
+
bool touch_emulation_enabled_;
std::string touch_emulation_configuration_;
+ bool device_emulation_enabled_;
+ blink::WebDeviceEmulationParams device_emulation_params_;
+
bool screencast_enabled_;
std::string screencast_format_;
int screencast_quality_;
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698