[Tizen][AT-SPI] Implement missing DeputyAccessible feature 88/315488/2
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 1 Aug 2024 14:29:40 +0000 (16:29 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Thu, 1 Aug 2024 15:23:37 +0000 (17:23 +0200)
This feature helps determine the result of a recursive GetNavigableAtPoint
operation. The recursion is done by the at-spi2-core library.

Change-Id: I86ca04cc1e20496703635cb5fd8293f84c677be2

dali/internal/accessibility/bridge/bridge-accessible.cpp

index 23cc6dcc722047601a75e3100dd30ca5be700469..139e97d85ba4303ee1d9fd4d476bbd07086a366b 100644 (file)
@@ -701,15 +701,18 @@ DBus::ValueOrError<Accessible*, uint8_t, Accessible*> BridgeAccessible::GetNavig
   if(component)
   {
     recurse = component->IsProxy();
+    if (recurse)
+    {
+      Accessible* parent = component->GetParent();
+      deputy = IsObjectAcceptable(parent) ? parent : nullptr;
+    }
   }
-  //TODO: add deputy
   return {component, recurse, deputy};
 }
 
 Accessible* BridgeAccessible::GetCurrentlyHighlighted()
 {
-  //TODO: add currently highlighted object
-  return nullptr;
+  return Accessible::Get(mData->mCurrentlyHighlightedActor);
 }
 
 std::vector<Component*> BridgeAccessible::GetValidChildren(const std::vector<Accessible*>& children, Accessible* start)