From: min7.choi Date: Mon, 15 Jan 2018 06:33:17 +0000 (+0900) Subject: Remove Ecore-wayland dependency X-Git-Tag: submit/tizen/20180201.095003~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46c3f83ce40d25c0816ca703221fafd8dcfb051e;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Remove Ecore-wayland dependency In Tizen 5.0, upgrading EFL to opensource EFL 1.20 version. Upstream has deprecated ecore-wayland and changed its policy to use ecore-wl2. In crosswalk, there is one api with an ecore-wayland dependency(ecore_wl_screen_size_get()). This can be replaced by elm_win_screen_size_get() api. So removed the ecore-wayland dependency and used elm_win_screen_size_get(). Change-Id: Ic9f3b5ee66e44ebc05ba2eb2f22a111aa883d903 Signed-off-by: min7.choi --- diff --git a/packaging/crosswalk-tizen.spec b/packaging/crosswalk-tizen.spec index 6f41520d7..9e24101cb 100755 --- a/packaging/crosswalk-tizen.spec +++ b/packaging/crosswalk-tizen.spec @@ -34,7 +34,6 @@ BuildRequires: pkgconfig(cynara-client) BuildRequires: pkgconfig(deviced) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(ecore) -BuildRequires: pkgconfig(ecore-wayland) BuildRequires: pkgconfig(efl-extension) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(glib-2.0) diff --git a/runtime/browser/native_window.cc b/runtime/browser/native_window.cc index e08964fdc..1f2fde2f2 100755 --- a/runtime/browser/native_window.cc +++ b/runtime/browser/native_window.cc @@ -17,7 +17,6 @@ #include "runtime/browser/native_window.h" #include -#include #include #include #include @@ -97,7 +96,7 @@ void NativeWindow::Initialize() { window_ = CreateWindowInternal(); elm_win_conformant_set(window_, EINA_TRUE); int w, h; - ecore_wl_screen_size_get(&w, &h); + elm_win_screen_size_get(window_, NULL, NULL, &w, &h); evas_object_resize(window_, w, h); elm_win_size_base_set(window_, w, h); elm_win_autodel_set(window_, EINA_TRUE); diff --git a/runtime/browser/notification_window.cc b/runtime/browser/notification_window.cc index ee70e5378..e701601cd 100644 --- a/runtime/browser/notification_window.cc +++ b/runtime/browser/notification_window.cc @@ -15,7 +15,6 @@ */ #include -#include #include namespace runtime { diff --git a/runtime/browser/runtime_process.cc b/runtime/browser/runtime_process.cc index 9f294aef5..e397c27c1 100755 --- a/runtime/browser/runtime_process.cc +++ b/runtime/browser/runtime_process.cc @@ -20,7 +20,6 @@ #include #include -#include #include "common/application_data.h" #include "common/command_line.h" diff --git a/runtime/browser/splash_screen.cc b/runtime/browser/splash_screen.cc index 6b7b45622..f588258d1 100755 --- a/runtime/browser/splash_screen.cc +++ b/runtime/browser/splash_screen.cc @@ -111,7 +111,7 @@ SplashScreen::SplashScreen( ChooseOrientation(splash_map, window->orientation()); if (used_orientation == wgt::parse::ScreenOrientation::NONE) return; - auto dimensions = GetDimensions(); + auto dimensions = GetDimensions(window); SetBackground(splash_map[used_orientation], window->evas_object(), dimensions, app_path); @@ -145,9 +145,9 @@ void SplashScreen::HideSplashScreen(HideReason reason) { is_active_ = false; } -std::pair SplashScreen::GetDimensions() { +std::pair SplashScreen::GetDimensions(NativeWindow* window) { int w, h; - ecore_wl_screen_size_get(&w, &h); + elm_win_screen_size_get(window->evas_object(), NULL, NULL, &w, &h); evas_object_resize(background_, w, h); return std::make_pair(w, h); } diff --git a/runtime/browser/splash_screen.h b/runtime/browser/splash_screen.h index 11d49cdcf..bde989425 100755 --- a/runtime/browser/splash_screen.h +++ b/runtime/browser/splash_screen.h @@ -41,7 +41,7 @@ class SplashScreen { void HideSplashScreen(HideReason reason); private: - std::pair GetDimensions(); + std::pair GetDimensions(NativeWindow* window); void SetBackground(const wgt::parse::LaunchScreenData& splash_data, Evas_Object* parent, const SplashScreenBound& bound, const std::string& app_path); diff --git a/runtime/runtime.gyp b/runtime/runtime.gyp index 30abbaf7d..ce48619d2 100755 --- a/runtime/runtime.gyp +++ b/runtime/runtime.gyp @@ -55,7 +55,6 @@ 'capi-system-info', 'chromium-efl', 'ecore', - 'ecore-wayland', 'elementary', 'efl-extension', 'deviced',