[M130 Migration][HBBTV] Missing API used by TA 72/325072/7
authorHyomin Kim <hyoputer.kim@samsung.com>
Tue, 2 Apr 2024 02:06:42 +0000 (19:06 -0700)
committerBot Blink <blinkbot@samsung.com>
Tue, 3 Jun 2025 07:19:56 +0000 (07:19 +0000)
- Implement |EflScreen::GetCursorScreenPoint|

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-2366
Signed-off-by: Kajetan Brzuszczak <k.brzuszczak@partner.samsung.com>
Change-Id: Icc9f9b5233d8de05677ebf0cca3a30cbeec700a1

tizen_src/chromium_impl/ui/ozone/platform/efl/efl_screen.cc

index 2b43abab194840e199a5a64b147c3a0ba9da0747..c014da1efba47291ea13ab6457686d31e1c55d3c 100644 (file)
@@ -116,7 +116,16 @@ display::Display EflScreen::GetDisplayForAcceleratedWidget(
 }
 
 gfx::Point EflScreen::GetCursorScreenPoint() const {
-  NOTIMPLEMENTED();
+#if defined(USE_WAYLAND)
+  int x, y;
+  Ecore_Wl2_Input* input = ecore_wl2_display_input_find_by_name(
+      ecore_wl2_connected_display_get(NULL), "default");
+  if (input) {
+    ecore_wl2_input_pointer_xy_get(input, &x, &y);
+    return gfx::Point(x, y);
+  }
+#endif
+
   return {};
 }