X11 code removal
authorPawel Sikorski <p.sikorski@samsung.com>
Thu, 14 Jan 2016 15:32:30 +0000 (16:32 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 14 Jan 2016 15:32:30 +0000 (16:32 +0100)
since X11 is no longer buildable, x11 related code can be removed

Change-Id: Iea942dc9ca10b51c5d62a6773178992b4aa47898

packaging/crosswalk-tizen.spec
runtime/browser/native_window.cc
runtime/browser/splash_screen.cc
runtime/runtime.gyp

index d80c4fc5d69045d2f8a0250f420f319069a31cf7..0c9e180f3d4995089fa70dccca694ba079af745f 100644 (file)
@@ -14,14 +14,6 @@ URL:        https://www.tizen.org
 Source0:    %{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 
-################ disable builds in X11 repos #################
-# currently, crosswalk-tizen is not needed on X11 profiles
-# see TINF-965
-%if %{with x}
-ExclusiveArch:
-%endif
-##############################################################
-
 ########## disable builds in wearable profile ################
 # currently, crosswalk-tizen doesn't support wearable profile
 %if "%{?profile}" == "wearable"
index c1b36cd86073d62419e8b214d8b34b63a20228eb..89a6c5d5a43bf34bf4a2da9a3b7721364e0b71ed 100755 (executable)
 
 #include "runtime/browser/native_window.h"
 
-#if defined(HAVE_X11)
-#include <Ecore_X.h>
-#elif defined(HAVE_WAYLAND)
 #include <Ecore_Wayland.h>
-#endif
-
 #include <cstdint>
 
 #include "common/logger.h"
@@ -51,17 +46,7 @@ void NativeWindow::Initialize() {
   window_ = CreateWindowInternal();
   elm_win_conformant_set(window_, EINA_TRUE);
   int w, h;
-#if defined(HAVE_X11)
-  uint16_t pid = getpid();
-  ecore_x_window_prop_property_set(
-    elm_win_xwindow_get(window_),
-    ECORE_X_ATOM_NET_WM_PID,
-    ECORE_X_ATOM_CARDINAL, 32, &pid, 1);
-  ecore_x_vsync_animator_tick_source_set(elm_win_xwindow_get(window_));
-  ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
-#elif defined(HAVE_WAYLAND)
   ecore_wl_screen_size_get(&w, &h);
-#endif
   evas_object_resize(window_, w, h);
   elm_win_autodel_set(window_, EINA_TRUE);
   evas_object_smart_callback_add(window_, "delete,request",
index 8bc89f816711c0890b2f8b461d0cf7f5cb24d534..81ef0f2cab0bad0f4c55233b3c763e1e2d60cfe5 100644 (file)
 #include <map>
 #include <string>
 
-#if defined(HAVE_X11)
-#include <Ecore_X.h>
-#elif defined(HAVE_WAYLAND)
 #include <Ecore_Wayland.h>
-#endif
 #include <Evas_Legacy.h>
 
 #include "common/logger.h"
@@ -149,17 +145,7 @@ void SplashScreen::HideSplashScreen(HideReason reason) {
 
 std::pair<int, int> SplashScreen::GetDimensions() {
   int w, h;
-#if defined(HAVE_X11)
-  uint16_t pid = getpid();
-  ecore_x_window_prop_property_set(elm_win_xwindow_get(window_.evas_object()),
-                                   ECORE_X_ATOM_NET_WM_PID,
-                                   ECORE_X_ATOM_CARDINAL, 32, &pid, 1);
-  ecore_x_vsync_animator_tick_source_set(
-      elm_win_xwindow_get(window_.evas_object()));
-  ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
-#elif defined(HAVE_WAYLAND)
   ecore_wl_screen_size_get(&w, &h);
-#endif
   evas_object_resize(background_, w, h);
   return std::make_pair(w, h);
 }
index 9c64060a443ec3b76c5b89741d84991daaad017d..19c964b43e6fe3c7533f9f9a2e746a4ca0b4149f 100644 (file)
@@ -37,9 +37,6 @@
         'browser/notification_manager.h',
         'browser/notification_manager.cc',
       ],
-      'defines': [
-        'HAVE_WAYLAND',
-      ],
       'variables': {
         'packages': [
           'capi-appfw-application',