Add back-key exception during fullscreen by default video tag
[platform/framework/web/wrt.git] / src / wrt-client / wrt-client.cpp
index e31c677..2f1ff46 100644 (file)
@@ -83,7 +83,6 @@ WrtClient::WrtClient(int argc, char **argv) :
     m_initialViewMode(VIEWMODE_TYPE_MAXIMIZED),
     m_currentViewMode(VIEWMODE_TYPE_MAXIMIZED),
     m_isWebkitFullscreen(false),
-    m_isFullscreenByPlatform(false),
     m_submodeSupport(new ClientModule::SubmodeSupport())
 {
     Touch();
@@ -344,16 +343,12 @@ void WrtClient::webCrashCallback()
         NextStepEvent());
 }
 
-void WrtClient::enterFullscreenCallback(Evas_Object* /*obj*/,
-                                        bool isFullscreenByPlatform)
+void WrtClient::enterFullscreenCallback(Evas_Object* /*obj*/)
 {
     // enter fullscreen
     m_windowData->toggleFullscreen(true);
     m_currentViewMode = VIEWMODE_TYPE_FULLSCREEN;
     m_isWebkitFullscreen = true;
-    if (isFullscreenByPlatform) {
-        m_isFullscreenByPlatform = true;
-    }
 }
 
 void WrtClient::exitFullscreenCallback(Evas_Object* /*obj*/)
@@ -362,7 +357,6 @@ void WrtClient::exitFullscreenCallback(Evas_Object* /*obj*/)
     m_windowData->toggleFullscreen(false);
     m_currentViewMode = m_initialViewMode;
     m_isWebkitFullscreen = false;
-    m_isFullscreenByPlatform = false;
 }
 
 void WrtClient::launchStep()
@@ -784,15 +778,6 @@ void WrtClient::hwkeyCallback(const std::string& key)
             // UX isn't confirmed
             // m_windowData->showCtxpopup();
         }
-    } else {
-        // packaged application
-        if (key == KeyName::BACK) {
-            if (m_isFullscreenByPlatform) {
-                // FIXME!!! This method has not yet landed in the tizen 3.0
-                //          webkit-efl source tree
-                //ewk_view_fullscreen_exit(m_widget->GetCurrentWebview());
-            }
-        }
     }
 }