Commit ba6a9c54 authored by dgozman@chromium.org's avatar dgozman@chromium.org

[DevTools] Add offset and scale to WebDeviceEmulationParams.

This will be used to set offset/scale from DevTools protocol
instead of caluculating them in embedder.

BUG=327641
NOTRY=true

Review URL: https://codereview.chromium.org/342953003

git-svn-id: svn://svn.chromium.org/blink/trunk@176506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent cae0ffba
......@@ -33,10 +33,17 @@ struct WebDeviceEmulationParams {
// Insets of emulated view inside available view space, in fit to view mode.
WebSize viewInsets;
// Offset of emulated view inside available space, not in fit to view mode.
WebFloatPoint offset;
// Scale of emulated view inside available space, not in fit to view mode.
float scale;
WebDeviceEmulationParams()
: screenPosition(Desktop)
, deviceScaleFactor(0)
, fitToView(false) { }
, fitToView(false)
, scale(1) { }
};
} // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment