From: nke94 Date: Thu, 2 Mar 2017 13:40:04 +0000 (+0900) Subject: Just For Enabling build until chromium engine bring up complete X-Git-Tag: submit/tizen/20170313.110550~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F117074%2F2;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Just For Enabling build until chromium engine bring up complete Temporary ewk additional feature api call is disabled with (DENABLE_CHROMIUM_EWK_FEATURE) macro Change-Id: I2a7867d4cd4d084ca4e8f99771c1efbebb8f347a Signed-off-by: nke94 --- diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 700cc1308..bd2bbc53f 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -690,13 +690,16 @@ void WebApplication::ClosePage() { for (; it != view_stack_.end(); ++it) { (*it)->ReplyToJavascriptDialog(); view_stack_.front()->SetVisibility(false); +#ifdef DENABLE_EWK_ADDITIONAL_FEATURE if (ewk_view_page_close((*it)->evas_object())) { LOGGER(DEBUG) << "ewk_view_page_close returns true"; valid_evas_object_count++; } else { LOGGER(DEBUG) << "ewk_view_page_close returns false"; } +#endif } + } if (valid_evas_object_count == 0) Exit(); @@ -714,7 +717,9 @@ void WebApplication::Exit() { case common::ApplicationData::AppType::WATCH: if (TIZEN_FEATURE_watch_face_support) { LOGGER(ERROR) << "watch_ui_exit"; +#ifdef DENABLE_WATCH_APP watch_app_exit(); +#endif break; } else { goto __default; @@ -1160,10 +1165,12 @@ void WebApplication::SetupWebView(WebView* view) { void WebApplication::SetupWebViewCompatibilitySettings(WebView* view) { if (tizenWebKitCompatibilityEnabled()) { Ewk_Settings* settings = ewk_view_settings_get(view->evas_object()); +#ifdef DENABLE_COMPATIBILITY_MODE_SET ewk_settings_tizen_compatibility_mode_set(settings, m_tizenCompatibilitySettings.m_major, m_tizenCompatibilitySettings.m_minor, m_tizenCompatibilitySettings.m_release); +#endif ewk_settings_text_autosizing_enabled_set(settings, EINA_FALSE); } } diff --git a/runtime/browser/web_view_impl.cc b/runtime/browser/web_view_impl.cc index 7be9b8bd7..c25330e82 100644 --- a/runtime/browser/web_view_impl.cc +++ b/runtime/browser/web_view_impl.cc @@ -1032,7 +1032,9 @@ void WebViewImpl::SetDefaultEncoding(const std::string& encoding) { } void WebViewImpl::SetLongPolling(unsigned long longpolling) { +#ifdef DENABLE_CHROMIUM_EWK_FEATURE ewk_view_session_timeout_set(ewk_view_, longpolling); +#endif } void WebViewImpl::SetBGColor(int r, int g, int b, int a) {