Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebDoublePoint.h
index 8a98799..d666e13 100644 (file)
 #ifndef WebDoublePoint_h
 #define WebDoublePoint_h
 
+#include "WebCommon.h"
+
+#if INSIDE_BLINK
+#include "platform/geometry/DoublePoint.h"
+#endif
+
 namespace blink {
 
 struct WebDoublePoint {
@@ -48,6 +54,20 @@ struct WebDoublePoint {
         , y(y)
     {
     }
+
+#if INSIDE_BLINK
+    WebDoublePoint(const DoublePoint& p)
+        : x(p.x())
+        , y(p.y())
+    {
+    }
+
+    operator DoublePoint() const
+    {
+        return DoublePoint(x, y);
+    }
+#endif
+
 };
 
 inline bool operator==(const WebDoublePoint& a, const WebDoublePoint& b)