Remove deprecated callback 83/45883/2
authorSeungkeun Lee <sngn.lee@samsung.com>
Wed, 12 Aug 2015 07:08:58 +0000 (16:08 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Thu, 13 Aug 2015 06:27:27 +0000 (23:27 -0700)
 - ewk_view_orientation_lock_callback_set

Change-Id: I7c56245faeaff8198f825f32f7eb50265823841d

src/runtime/web_view_impl.cc
src/runtime/web_view_impl.h

index 9653340..4af354a 100755 (executable)
@@ -167,7 +167,6 @@ void WebViewImpl::Initialize() {
   InitPolicyDecideCallback();
   InitQuotaExceededCallback();
   InitIPCMessageCallback();
-  InitOrientaionLockCallback();
   InitConsoleMessageCallback();
   InitCustomContextMenuCallback();
   InitRotationCallback();
@@ -213,10 +212,6 @@ void WebViewImpl::Deinitialize() {
       ewk_view_,
       NULL,
       NULL);
-  ewk_view_orientation_lock_callback_set(
-      ewk_view_,
-      NULL,
-      NULL);
   ewk_view_notification_permission_callback_set(
       ewk_view_,
       NULL,
@@ -472,25 +467,6 @@ void WebViewImpl::InitIPCMessageCallback() {
   smart_callbacks_["wrt,message"] = wrt_message_callback;
 }
 
-void WebViewImpl::InitOrientaionLockCallback() {
-  // Orientation lock callback
-  auto orientation_lock_callback = [](Evas_Object*,
-                                      Eina_Bool need_lock,
-                                      int orientation,
-                                      void* user_data) -> Eina_Bool {
-    WebViewImpl* self = static_cast<WebViewImpl*>(user_data);
-    if (self->listener_) {
-      self->listener_->OnOrientationLock(self->view_,
-                                         need_lock,
-                                         ToNativeRotation(orientation));
-    }
-    return EINA_TRUE;
-  };
-  ewk_view_orientation_lock_callback_set(ewk_view_,
-                                         orientation_lock_callback,
-                                         this);
-}
-
 void WebViewImpl::InitConsoleMessageCallback() {
   // console log
   auto console_message_callback = [](void* user_data,
index d56cfd2..dad7126 100755 (executable)
@@ -62,7 +62,6 @@ class WebViewImpl {
   void InitPolicyDecideCallback();
   void InitQuotaExceededCallback();
   void InitIPCMessageCallback();
-  void InitOrientaionLockCallback();
   void InitConsoleMessageCallback();
   void InitCustomContextMenuCallback();
   void InitRotationCallback();