aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2016-01-14 16:59:12 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2016-01-14 16:59:12 +0100
commite102604b48d4ab6da3272377ebc9f4fd97a78aff (patch)
tree9ef684f3db68fdfd5b5bdaeeea338633af763306
parentmodules/atspi: add e_atspi_object implementation. (diff)
downloadenlightenment-devs/stanluk/a11y.tar.gz
modules/atspi: zone support (under devel)devs/stanluk/a11y
-rw-r--r--src/modules/Makefile_atspi_accessibility.mk3
-rw-r--r--src/modules/atspi_accessibility/e_a11y_zone.c50
-rw-r--r--src/modules/atspi_accessibility/e_a11y_zone.h4
-rw-r--r--src/modules/atspi_accessibility/e_mod_main.c8
4 files changed, 64 insertions, 1 deletions
diff --git a/src/modules/Makefile_atspi_accessibility.mk b/src/modules/Makefile_atspi_accessibility.mk
index c88598247..af6389287 100644
--- a/src/modules/Makefile_atspi_accessibility.mk
+++ b/src/modules/Makefile_atspi_accessibility.mk
@@ -8,7 +8,8 @@ src_modules_atspi_accessibility_module_la_LIBADD = $(MOD_LIBS)
src_modules_atspi_accessibility_module_la_CPPFLAGS = $(MOD_CPPFLAGS)
src_modules_atspi_accessibility_module_la_LDFLAGS = $(MOD_LDFLAGS)
src_modules_atspi_accessibility_module_la_SOURCES = src/modules/atspi_accessibility/e_mod_main.c \
- src/modules/atspi_accessibility/e_atspi_object.c
+ src/modules/atspi_accessibility/e_atspi_object.c \
+ src/modules/atspi_accessibility/e_a11y_zone.c
PHONIES += atspi_accessibility install-atspi_accessibility
atspi_accessibility: $(atspi_accessibilitypkg_LTLIBRARIES) $(atspi_accessibility_DATA)
diff --git a/src/modules/atspi_accessibility/e_a11y_zone.c b/src/modules/atspi_accessibility/e_a11y_zone.c
new file mode 100644
index 000000000..7f93dbf4e
--- /dev/null
+++ b/src/modules/atspi_accessibility/e_a11y_zone.c
@@ -0,0 +1,50 @@
+#include "e.h"
+
+
+static int _zone_a11y_enable(E_Zone *zone)
+{
+ return 0;
+}
+
+static int _zone_a11y_disable(E_Zone *zone)
+{
+ return 0;
+}
+
+/* Initializate atspi-accessibility features of E_Zone objects */
+int e_a11y_zones_init(void)
+{
+ Eina_List *l;
+ E_Zone *zone;
+
+ if (!e_comp)
+ return -1;
+
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
+ {
+ _zone_a11y_enable(zone);
+ }
+
+ // register on zone add/remove events
+
+ return 0;
+}
+
+int e_a11y_zones_shutdown(void)
+{
+ Eina_List *l;
+ E_Zone *zone;
+
+ if (!e_comp)
+ return -1;
+
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
+ {
+ _zone_a11y_disable(zone);
+ }
+
+ // unregister zone add/remove events
+
+ return 0;
+}
+
diff --git a/src/modules/atspi_accessibility/e_a11y_zone.h b/src/modules/atspi_accessibility/e_a11y_zone.h
new file mode 100644
index 000000000..3695bf555
--- /dev/null
+++ b/src/modules/atspi_accessibility/e_a11y_zone.h
@@ -0,0 +1,4 @@
+
+int e_a11y_zones_init(void)
+
+int e_a11y_zones_shutdown(void)
diff --git a/src/modules/atspi_accessibility/e_mod_main.c b/src/modules/atspi_accessibility/e_mod_main.c
index 27f69262e..34c1f8fe0 100644
--- a/src/modules/atspi_accessibility/e_mod_main.c
+++ b/src/modules/atspi_accessibility/e_mod_main.c
@@ -1,8 +1,16 @@
#include "e.h"
+#include <Elementary.h>
+
E_API void *
e_modapi_init(E_Module *m)
{
+ // Ensure that elm is initialized.
+ elm_init(0, NULL);
+
+ // Ensure that atspi mode is on, despite current elm configuration.
+ elm_config_atspi_mode_set(EINA_TRUE);
+
return NULL;
}