Adaptor for grab_highlight method 20/67120/1
authorMaciej Florek <m.florek@samsung.com>
Wed, 3 Jun 2015 15:41:08 +0000 (17:41 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 Apr 2016 08:46:43 +0000 (17:46 +0900)
Change-Id: I9ae3bb2df4d65c3ed6a320dc90676e9b0de8ff04
Signed-off-by: Maciej Florek <m.florek@samsung.com>
atk-adaptor/adaptors/component-adaptor.c
atk-adaptor/introspection.c

index 192a589..f4ee671 100644 (file)
@@ -252,6 +252,26 @@ impl_GrabFocus (DBusConnection * bus, DBusMessage * message, void *user_data)
   return reply;
 }
 
+static DBusMessage *
+impl_GrabHighlight (DBusConnection * bus, DBusMessage * message, void *user_data)
+{
+  AtkComponent *component = (AtkComponent *) user_data;
+  dbus_bool_t rv;
+  DBusMessage *reply;
+
+  g_return_val_if_fail (ATK_IS_COMPONENT (user_data),
+                        droute_not_yet_handled_error (message));
+
+  rv = atk_component_grab_highlight (component);
+  reply = dbus_message_new_method_return (message);
+  if (reply)
+    {
+      dbus_message_append_args (reply, DBUS_TYPE_BOOLEAN, &rv,
+                                DBUS_TYPE_INVALID);
+    }
+  return reply;
+}
+
 #if 0
 static DBusMessage *
 impl_registerFocusHandler (DBusConnection * bus, DBusMessage * message,
@@ -427,6 +447,7 @@ static DRouteMethod methods[] = {
   {impl_GetLayer, "GetLayer"},
   {impl_GetMDIZOrder, "GetMDIZOrder"},
   {impl_GrabFocus, "GrabFocus"},
+  {impl_GrabHighlight, "GrabHighlight"},
   //{impl_registerFocusHandler, "registerFocusHandler"},
   //{impl_deregisterFocusHandler, "deregisterFocusHandler"},
   {impl_GetAlpha, "GetAlpha"},
index 0ce7cfa..36c2bca 100644 (file)
@@ -234,6 +234,10 @@ const char *spi_org_a11y_atspi_Component =
 "    <arg direction=\"out\" type=\"b\" />"
 "  </method>"
 ""
+"  <method name=\"GrabHighlight\">"
+"    <arg direction=\"out\" type=\"b\" />"
+"  </method>"
+""
 "  <method name=\"GetAlpha\">"
 "    <arg direction=\"out\" type=\"d\" />"
 "  </method>"