Reviewers: dgozman
CL:
https://codereview.chromium.org/2173783002/Message:
Split off from
crrev.com/2096633002.
Description:
Adds visual viewport size override to DevTools Emulation protocol.
This enables resizing of the visual viewport for (headless)
screenshots. For more information, see
crbug.com/625577and the design doc:
bit.ly/viewport-screenshots.
We will add additional overrides for scroll/scale of viewports in
crrev.com/2096633002.
BUG=625577
Base URL:
https://chromium.googlesource.com/chromium/src.git@masterAffected files (+345, -19 lines):
M content/browser/devtools/protocol/emulation_handler.h
M content/browser/devtools/protocol/emulation_handler.cc
M content/common/view_messages.h
M content/renderer/devtools/render_widget_screen_metrics_emulator.cc
M content/renderer/render_view_browsertest.cc
A third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-visual-viewport-size.html
A third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-visual-viewport-size-expected.txt
M third_party/WebKit/Source/core/inspector/browser_protocol.json
M third_party/WebKit/public/web/WebDeviceEmulationParams.h