| Index: third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| diff --git a/third_party/WebKit/public/web/WebDeviceEmulationParams.h b/third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| index c1e8f4ca842e2a4edacfe7949092d9ca2acdaf37..85f9f7c466540104fcd230c409a7f8011188a696 100644
|
| --- a/third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| +++ b/third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| @@ -9,6 +9,7 @@
|
| #include "../platform/WebPoint.h"
|
| #include "../platform/WebRect.h"
|
| #include "../platform/WebSize.h"
|
| +#include "../platform/modules/screen_orientation/WebScreenOrientationType.h"
|
|
|
| namespace blink {
|
|
|
| @@ -45,16 +46,27 @@ struct WebDeviceEmulationParams {
|
| // Scale of emulated view inside available space, not in fit to view mode.
|
| float scale;
|
|
|
| + // Optional screen orientation type, with WebScreenOrientationUndefined
|
| + // value meaning no emulation necessary.
|
| + WebScreenOrientationType screenOrientationType;
|
| +
|
| + // Screen orientation angle, used together with screenOrientationType.
|
| + int screenOrientationAngle;
|
| +
|
| WebDeviceEmulationParams()
|
| : screenPosition(Desktop)
|
| , deviceScaleFactor(0)
|
| , fitToView(false)
|
| - , scale(1) { }
|
| + , scale(1)
|
| + , screenOrientationType(WebScreenOrientationUndefined)
|
| + , screenOrientationAngle(0) { }
|
| };
|
|
|
| inline bool operator==(const WebDeviceEmulationParams& a, const WebDeviceEmulationParams& b)
|
| {
|
| - return a.screenPosition == b.screenPosition && a.screenSize == b.screenSize && a.viewPosition == b.viewPosition && a.deviceScaleFactor == b.deviceScaleFactor && a.viewSize == b.viewSize && a.fitToView == b.fitToView && a.offset == b.offset && a.scale == b.scale;
|
| + return a.screenPosition == b.screenPosition && a.screenSize == b.screenSize && a.viewPosition == b.viewPosition && a.deviceScaleFactor == b.deviceScaleFactor
|
| + && a.viewSize == b.viewSize && a.fitToView == b.fitToView && a.offset == b.offset && a.scale == b.scale
|
| + && a.screenOrientationType == b.screenOrientationType && a.screenOrientationAngle == b.screenOrientationAngle;
|
| }
|
|
|
| inline bool operator!=(const WebDeviceEmulationParams& a, const WebDeviceEmulationParams& b)
|
|
|