Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / PlatformScreen.cpp
index df049b8..6c68657 100644 (file)
 
 #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)
 {
@@ -89,11 +88,20 @@ FloatRect screenAvailableRect(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