[BlackBerry] Upstream the BlackBerry change to platform/graphics/IntPoint.h
authorleo.yang@torchmobile.com.cn <leo.yang@torchmobile.com.cn@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 03:05:58 +0000 (03:05 +0000)
committerleo.yang@torchmobile.com.cn <leo.yang@torchmobile.com.cn@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 03:05:58 +0000 (03:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=79094

Reviewed by Antonio Gomes.

Add conversion convenience between WebCore::IntPoint and BlackBerry::Platform::IntPoint.

The porting can't be built yet, no new tests.

* platform/graphics/IntPoint.h:
(Platform):
(IntPoint):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108715 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/IntPoint.h

index ce5bc0e..e8f4073 100644 (file)
@@ -1,3 +1,18 @@
+2012-02-23  Leo Yang  <leo.yang@torchmobile.com.cn>
+
+        [BlackBerry] Upstream the BlackBerry change to platform/graphics/IntPoint.h
+        https://bugs.webkit.org/show_bug.cgi?id=79094
+
+        Reviewed by Antonio Gomes.
+
+        Add conversion convenience between WebCore::IntPoint and BlackBerry::Platform::IntPoint.
+
+        The porting can't be built yet, no new tests.
+
+        * platform/graphics/IntPoint.h:
+        (Platform):
+        (IntPoint):
+
 2012-02-23  Justin Novosad  <junov@chromium.org>
 
         [Chromium] Add profiling trace for deferred canvas rendering
index 8d7fd7f..ddc41b4 100644 (file)
@@ -55,6 +55,12 @@ class QPoint;
 QT_END_NAMESPACE
 #elif PLATFORM(GTK)
 typedef struct _GdkPoint GdkPoint;
+#elif PLATFORM(BLACKBERRY)
+namespace BlackBerry {
+namespace Platform {
+class IntPoint;
+}
+}
 #elif PLATFORM(EFL)
 typedef struct _Evas_Point Evas_Point;
 #endif
@@ -136,6 +142,9 @@ public:
 #elif PLATFORM(GTK)
     IntPoint(const GdkPoint&);
     operator GdkPoint() const;
+#elif PLATFORM(BLACKBERRY)
+    IntPoint(const BlackBerry::Platform::IntPoint&);
+    operator BlackBerry::Platform::IntPoint() const;
 #elif PLATFORM(EFL)
     explicit IntPoint(const Evas_Point&);
     operator Evas_Point() const;