Remove Ecore-wayland dependency 46/167046/1
authormin7.choi <min7.choi@samsung.com>
Mon, 15 Jan 2018 06:33:17 +0000 (15:33 +0900)
committermin7.choi <min7.choi@samsung.com>
Mon, 15 Jan 2018 06:33:22 +0000 (15:33 +0900)
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 <min7.choi@samsung.com>
packaging/crosswalk-tizen.spec
runtime/browser/native_window.cc
runtime/browser/notification_window.cc
runtime/browser/runtime_process.cc
runtime/browser/splash_screen.cc
runtime/browser/splash_screen.h
runtime/runtime.gyp

index 6f41520..9e24101 100755 (executable)
@@ -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)
index e08964f..1f2fde2 100755 (executable)
@@ -17,7 +17,6 @@
 #include "runtime/browser/native_window.h"
 
 #include <efl_util.h>
-#include <Ecore_Wayland.h>
 #include <EWebKit.h>
 #include <EWebKit_internal.h>
 #include <cstdint>
@@ -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);
index ee70e53..e701601 100644 (file)
@@ -15,7 +15,6 @@
  */
 #include <runtime/browser/notification_window.h>
 
-#include <Ecore_Wayland.h>
 #include <efl_util.h>
 
 namespace runtime {
index 9f294ae..e397c27 100755 (executable)
@@ -20,7 +20,6 @@
 #include <Elementary.h>
 
 #include <bundle_internal.h>
-#include <Ecore_Wayland.h>
 
 #include "common/application_data.h"
 #include "common/command_line.h"
index 6b7b456..f588258 100755 (executable)
@@ -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<int, int> SplashScreen::GetDimensions() {
+std::pair<int, int> 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);
 }
index 11d49cd..bde9894 100755 (executable)
@@ -41,7 +41,7 @@ class SplashScreen {
   void HideSplashScreen(HideReason reason);
 
  private:
-  std::pair<int, int> GetDimensions();
+  std::pair<int, int> GetDimensions(NativeWindow* window);
   void SetBackground(const wgt::parse::LaunchScreenData& splash_data,
                      Evas_Object* parent, const SplashScreenBound& bound,
                      const std::string& app_path);
index 30abbaf..ce48619 100755 (executable)
@@ -55,7 +55,6 @@
           'capi-system-info',
           'chromium-efl',
           'ecore',
-          'ecore-wayland',
           'elementary',
           'efl-extension',
           'deviced',