#include "platform/HostWindow.h"
#include "platform/Widget.h"
-#include "platform/geometry/FloatRect.h"
#include "public/platform/Platform.h"
#include "public/platform/WebScreenInfo.h"
-namespace WebCore {
+namespace blink {
static HostWindow* toHostWindow(Widget* widget)
{
return IntRect(hostWindow->screenInfo().availableRect);
}
-void screenColorProfile(ColorProfile& toProfile)
+uint16_t screenOrientationAngle(Widget* widget)
{
- WebKit::WebVector<char> profile;
- WebKit::Platform::current()->screenColorProfile(&profile);
- toProfile.append(profile.data(), profile.size());
+ HostWindow* hostWindow = toHostWindow(widget);
+ if (!hostWindow)
+ return 0;
+ return hostWindow->screenInfo().orientationAngle;
+}
+
+WebScreenOrientationType screenOrientationType(Widget* widget)
+{
+ HostWindow* hostWindow = toHostWindow(widget);
+ if (!hostWindow)
+ return WebScreenOrientationUndefined;
+ return hostWindow->screenInfo().orientationType;
}
-} // namespace WebCore
+} // namespace blink