fixup! Suspend/Resume notification using visibility callback 50/320550/5
authorutkarshlal <utkarsh.lal@samsung.com>
Mon, 18 Nov 2024 09:31:07 +0000 (15:01 +0530)
committerBot Blink <blinkbot@samsung.com>
Mon, 18 Nov 2024 12:14:49 +0000 (12:14 +0000)
Fixes build break for Tizen v6.5 and lower.

Change-Id: I3e043c99dd8f4b5152cc764e93bde7dab24dae1f
Signed-off-by: utkarshlal <utkarsh.lal@samsung.com>
tizen_src/chromium_impl/ui/ozone/platform/efl/efl_window.cc

index e368dfaf1f183b3b3f6f264fbb3d9c12dc50d18c..a26ad07fac08038ddcbdf36fc1c85e0682f02160 100644 (file)
@@ -14,6 +14,7 @@
 #include "base/memory/scoped_refptr.h"
 #include "base/notreached.h"
 #include "services/suspend_resume/public/cpp/suspend_resume.h"
+#include "tizen_src/chromium_impl/build/tizen_version.h"
 #include "ui/aura/window_tree_host_platform.h"
 #include "ui/base/clipboard/clipboard_helper_efl.h"
 #include "ui/base/cursor/platform_cursor.h"
@@ -422,6 +423,7 @@ void EflWindow::Initialize(const PlatformWindowInitProperties& properties) {
   }
 
   if (type_ == PlatformWindowType::kWindow) {
+#if TIZEN_VERSION_AT_LEAST(7, 0, 0)
     if (base::CommandLine::ForCurrentProcess()->HasSwitch(
             switches::kEnableChrome)) {
       auto notification_callback = [](void* user_data, Ecore_Wl2_Window* win,
@@ -434,6 +436,7 @@ void EflWindow::Initialize(const PlatformWindowInitProperties& properties) {
       ecore_wl2_window_visibility_callback_set(wl_window_,
                                                notification_callback, nullptr);
     }
+#endif  // TIZEN_VERSION_AT_LEAST(7, 0, 0)
 
 #if defined(TIZEN_VIDEO_HOLE)
     // Hand a window handle to enable video hole in OnscreenRendering mode.