| 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 85f9f7c466540104fcd230c409a7f8011188a696..641df0be36d794dbf50fee60a86a1f20e1da2690 100644
|
| --- a/third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| +++ b/third_party/WebKit/public/web/WebDeviceEmulationParams.h
|
| @@ -53,6 +53,10 @@ struct WebDeviceEmulationParams {
|
| // Screen orientation angle, used together with screenOrientationType.
|
| int screenOrientationAngle;
|
|
|
| + // Emulated visual viewport size. |width == 0| or |height == 0| disables the
|
| + // override for the respective dimension.
|
| + WebSize visualViewportSize;
|
| +
|
| WebDeviceEmulationParams()
|
| : screenPosition(Desktop)
|
| , deviceScaleFactor(0)
|
| @@ -66,7 +70,8 @@ inline bool operator==(const WebDeviceEmulationParams& a, const WebDeviceEmulati
|
| {
|
| 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;
|
| + && a.screenOrientationType == b.screenOrientationType && a.screenOrientationAngle == b.screenOrientationAngle
|
| + && a.visualViewportSize == b.visualViewportSize;
|
| }
|
|
|
| inline bool operator!=(const WebDeviceEmulationParams& a, const WebDeviceEmulationParams& b)
|
|
|