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

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

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync. Created 4 years, 4 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.cc
diff --git a/content/browser/devtools/protocol/emulation_handler.cc b/content/browser/devtools/protocol/emulation_handler.cc
index 269fc622f5f88f236f8de2bfae5ecd3e37d0f86c..5516fc78a4657abaa0c5b0c36cea0555e06ca07d 100644
--- a/content/browser/devtools/protocol/emulation_handler.cc
+++ b/content/browser/devtools/protocol/emulation_handler.cc
@@ -221,9 +221,6 @@ Response EmulationHandler::SetDeviceMetricsOverride(
params.viewSize = blink::WebSize(width, height);
params.fitToView = fit_window;
params.scale = optional_scale ? *optional_scale : 1;
- params.offset = blink::WebFloatPoint(
- optional_offset_x ? *optional_offset_x : 0.f,
- optional_offset_y ? *optional_offset_y : 0.f);
params.screenOrientationType = orientationType;
params.screenOrientationAngle = orientationAngle;

Powered by Google App Engine
This is Rietveld 408576698