Adaptor for clear_highlight method 21/67121/1
authorMaciej Florek <m.florek@samsung.com>
Mon, 8 Jun 2015 14:56:47 +0000 (16:56 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 Apr 2016 08:47:02 +0000 (17:47 +0900)
Change-Id: Iaa973614def217de5234c3ad024e8a5e9678aad4
Signed-off-by: Maciej Florek <m.florek@samsung.com>
atk-adaptor/adaptors/component-adaptor.c
atk-adaptor/introspection.c

index f4ee671..e7f6314 100644 (file)
@@ -272,6 +272,27 @@ impl_GrabHighlight (DBusConnection * bus, DBusMessage * message, void *user_data
   return reply;
 }
 
+static DBusMessage *
+impl_ClearHighlight (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_clear_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
 #if 0
 static DBusMessage *
 impl_registerFocusHandler (DBusConnection * bus, DBusMessage * message,
@@ -448,6 +469,7 @@ static DRouteMethod methods[] = {
   {impl_GetMDIZOrder, "GetMDIZOrder"},
   {impl_GrabFocus, "GrabFocus"},
   {impl_GrabHighlight, "GrabHighlight"},
+  {impl_ClearHighlight, "ClearHighlight"},
   //{impl_registerFocusHandler, "registerFocusHandler"},
   //{impl_deregisterFocusHandler, "deregisterFocusHandler"},
   {impl_GetAlpha, "GetAlpha"},
index 36c2bca..4ec66be 100644 (file)
@@ -238,6 +238,10 @@ const char *spi_org_a11y_atspi_Component =
 "    <arg direction=\"out\" type=\"b\" />"
 "  </method>"
 ""
+"  <method name=\"ClearHighlight\">"
+"    <arg direction=\"out\" type=\"b\" />"
+"  </method>"
+""
 "  <method name=\"GetAlpha\">"
 "    <arg direction=\"out\" type=\"d\" />"
 "  </method>"