#define ENABLE_TIZEN_MAIN_THREAD_SCHEDULE_DISCARD_DUPLICATE_REQUEST 1 /* Jihye Kang(jye.kang@samsung.com) : Fix lockup while doing stress test for filewriter */
+#define ENABLE_TIZEN_FULLSCREEN_API 1 /* Jongseok Yang(js45.yang@samsung.com) : Implement the smart function for fullscreen API */
#endif /* OS(TIZEN) */
/* ==== OS() - underlying operating system; only to be used for mandated low-level services like
*/
void EwkViewImpl::enterFullScreen()
{
-#if OS(TIZEN)
- ewk_view_main_frame_scrollbar_visible_set(m_view, false);
- evas_object_smart_callback_call(m_view, "fullscreen,enterfullscreen", 0);
- return;
-#endif
Ewk_View_Smart_Data* sd = smartData();
if (!sd->api->fullscreen_enter || !sd->api->fullscreen_enter(sd)) {
*/
void EwkViewImpl::exitFullScreen()
{
-#if OS(TIZEN)
- ewk_view_main_frame_scrollbar_visible_set(m_view, true);
- evas_object_smart_callback_call(m_view, "fullscreen,exitfullscreen", 0);
- return;
-#endif
Ewk_View_Smart_Data* sd = smartData();
if (!sd->api->fullscreen_exit || !sd->api->fullscreen_exit(sd)) {
}
#if OS(TIZEN)
+
+#if ENABLE(TIZEN_FULLSCREEN_API)
+Eina_Bool _ewk_view_smart_fullscreen_enter(Ewk_View_Smart_Data* smartData)
+{
+ EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl, false);
+
+ ewk_view_main_frame_scrollbar_visible_set(impl->view(), false);
+ evas_object_smart_callback_call(impl->view(), "fullscreen,enterfullscreen", 0);
+ return true;
+}
+
+Eina_Bool _ewk_view_smart_fullscreen_exit(Ewk_View_Smart_Data* smartData)
+{
+ EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl, false);
+
+ ewk_view_main_frame_scrollbar_visible_set(impl->view(), true);
+ evas_object_smart_callback_call(impl->view(), "fullscreen,exitfullscreen", 0);
+ return true;
+}
+#endif
+
#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
Eina_Bool _ewk_view_text_selection_down(Ewk_View_Smart_Data* smartData, int x, int y)
{
api->gesture_end = _ewk_view_smart_gesture_end;
api->gesture_move = _ewk_view_smart_gesture_move;
+#if ENABLE(TIZEN_FULLSCREEN_API)
+ api->fullscreen_enter = _ewk_view_smart_fullscreen_enter;
+ api->fullscreen_exit = _ewk_view_smart_fullscreen_exit;
+#endif
+
#if ENABLE(TIZEN_WEBKIT2_POPUP_INTERNAL)
api->popup_menu_show = _ewk_view_popup_menu_show;
#if ENABLE(TIZEN_MULTIPLE_SELECT)