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

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

Issue 2478703002: [DevTools] Remove handlers = browser from protocol definition. (Closed)
Patch Set: fixes Created 4 years, 1 month 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 1029002c4c580ed9a9f517e0e3b01578426d3804..8a98ce65c80e2be5374eb8cf55b843544b5b884e 100644
--- a/content/browser/devtools/protocol/emulation_handler.h
+++ b/content/browser/devtools/protocol/emulation_handler.h
@@ -28,6 +28,7 @@ class EmulationHandler {
~EmulationHandler();
void SetRenderFrameHost(RenderFrameHostImpl* host);
+ void SetClient(std::unique_ptr<Client> client) { }
void Detached();
Response SetGeolocationOverride(double* latitude,
@@ -57,6 +58,15 @@ class EmulationHandler {
Response SetVisibleSize(int width, int height);
+ Response ForceViewport(double x, double y, double scale);
+ Response ResetViewport();
+ Response ResetPageScaleFactor();
+ Response SetPageScaleFactor(double page_scale_factor);
+ Response SetScriptExecutionDisabled(bool disabled);
+ Response SetEmulatedMedia(const std::string& media);
+ Response SetCPUThrottlingRate(double rate);
+ Response SetVirtualTimePolicy(const std::string& policy, const int* budget);
+
private:
WebContentsImpl* GetWebContents();
void UpdateTouchEventEmulationState();

Powered by Google App Engine
This is Rietveld 408576698