Aurum: Introduce new atspi event callback system. 96/283296/4
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 21 Oct 2022 11:31:05 +0000 (20:31 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 18 Nov 2022 05:54:52 +0000 (14:54 +0900)
commitc284b4f33a381f5b5bd0e81b952c0fcc79d953df
tree9725168a983ad4c7de641f88ecdf25fe83dd04e0
parent33066d46e590c2fc0819866dcd9c918a830ecbbf
Aurum: Introduce new atspi event callback system.

- usage :

1. callback function
bool deactive_cb(void *data, A11yEvent type, std::string pkg)
{
        return false;
}

AccessibleWatcher::getInstance()->registerCallback(A11yEvent::EVENT_WINDOW_DEACTIVATE, &deactive_cb, nullptr);

2. lambda expression
AccessibleWatcher::getInstance()->registerCallback(A11yEvent::EVENT_WINDOW_ACTIVATE, [](void *data, A11yEvent type, std::string pkg) { return true; }, nullptr);

Change-Id: I1401e6d71c5579967ab7094a8b84545bb3ad3c4b
12 files changed:
libaurum/inc/A11yEventHandler.h [new file with mode: 0644]
libaurum/inc/Accessibility/AccessibleWatcher.h
libaurum/inc/Aurum.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h
libaurum/inc/Impl/Accessibility/MockAccessibleWatcher.h
libaurum/inc/UiDevice.h
libaurum/meson.build
libaurum/src/A11yEventHandler.cc [new file with mode: 0644]
libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc
libaurum/src/Impl/Accessibility/MockAccessibleWatcher.cc
libaurum/src/UiDevice.cc
libaurum/src/meson.build