[WRTjs][VD] Support tvwindow rotate source from Tizen6.5 81/313481/2
authorliwei90727 <wei90727.li@samsung.com>
Wed, 19 Jun 2024 04:42:51 +0000 (12:42 +0800)
committerBot Blink <blinkbot@samsung.com>
Tue, 2 Jul 2024 01:43:07 +0000 (01:43 +0000)
tv_control_roate_with_size() API is supported from Tizen6.5
in tvcontrol side, so WRT need add judgement for it, otherwise
compile error in UWE branch.

Change-Id: I4fb5a36e9f8a9195f03647f6c70ce277ce6f544e
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
wrt/src/browser/tv/tv_window_manager.cc

index a152cbf4e04541c09e8595ee82c4b0ec761e0fec..eb47f2b824e2dd64ccebb1e4b0cff2a4aab3466b 100644 (file)
@@ -323,6 +323,7 @@ void TvWindowManager::SetBounds(Evas_Coord x,
 }
 
 bool TvWindowManager::RotateSource(int degree) {
+#if TIZEN_VERSION_AT_LEAST(6, 5, 0)
   int rots[] = {0, 90, 180, 270};
   auto* ee = GetEcoreEvas(window_);
   ecore_evas_wm_rotation_available_rotations_set(ee, rots,
@@ -343,6 +344,9 @@ bool TvWindowManager::RotateSource(int degree) {
             << ", h:" << h << "]";
 
   tv_control_rotate_with_size(control_, degree, x, y, w, h);
+#else
+  LOG(INFO) << "this feature is supported from 6.5, not support this version!!";
+#endif
   return true;
 }