Commit 618913ec 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.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176509 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a183c611
......@@ -5,6 +5,7 @@
#ifndef WebDeviceEmulationParams_h
#define WebDeviceEmulationParams_h
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebSize.h"
......@@ -33,10 +34,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