I realized that ENABLE_XXX can not be used between WEBKIT_OPTION_BEGIN and WEBKIT_OPTION_END.
So, screen orientation event is not working.
This patch enable screen orientation event by removing guard of ENABLE_ORIENTATION_EVENTS
as temporal way.
In addition, fix build break when enabled.
Change-Id: I4cf19d022f9cddbaf5b7932f9d44514ed641250f
#include "TiledBackingStore.h"
#endif
+#if ENABLE(SCREEN_ORIENTATION_SUPPORT) && ENABLE(TIZEN_SCREEN_ORIENTATION_SUPPORT)
+#include "Screen.h"
+#endif
+
using namespace std;
namespace WebCore {
WEBKIT_OPTION_DEFINE(ENABLE_TIZEN_SUPPORT_WEBAPP_META_TAG "Enable apple meta tag" ON)
WEBKIT_OPTION_DEFINE(ENABLE_TIZEN_WEBKIT_EFL_DRT "Enable DumpRenderTree for Tizen WebKit" ON)
-IF (ENABLE_ORIENTATION_EVENTS)
- WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SCREEN_ORIENTATION_SUPPORT ON)
- ADD_DEFINITIONS(-DENABLE_TIZEN_SCREEN_ORIENTATION_SUPPORT=1)
-ENDIF ()
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SCREEN_ORIENTATION_SUPPORT ON)
+ADD_DEFINITIONS(-DENABLE_TIZEN_SCREEN_ORIENTATION_SUPPORT=1)
# IF WEBKIT2
WEBKIT_OPTION_DEFINE(ENABLE_NOTIFICATIONS "notification" ON)