2011-06-22 Ryuan Choi <ryuan.choi@samsung.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jun 2011 01:07:19 +0000 (01:07 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jun 2011 01:07:19 +0000 (01:07 +0000)
        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  <ryuan.choi@samsung.com>

        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.

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

ChangeLog
Source/WebKit/efl/CMakeListsEfl.txt
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/ewk/ewk_view.cpp
Source/cmake/OptionsEfl.cmake
Source/cmakeconfig.h.cmake

index 504a542..b40db0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2011-06-22  Ryuan Choi  <ryuan.choi@samsung.com>
+
+        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  <japhet@chromium.org>
 
         Reviewed by Adam Barth.
index 55efb60..740e76c 100644 (file)
@@ -50,6 +50,8 @@ ENDIF ()
 
 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
index 7ff2bd2..8804065 100755 (executable)
@@ -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  <ryuan.choi@samsung.com>
+
+        Reviewed by Antonio Gomes.
+
         [EFL] Add DeviceOrientationClientEfl and DeviceMotionClientEfl.
         https://bugs.webkit.org/show_bug.cgi?id=63125
 
index bdea84d..0ff1d46 100644 (file)
 #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 @@ static Ewk_View_Private_Data* _ewk_view_priv_new(Ewk_View_Smart_Data* sd)
     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");
index 6186cea..4e2bb20 100644 (file)
@@ -66,6 +66,7 @@ WEBKIT_FEATURE(ENABLE_DATABASE "Enable database" DEFAULT ON)
 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)
index 90ab0a4..2c7c070 100644 (file)
@@ -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