Revert "elm_access: Disable public accessibility APIs in elm 1.8 release."

This reverts commit 0d61121ce4f87c9e9b0e8d8d7975f815328fe6f5.
This commit is contained in:
Daniel Juyung Seo 2013-12-16 16:02:17 +09:00
parent 8b8eed6b3d
commit 2caa98e296
2 changed files with 41 additions and 42 deletions

View File

@ -1213,44 +1213,44 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
evas_obj_type_set(MY_CLASS_NAME_LEGACY)); evas_obj_type_set(MY_CLASS_NAME_LEGACY));
} }
Evas_Object * EAPI Evas_Object *
elm_access_object_register(Evas_Object *obj, Evas_Object *parent) elm_access_object_register(Evas_Object *obj, Evas_Object *parent)
{ {
return _access_object_register(obj, parent); return _access_object_register(obj, parent);
} }
void EAPI void
elm_access_object_unregister(Evas_Object *obj) elm_access_object_unregister(Evas_Object *obj)
{ {
_access_object_unregister(obj); _access_object_unregister(obj);
} }
Evas_Object * EAPI Evas_Object *
elm_access_object_get(const Evas_Object *obj) elm_access_object_get(const Evas_Object *obj)
{ {
return evas_object_data_get(obj, "_part_access_obj"); return evas_object_data_get(obj, "_part_access_obj");
} }
void EAPI void
elm_access_info_set(Evas_Object *obj, int type, const char *text) elm_access_info_set(Evas_Object *obj, int type, const char *text)
{ {
_elm_access_text_set(_elm_access_info_get(obj), type, text); _elm_access_text_set(_elm_access_info_get(obj), type, text);
} }
char * EAPI char *
elm_access_info_get(const Evas_Object *obj, int type) elm_access_info_get(const Evas_Object *obj, int type)
{ {
return _elm_access_text_get(_elm_access_info_get(obj), type, obj); return _elm_access_text_get(_elm_access_info_get(obj), type, obj);
} }
void EAPI void
elm_access_info_cb_set(Evas_Object *obj, int type, elm_access_info_cb_set(Evas_Object *obj, int type,
Elm_Access_Info_Cb func, const void *data) Elm_Access_Info_Cb func, const void *data)
{ {
_elm_access_callback_set(_elm_access_info_get(obj), type, func, data); _elm_access_callback_set(_elm_access_info_get(obj), type, func, data);
} }
void EAPI void
elm_access_activate_cb_set(Evas_Object *obj, elm_access_activate_cb_set(Evas_Object *obj,
Elm_Access_Activate_Cb func, void *data) Elm_Access_Activate_Cb func, void *data)
{ {
@ -1263,7 +1263,7 @@ elm_access_activate_cb_set(Evas_Object *obj,
ac->activate_data = data; ac->activate_data = data;
} }
void EAPI void
elm_access_say(const char *text) elm_access_say(const char *text)
{ {
if (!text) return; if (!text) return;
@ -1271,13 +1271,13 @@ elm_access_say(const char *text)
_elm_access_say(text); _elm_access_say(text);
} }
void EAPI void
elm_access_highlight_set(Evas_Object* obj) elm_access_highlight_set(Evas_Object* obj)
{ {
_elm_access_highlight_set(obj); _elm_access_highlight_set(obj);
} }
Eina_Bool EAPI Eina_Bool
elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type, Elm_Access_Action_Info *action_info) elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type, Elm_Access_Action_Info *action_info)
{ {
Evas *evas; Evas *evas;
@ -1348,7 +1348,7 @@ elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type, Elm_Acces
return EINA_TRUE; return EINA_TRUE;
} }
void EAPI void
elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type type, const Elm_Access_Action_Cb cb, const void *data) elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type type, const Elm_Access_Action_Cb cb, const void *data)
{ {
Action_Info *a; Action_Info *a;
@ -1364,7 +1364,6 @@ elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type type, co
a->fn[type].cb = cb; a->fn[type].cb = cb;
a->fn[type].user_data = (void *)data; a->fn[type].user_data = (void *)data;
} }
EAPI void EAPI void
elm_access_external_info_set(Evas_Object *obj, const char *text) elm_access_external_info_set(Evas_Object *obj, const char *text)
{ {
@ -1381,7 +1380,7 @@ elm_access_external_info_get(const Evas_Object *obj)
return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj); return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj);
} }
void EAPI void
elm_access_highlight_next_set(Evas_Object *obj, Elm_Highlight_Direction dir, Evas_Object *next) elm_access_highlight_next_set(Evas_Object *obj, Elm_Highlight_Direction dir, Evas_Object *next)
{ {
EINA_SAFETY_ON_FALSE_RETURN(obj); EINA_SAFETY_ON_FALSE_RETURN(obj);

View File

@ -27,7 +27,7 @@ enum _Elm_Access_Info_Type
}; };
/** /**
* @since 1.9 * @since 1.8
* @typedef Elm_Access_Info_Type * @typedef Elm_Access_Info_Type
*/ */
typedef enum _Elm_Access_Info_Type Elm_Access_Info_Type; typedef enum _Elm_Access_Info_Type Elm_Access_Info_Type;
@ -57,7 +57,7 @@ enum _Elm_Access_Action_Type
}; };
/** /**
* @since 1.9 * @since 1.8
* @typedef Elm_Access_Action_Type * @typedef Elm_Access_Action_Type
*/ */
typedef enum _Elm_Access_Action_Type Elm_Access_Action_Type; typedef enum _Elm_Access_Action_Type Elm_Access_Action_Type;
@ -76,7 +76,7 @@ struct _Elm_Access_Action_Info
}; };
/** /**
* @since 1.9 * @since 1.8
* @typedef Elm_Access_Action_Info * @typedef Elm_Access_Action_Info
*/ */
typedef struct _Elm_Access_Action_Info Elm_Access_Action_Info; typedef struct _Elm_Access_Action_Info Elm_Access_Action_Info;
@ -89,13 +89,13 @@ enum _Elm_Highlight_Direction
}; };
/** /**
* @since 1.9 * @since 1.8
* @typedef Elm_Highlight_Direction * @typedef Elm_Highlight_Direction
*/ */
typedef enum _Elm_Highlight_Direction Elm_Highlight_Direction; typedef enum _Elm_Highlight_Direction Elm_Highlight_Direction;
/** /**
* @since 1.9 * @since 1.8
* @typedef Elm_Access_Action_Cb * @typedef Elm_Access_Action_Cb
* *
* User callback to make access object do specific action * User callback to make access object do specific action
@ -113,7 +113,7 @@ typedef void (*Elm_Access_Activate_Cb)(void *data, Evas_Object *part_obj, Elm_Ob
/** /**
* @brief Register evas object as an accessible object. * @brief Register evas object as an accessible object.
* @since 1.9 * @since 1.8
* *
* @param obj The evas object to register as an accessible object. * @param obj The evas object to register as an accessible object.
* @param parent The elementary object which is used for creating * @param parent The elementary object which is used for creating
@ -121,32 +121,32 @@ typedef void (*Elm_Access_Activate_Cb)(void *data, Evas_Object *part_obj, Elm_Ob
* *
* @ingroup Access * @ingroup Access
*/ */
Evas_Object *elm_access_object_register(Evas_Object *obj, Evas_Object *parent); EAPI Evas_Object *elm_access_object_register(Evas_Object *obj, Evas_Object *parent);
/** /**
* @brief Unregister accessible object. * @brief Unregister accessible object.
* @since 1.9 * @since 1.8
* *
* @param obj The Evas object to unregister accessible object. * @param obj The Evas object to unregister accessible object.
* *
* @ingroup Access * @ingroup Access
*/ */
void elm_access_object_unregister(Evas_Object *obj); EAPI void elm_access_object_unregister(Evas_Object *obj);
/** /**
* @brief Get an accessible object of the evas object. * @brief Get an accessible object of the evas object.
* @since 1.9 * @since 1.8
* *
* @param obj The evas object. * @param obj The evas object.
* @return Accessible object of the evas object or NULL for any error * @return Accessible object of the evas object or NULL for any error
* *
* @ingroup Access * @ingroup Access
*/ */
Evas_Object *elm_access_object_get(const Evas_Object *obj); EAPI Evas_Object *elm_access_object_get(const Evas_Object *obj);
/** /**
* @brief Set text to give information for specific type. * @brief Set text to give information for specific type.
* @since 1.9 * @since 1.8
* *
* @param obj Accessible object. * @param obj Accessible object.
* @param type The type of content that will be read * @param type The type of content that will be read
@ -155,11 +155,11 @@ Evas_Object *elm_access_object_get(const Evas_Object *obj);
* @see elm_access_info_cb_set * @see elm_access_info_cb_set
* @ingroup Access * @ingroup Access
*/ */
void elm_access_info_set(Evas_Object *obj, int type, const char *text); EAPI void elm_access_info_set(Evas_Object *obj, int type, const char *text);
/** /**
* @brief Set text to give information for specific type. * @brief Set text to give information for specific type.
* @since 1.9 * @since 1.8
* *
* @param obj Accessible object. * @param obj Accessible object.
* @param type The type of content that will be read * @param type The type of content that will be read
@ -167,11 +167,11 @@ void elm_access_info_set(Evas_Object *obj, int type, const char *text);
* @see elm_access_info_cb_set * @see elm_access_info_cb_set
* @ingroup Access * @ingroup Access
*/ */
char *elm_access_info_get(const Evas_Object *obj, int type); EAPI char *elm_access_info_get(const Evas_Object *obj, int type);
/** /**
* @brief Set content callback to give information for specific type. * @brief Set content callback to give information for specific type.
* @since 1.9 * @since 1.8
* *
* @param obj Accessible object. * @param obj Accessible object.
* @param type The type of content that will be read * @param type The type of content that will be read
@ -188,11 +188,11 @@ char *elm_access_info_get(const Evas_Object *obj, int type);
* *
* @ingroup Access * @ingroup Access
*/ */
void elm_access_info_cb_set(Evas_Object *obj, int type, Elm_Access_Info_Cb func, const void *data); EAPI void elm_access_info_cb_set(Evas_Object *obj, int type, Elm_Access_Info_Cb func, const void *data);
/** /**
* @brief Set activate callback to activate highlight object. * @brief Set activate callback to activate highlight object.
* @since 1.9 * @since 1.8
* *
* @param obj Accessible object. * @param obj Accessible object.
* @param func The function to be called when the activate gesture is detected * @param func The function to be called when the activate gesture is detected
@ -200,11 +200,11 @@ void elm_access_info_cb_set(Evas_Object *obj, int type, Elm_Access_Info_Cb func,
* *
* @ingroup Access * @ingroup Access
*/ */
void elm_access_activate_cb_set(Evas_Object *obj, Elm_Access_Activate_Cb func, void *data); EAPI void elm_access_activate_cb_set(Evas_Object *obj, Elm_Access_Activate_Cb func, void *data);
/** /**
* @brief Read out text information directly. * @brief Read out text information directly.
* @since 1.9 * @since 1.8
* *
* @param text The text information that will be read * @param text The text information that will be read
* *
@ -212,11 +212,11 @@ void elm_access_activate_cb_set(Evas_Object *obj, Elm_Access_Activate_Cb func, v
* *
* @ingroup Access * @ingroup Access
*/ */
void elm_access_say(const char *text); EAPI void elm_access_say(const char *text);
/** /**
* @brief Give the highlight to the object directly. * @brief Give the highlight to the object directly.
* @since 1.9 * @since 1.8
* *
* @param obj The object that will have the highlight and its information be read. * @param obj The object that will have the highlight and its information be read.
* *
@ -225,11 +225,11 @@ void elm_access_say(const char *text);
* @see elm_access_object_get * @see elm_access_object_get
* @ingroup Access * @ingroup Access
*/ */
void elm_access_highlight_set(Evas_Object* obj); EAPI void elm_access_highlight_set(Evas_Object* obj);
/** /**
* @brief Do the accessibility action base on given object. * @brief Do the accessibility action base on given object.
* @since 1.9 * @since 1.8
* *
* @param obj The object that could be an any object. it would be useful to use a container widget. * @param obj The object that could be an any object. it would be useful to use a container widget.
* @param type The type of accessibility action. * @param type The type of accessibility action.
@ -243,11 +243,11 @@ void elm_access_highlight_set(Evas_Object* obj);
* *
* @ingroup Access * @ingroup Access
*/ */
Eina_Bool elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type, Elm_Access_Action_Info *action_info); EAPI Eina_Bool elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type, Elm_Access_Action_Info *action_info);
/** /**
* @brief Set a callback function to a given accessibility action type * @brief Set a callback function to a given accessibility action type
* @since 1.9 * @since 1.8
* *
* @param obj The object to attach a callback to * @param obj The object to attach a callback to
* @param type The type of accessibility action. * @param type The type of accessibility action.
@ -256,11 +256,11 @@ Eina_Bool elm_access_action(Evas_Object *obj, const Elm_Access_Action_Type type,
* *
* @ingroup Access * @ingroup Access
*/ */
void elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type type, const Elm_Access_Action_Cb cb, const void *data); EAPI void elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type type, const Elm_Access_Action_Cb cb, const void *data);
/** /**
* @brief Set the next access object for highlight. * @brief Set the next access object for highlight.
* @since 1.9 * @since 1.8
* *
* @param obj The object is previous access object of next for hilight. * @param obj The object is previous access object of next for hilight.
* @param dir Access direction same as Focus direction * @param dir Access direction same as Focus direction
@ -273,5 +273,5 @@ void elm_access_action_cb_set(Evas_Object *obj, const Elm_Access_Action_Type typ
* *
* @ingroup Access * @ingroup Access
*/ */
void EAPI void
elm_access_highlight_next_set(Evas_Object *obj, Elm_Highlight_Direction dir, Evas_Object *next); elm_access_highlight_next_set(Evas_Object *obj, Elm_Highlight_Direction dir, Evas_Object *next);