diff options
Diffstat (limited to 'chromium/third_party/WebKit/public/platform/WebScreenInfo.h')
-rw-r--r-- | chromium/third_party/WebKit/public/platform/WebScreenInfo.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chromium/third_party/WebKit/public/platform/WebScreenInfo.h b/chromium/third_party/WebKit/public/platform/WebScreenInfo.h index 929f724f3fd..90413b9d4c6 100644 --- a/chromium/third_party/WebKit/public/platform/WebScreenInfo.h +++ b/chromium/third_party/WebKit/public/platform/WebScreenInfo.h @@ -32,6 +32,7 @@ #define WebScreenInfo_h #include "WebRect.h" +#include "WebScreenOrientationType.h" namespace blink { @@ -67,11 +68,22 @@ struct WebScreenInfo { // some of the rectangle's coordinates may be negative values". WebRect availableRect; + // This is the orientation 'type' or 'name', as in landscape-primary or + // portrait-secondary for examples. + // See WebScreenOrientationType.h for the full list. + WebScreenOrientationType orientationType; + + // This is the orientation angle of the displayed content in degrees. + // It is the opposite of the physical rotation. + uint16_t orientationAngle; + WebScreenInfo() : deviceScaleFactor(1) , depth(0) , depthPerComponent(0) - , isMonochrome(false) { } + , isMonochrome(false) + , orientationType(WebScreenOrientationUndefined) + , orientationAngle(0) { } }; } // namespace blink |