Title: [89509] trunk
Revision
89509
Author
[email protected]
Date
2011-06-22 18:07:19 -0700 (Wed, 22 Jun 2011)

Log Message

2011-06-22  Ryuan Choi  <[email protected]>

        Reviewed by Antonio Gomes.

        [EFL] Add an option to enable Device Orientation Event.
        https://bugs.webkit.org/show_bug.cgi?id=63120

        ADD ENABLE_DEVICE_ORIENTATION.

        * Source/cmake/OptionsEfl.cmake:
        * Source/cmakeconfig.h.cmake:
2011-06-22  Ryuan Choi  <[email protected]>

        Reviewed by Antonio Gomes.

        [EFL] Add an option to enable Device Orientation Event.
        https://bugs.webkit.org/show_bug.cgi?id=63120

        * CMakeListsEfl.txt: Add files to build with ENABLE_DEVICE_ORIENTATION.
        * ewk/ewk_view.cpp:
        (_ewk_view_priv_new): Create DeviceOrientationClientEfl and DeviceMotionClientEfl.

Modified Paths

Diff

Modified: trunk/ChangeLog (89508 => 89509)


--- trunk/ChangeLog	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/ChangeLog	2011-06-23 01:07:19 UTC (rev 89509)
@@ -1,3 +1,15 @@
+2011-06-22  Ryuan Choi  <[email protected]>
+
+        Reviewed by Antonio Gomes.
+
+        [EFL] Add an option to enable Device Orientation Event.
+        https://bugs.webkit.org/show_bug.cgi?id=63120
+
+        ADD ENABLE_DEVICE_ORIENTATION.
+
+        * Source/cmake/OptionsEfl.cmake:
+        * Source/cmakeconfig.h.cmake:
+
 2011-06-22  Nate Chapin  <[email protected]>
 
         Reviewed by Adam Barth.

Modified: trunk/Source/WebKit/efl/CMakeListsEfl.txt (89508 => 89509)


--- trunk/Source/WebKit/efl/CMakeListsEfl.txt	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/Source/WebKit/efl/CMakeListsEfl.txt	2011-06-23 01:07:19 UTC (rev 89509)
@@ -50,6 +50,8 @@
 
 LIST(APPEND WebKit_SOURCES
     efl/WebCoreSupport/ChromeClientEfl.cpp
+    efl/WebCoreSupport/DeviceOrientationClientEfl.cpp
+    efl/WebCoreSupport/DeviceMotionClientEfl.cpp
     efl/WebCoreSupport/DragClientEfl.cpp
     efl/WebCoreSupport/EditorClientEfl.cpp
     efl/WebCoreSupport/FrameLoaderClientEfl.cpp

Modified: trunk/Source/WebKit/efl/ChangeLog (89508 => 89509)


--- trunk/Source/WebKit/efl/ChangeLog	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-06-23 01:07:19 UTC (rev 89509)
@@ -2,6 +2,17 @@
 
         Reviewed by Antonio Gomes.
 
+        [EFL] Add an option to enable Device Orientation Event.
+        https://bugs.webkit.org/show_bug.cgi?id=63120
+
+        * CMakeListsEfl.txt: Add files to build with ENABLE_DEVICE_ORIENTATION.
+        * ewk/ewk_view.cpp:
+        (_ewk_view_priv_new): Create DeviceOrientationClientEfl and DeviceMotionClientEfl.
+
+2011-06-22  Ryuan Choi  <[email protected]>
+
+        Reviewed by Antonio Gomes.
+
         [EFL] Add DeviceOrientationClientEfl and DeviceMotionClientEfl.
         https://bugs.webkit.org/show_bug.cgi?id=63125
 

Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (89508 => 89509)


--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-06-23 01:07:19 UTC (rev 89509)
@@ -52,6 +52,11 @@
 #include <inttypes.h>
 #include <sys/time.h>
 
+#if ENABLE(DEVICE_ORIENTATION)
+#include "DeviceMotionClientEfl.h"
+#include "DeviceOrientationClientEfl.h"
+#endif
+
 #define ZOOM_MIN (0.05)
 #define ZOOM_MAX (4.0)
 
@@ -543,6 +548,10 @@
     pageClients.editorClient = static_cast<WebCore::EditorClient*>(new WebCore::EditorClientEfl(sd->self));
     pageClients.dragClient = static_cast<WebCore::DragClient*>(new WebCore::DragClientEfl);
     pageClients.inspectorClient = static_cast<WebCore::InspectorClient*>(new WebCore::InspectorClientEfl);
+#if ENABLE(DEVICE_ORIENTATION)
+    pageClients.deviceMotionClient = static_cast<WebCore::DeviceMotionClient*>(new WebCore::DeviceMotionClientEfl);
+    pageClients.deviceOrientationClient = static_cast<WebCore::DeviceOrientationClient*>(new WebCore::DeviceOrientationClientEfl);
+#endif
     priv->page = new WebCore::Page(pageClients);
     if (!priv->page) {
         CRITICAL("Could not create WebKit Page");

Modified: trunk/Source/cmake/OptionsEfl.cmake (89508 => 89509)


--- trunk/Source/cmake/OptionsEfl.cmake	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/Source/cmake/OptionsEfl.cmake	2011-06-23 01:07:19 UTC (rev 89509)
@@ -66,6 +66,7 @@
 WEBKIT_FEATURE(ENABLE_DATAGRID "Enable datagrid" DEFAULT OFF)
 WEBKIT_FEATURE(ENABLE_DATALIST "Enable datalist" DEFAULT ON HTML)
 WEBKIT_FEATURE(ENABLE_DATA_TRANSFER_ITEMS "Enable data transfer items" DEFAULT OFF)
+WEBKIT_FEATURE(ENABLE_DEVICE_ORIENTATION "Enable device orientation" DEFAULT OFF)
 WEBKIT_FEATURE(ENABLE_DOM_STORAGE "Enable DOM storage" DEFAULT ON)
 WEBKIT_FEATURE(ENABLE_EVENTSOURCE "Enable event source" DEFAULT ON)
 WEBKIT_FEATURE(ENABLE_FAST_MALLOC "Enable TCmalloc instead of system's allocator" DEFAULT ON)

Modified: trunk/Source/cmakeconfig.h.cmake (89508 => 89509)


--- trunk/Source/cmakeconfig.h.cmake	2011-06-23 01:05:17 UTC (rev 89508)
+++ trunk/Source/cmakeconfig.h.cmake	2011-06-23 01:07:19 UTC (rev 89509)
@@ -12,6 +12,7 @@
 #cmakedefine01 ENABLE_DATAGRID
 #cmakedefine01 ENABLE_DATALIST
 #cmakedefine01 ENABLE_DATA_TRANSFER_ITEMS
+#cmakedefine01 ENABLE_DEVICE_ORIENTATION
 #cmakedefine01 ENABLE_DOM_STORAGE
 #cmakedefine01 ENABLE_EVENTSOURCE
 #cmakedefine01 ENABLE_FAST_MOBILE_SCROLLING
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to