atspi: enhance documentation 13/126013/3 accepted/tizen/3.0/common/20170511.174310 accepted/tizen/3.0/ivi/20170510.222447 accepted/tizen/3.0/mobile/20170510.222438 accepted/tizen/3.0/tv/20170510.222441 accepted/tizen/3.0/wearable/20170510.222444 submit/tizen_3.0/20170424.042911 submit/tizen_3.0_common/20170511.082856
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 20 Apr 2017 01:00:44 +0000 (10:00 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 21 Apr 2017 06:00:48 +0000 (23:00 -0700)
Change-Id: I597e0cf17c1e3958bd1d862504d1e2709cb599c9

src/lib/elm_access.h
src/lib/elm_atspi_bridge.eo
src/lib/elm_atspi_bridge.h
src/lib/elm_config.h
src/lib/elm_interface_atspi_accessible.eo
src/lib/elm_interface_atspi_accessible.h
src/lib/elm_interfaces.h
src/lib/elm_intro.h.in
src/lib/elm_object.h

index acc0d0998f0d4b4d0d41a7d0e57b6b89f3a5b86f..55e06f602dd78d7125c681c8a5b6de5ea4e7433b 100644 (file)
@@ -1,13 +1,6 @@
 /**
- * @internal
  * @defgroup Elm_Access Access
- * @ingroup Elementary
- *
- * WARNING! this API is not finalized. It is unstable. - do not use it if
- * you want no breaks in future.
- *
- * TODO: description
- *
+ * @ingroup elm_accessibility_group
  */
 
 #include "elm_access.eo.h"
index 9d9dd336f4fc429499ac74e6ae24e16531599013..a0c6171cc9c93c5e0ef3d86f23681763777b6326 100644 (file)
@@ -6,6 +6,7 @@ class Elm.Atspi_Bridge (Eo.Base)
          get {
             [[Indicate if connection with AT-SPI2 bus has been established.
 
+              \@internal
               \@if MOBILE \@since_tizen 3.0
               \@elseif WEARABLE \@since_tizen 3.0
               \@endif
@@ -17,7 +18,10 @@ class Elm.Atspi_Bridge (Eo.Base)
       }
       @property root {
          get {
-            [[Get root object of accessible object hierarchy]]
+            [[Get root object of accessible object hierarchy
+
+              \@internal
+            ]]
             values {
                ret: Eo*;
             }
index f42d028720998330156ca00730272530aad2f57a..cf11f6a0b5a84a11a5baccc73869192f097a5ea0 100644 (file)
@@ -1,5 +1,17 @@
 #include "elm_atspi_bridge.eo.h"
+/**
+ * @defgroup Elm_Atspi_Bridge Atspi Bridge
+ * @ingroup elm_accessibility_group
+ */
 //TIZEN_ONLY(20160527) - Add direct reading feature
+/**
+ * This callback type is used to provide reading status information.
+ * @param data The data specified as the last param when setting this callback
+ * @param say_signal The signal decribes reading status information
+ * @see elm_atspi_bridge_utils_say
+ * @ingroup Elm_Atspi_Bridge
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef void (*Elm_Atspi_Say_Signal_Cb)(void *data, const char *say_signal);
 /**
  * @brief Reads given text by screen reader
@@ -16,7 +28,7 @@ typedef void (*Elm_Atspi_Say_Signal_Cb)(void *data, const char *say_signal);
  * “ReadingSkipped”
  * @param data The user data to be passed to the callback function
  *
- * @ingoup Elm_Atspi_Bridge
+ * @ingroup Elm_Atspi_Bridge
  *
  * @if MOBILE @since_tizen 3.0
  * @elseif WEARABLE @since_tizen 3.0
@@ -28,8 +40,9 @@ EAPI void elm_atspi_bridge_utils_say(const char* text,
                                      const void *data);
 //
 //TIZEN_ONLY(20161027) - Export elm_atspi_bridge_utils_is_screen_reader_enabled
-/** Determines if screen reader is enabled
- *
+/**
+ * @internal
+ * Determines if screen reader is enabled
  * @ingroup Elm_Atspi_Bridge
  */
 EAPI Eina_Bool elm_atspi_bridge_utils_is_screen_reader_enabled(void);
index f622b6b90e46391abf8e956ecadc51ce1e67532c..ba70c6e275ec2ff851b7e90b74cf82b1ca21b438 100644 (file)
@@ -2625,7 +2625,6 @@ EAPI Eina_Bool elm_config_popup_scrollable_get(void);
 EAPI void      elm_config_popup_scrollable_set(Eina_Bool scrollable);
 
 /**
- * @defgroup ATSPI AT-SPI2 Accessibility
  * @ingroup elm_infra_group
  *
  * Elementary widgets support Linux Accessibility standard. For more
@@ -2642,7 +2641,7 @@ EAPI void      elm_config_popup_scrollable_set(Eina_Bool scrollable);
  *
  * @since 1.10
  *
- * @ingroup ATSPI
+ * @ingroup Elm_Config
  *
  * @see elm_config_atspi_mode_set()
  *
@@ -2661,7 +2660,7 @@ EAPI Eina_Bool        elm_config_atspi_mode_get(void);
  *
  * @since 1.10
  *
- * @ingroup ATSPI
+ * @ingroup Elm_Config
  *
  * @see elm_config_atspi_mode_get()
  *
index 7dd6f58cafac43b47d6273bc13e44b90ce6271dd..9ca8416efe936616e6b5637367a44378c6e2fde8 100644 (file)
@@ -20,7 +20,10 @@ mixin Elm_Interface_Atspi_Accessible ()
    methods {
       @property localized_role_name @protected {
          get {
-            [[Gets an localized string describing accessible object role name.]]
+            [[Gets an localized string describing accessible object role name.
+
+              \@internal
+            ]]
          }
          values {
             localized_name: const(char)*; [[Localized accessible role name]]
@@ -65,7 +68,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       //
       @property relation_set @protected {
          get {
-            [[Gets an all relations between accessible object and other accessible objects.]]
+            [[Gets an all relations between accessible object and other accessible objects.
+
+              \@internal
+            ]]
          }
          values {
             relations: Elm_Atspi_Relation_Set; [[Accessible relation set]]
@@ -94,7 +100,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       }
       @property children @protected {
          get {
-            [[Gets object's accessible children.]]
+            [[Gets object's accessible children.
+
+              \@internal
+            ]]
          }
          values {
             children: free(own(list<Elm_Interface_Atspi_Accessible *> *), eina_list_free);
@@ -102,7 +111,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       }
       @property role_name @protected {
          get {
-            [[Gets human-readable string indentifying widget accessibility role.]]
+            [[Gets human-readable string indentifying widget accessibility role.
+
+              \@internal
+            ]]
          }
          values {
             role_name: const(char)*; [[Accessible role name]]
@@ -110,7 +122,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       }
       @property attributes @protected {
          get {
-            [[Gets key-value pairs identifying object extra attributes. Must be free by a user.]]
+            [[Gets key-value pairs identifying object extra attributes. Must be free by a user.
+
+              \@internal
+            ]]
          }
          values {
             attributes: free(own(list<own(Elm_Atspi_Attribute *)> *), elm_atspi_attributes_list_free); [[List of object attributes]]
@@ -132,7 +147,10 @@ mixin Elm_Interface_Atspi_Accessible ()
 
       //TIZEN_ONLY(20160926): attributes, endless recursion fix
       attributes_clear {
-         [[Removes all attributes in accessible object.]]
+         [[Removes all attributes in accessible object.
+
+           \@internal
+         ]]
       }
 
       @property reading_info_type @protected {
@@ -159,7 +177,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       //
       @property index_in_parent @protected {
          get {
-            [[Gets index of the child in parent's children list.]]
+            [[Gets index of the child in parent's children list.
+
+              \@internal
+            ]]
          }
          values {
             idx: int; [[Index in children list]]
@@ -218,7 +239,10 @@ mixin Elm_Interface_Atspi_Accessible ()
          }
       }
       gesture_do @protected {
-         [[Handles gesture on given widget.]]
+         [[Handles gesture on given widget.
+
+           \@internal
+         ]]
          legacy: null;
          params {
             @in gesture_info: Elm_Atspi_Gesture_Info;
@@ -228,10 +252,16 @@ mixin Elm_Interface_Atspi_Accessible ()
       //
       @property parent @protected {
          get {
-            [[Gets object's accessible parent.]]
+            [[Gets object's accessible parent.
+
+              \@internal
+            ]]
          }
          set {
-            [[Sets object's accessible parent.]]
+            [[Sets object's accessible parent.
+
+              \@internal
+            ]]
          }
          values {
             parent: Elm_Interface_Atspi_Accessible *;
@@ -239,7 +269,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       }
       @property state_set @protected {
          get {
-            [[Gets set describing object accessible states.]]
+            [[Gets set describing object accessible states.
+
+              \@internal
+            ]]
          }
          values {
             states: Elm_Atspi_State_Set;
@@ -269,7 +302,10 @@ mixin Elm_Interface_Atspi_Accessible ()
       }
       //
       event_handler_add @class @protected {
-         [[Register accessibility event listener]]
+         [[Register accessibility event listener
+
+           \@internal
+         ]]
          params {
               @in cb: Eo_Event_Cb; [[callback]]
               @in data: void*; [[data]]
@@ -277,12 +313,19 @@ mixin Elm_Interface_Atspi_Accessible ()
          return: Elm_Atspi_Event_Handler*; [[Event handler]]
       }
       event_handler_del @class @protected {
-         [[Deregister accessibility event listener]]
+         [[Deregister accessibility event listener
+
+           \@internal
+         ]]
          params {
               @in handler: Elm_Atspi_Event_Handler *; [[Event handler]]
          }
       }
       event_emit @class @protected {
+         [[Emit accessibility event which could occur atspi event
+
+           \@internal
+         ]]
          params {
             @in accessible: Elm_Interface_Atspi_Accessible *; [[Accessibility object.]]
             @in event: const(Eo_Event_Description)*; [[Accessibility event type.]]
@@ -346,8 +389,8 @@ mixin Elm_Interface_Atspi_Accessible ()
          ]]
          return: bool;
          params {
-            @in type: Elm_Atspi_Relation_Type;
-            @in relation_object: const(Elm_Interface_Atspi_Accessible)*;
+            @in type: Elm_Atspi_Relation_Type; [[Relation type between two objects]]
+            @in relation_object: const(Elm_Interface_Atspi_Accessible)*; [[Relation object of source object]]
          }
       }
       relationship_remove {
@@ -361,16 +404,19 @@ mixin Elm_Interface_Atspi_Accessible ()
            \@endif
          ]]
          params {
-            @in type: Elm_Atspi_Relation_Type;
-            @in relation_object: const(Elm_Interface_Atspi_Accessible)*;
+            @in type: Elm_Atspi_Relation_Type; [[Relation type between two objects]]
+            @in relation_object: const(Elm_Interface_Atspi_Accessible)*; [[Relation object of source object]]
          }
       }
       relationships_clear {
-         [[Removes all relationships in accessible object.]]
+         [[Removes all relationships in accessible object.
+
+           \@internal
+         ]]
       }
       //TIZEN_ONLY(20161122): add state_notify api
       state_notify @protected {
-           [[ Notifies accessibility clients about current state of the
+           [[ Notifies assistive technology clients about current state of the
               accessibile object.
 
               Function limits information broadcast to clients to types
@@ -378,6 +424,8 @@ mixin Elm_Interface_Atspi_Accessible ()
 
               if recursive parameter is set, function will traverse all
               accessible children and call state_notify function on them.
+
+              \@internal
            ]]
            params {
                 @in state_types_mask: Elm_Atspi_State_Set;
index bc2ca4467c776ff12e61dfda449df32afb4162e8..2b1c65e18c303d7b89f511e79e961c2d9506df69 100644 (file)
@@ -2,14 +2,21 @@
 #define ELM_INTERFACE_ATSPI_ACCESSIBLE_H
 
 /**
- * @defgroup Elm_Accessibility Accessibility
- * @ingroup elm_infra_group
+ * @defgroup Elm_Interface_Atspi_Accessible Atspi Accessible
+ * @ingroup elm_accessibility_group
  * @{
  */
 
 //TIZEN_ONLY(20190922): add name callback, description callback.
 /**
- * ATSPI reading information callback
+ * This callback type is used to provide accessibility reading information.
+ * @param data The data specified as the last param when setting this callback
+ * @param obj The accessible object specified as the fisrt param when setting
+ * this callback
+ * @return The information to be used by accessibilty client
+ * @see elm_atspi_accessible_name_cb_set
+ * @see elm_atspi_accessible_description_cb_set
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
  */
 typedef char *(*Elm_Atspi_Reading_Info_Cb)(void *data, Evas_Object *obj);
 //
@@ -57,6 +64,10 @@ enum _Elm_Atspi_Gesture_Type
    ELM_ATSPI_GESTURE_THREE_FINGERS_FLICK_UP_RETURN,
    ELM_ATSPI_GESTURE_THREE_FINGERS_FLICK_DOWN_RETURN,
 };
+/**
+ * Type of gesture that is emitted on assistive technology client side.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef enum _Elm_Atspi_Gesture_Type Elm_Atspi_Gesture_Type;
 
 enum _Elm_Atspi_Gesture_State
@@ -66,6 +77,10 @@ enum _Elm_Atspi_Gesture_State
    ELM_ATSPI_GESTURE_STATE_END,
    ELM_ATSPI_GESTURE_STATE_ABORT,
 };
+/**
+ * State of gesture that is emitted on assistive technology client side.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef enum _Elm_Atspi_Gesture_State Elm_Atspi_Gesture_State;
 
 struct _Elm_Atspi_Gesture_Info
@@ -78,46 +93,62 @@ struct _Elm_Atspi_Gesture_Info
    Elm_Atspi_Gesture_State state;
    unsigned int event_time;
 };
+/**
+ * Detailed information of gesture that is emitted on assistive technology client side.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef struct _Elm_Atspi_Gesture_Info Elm_Atspi_Gesture_Info;
 
+/**
+ * This callback type is used to provide accessibility gesture information.
+ * @param data The data specified as the last param when setting this callback
+ * @param obj The accessible object specified as the fisrt param when setting
+ * this callback
+ * @return @c true if application consumes gesutre, @c false if application does
+ * not consume gesture, then assistive technology client consumes gesture
+ * @see elm_atspi_accessible_gesture_cb_set
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef Eina_Bool (*Elm_Atspi_Gesture_Cb)(void *data, Elm_Atspi_Gesture_Info gesture_info, Evas_Object *obj);
 //
 
 /**
+ * @internal
  * ATSPI event listener
  */
 typedef struct _Elm_Atspi_Event_Handler Elm_Atspi_Event_Handler;
 
 /**
+ * @internal
  * ATSPI object state set.
  */
 typedef uint64_t Elm_Atspi_State_Set;
 
 /*
+ * @internal
  * Sets a particilar state type for given state set.
  */
 #define STATE_TYPE_SET(state_set, type)   (state_set|= ((Elm_Atspi_State_Set)1 << type))
 
 /**
+ * @internal
  * Unsets a particilar state type for given state set.
  */
 #define STATE_TYPE_UNSET(state_set, type) (state_set &= ~((Elm_Atspi_State_Set)1 << type))
 
 /**
+ * @internal
  * Gets value of a particilar state type for given state set.
  */
 #define STATE_TYPE_GET(state_set, type)   (state_set & ((Elm_Atspi_State_Set)1 << type))
 
 /**
+ * @internal
  * @brief Creates atspi state using given type.
  */
 #define ATSPI_STATE(type) ((Elm_Atspi_State_Set)1 << (type))
 
 
-/**
- * @enum _Elm_Atspi_Role
- * Describes the role of an object visible to AT-SPI Clients.
- */
 enum _Elm_Atspi_Role
 {
     ELM_ATSPI_ROLE_INVALID,
@@ -226,12 +257,12 @@ enum _Elm_Atspi_Role
     ELM_ATSPI_ROLE_LAST_DEFINED,
 };
 
-typedef enum _Elm_Atspi_Role Elm_Atspi_Role;
-
 /**
- * @enum _Elm_Atspi_State_Type
- * Describes a possible states of an object visible to AT-SPI clients.
+ * Describes the role of an object visible to assistive technology client.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
  */
+typedef enum _Elm_Atspi_Role Elm_Atspi_Role;
+
 enum _Elm_Atspi_State_Type
 {
     ELM_ATSPI_STATE_INVALID,
@@ -285,11 +316,12 @@ enum _Elm_Atspi_State_Type
     ELM_ATSPI_STATE_LAST_DEFINED,
 };
 
-typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type;
-
 /**
- * Elm_Atspi_Relation_Type describes relation between two objects.
+ * Describes a possible states of an object visible to AT-SPI clients.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
  */
+typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type;
+
 enum _Elm_Atspi_Relation_Type {
      ELM_ATSPI_RELATION_NULL,
      ELM_ATSPI_RELATION_LABEL_FOR,
@@ -313,6 +345,10 @@ enum _Elm_Atspi_Relation_Type {
      ELM_ATSPI_RELATION_LAST_DEFINED,
 };
 
+/**
+ * Elm_Atspi_Relation_Type describes relation between two objects.
+ * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
+ */
 typedef enum _Elm_Atspi_Relation_Type Elm_Atspi_Relation_Type;
 
 struct _Elm_Atspi_Event_State_Changed_Data
@@ -359,6 +395,7 @@ struct _Elm_Atspi_Relation
 typedef struct _Elm_Atspi_Relation Elm_Atspi_Relation;
 
 /**
+ * @internal
  * Free Elm_Atspi_Attributes_List
  *
  * @if MOBILE @since_tizen 3.0
@@ -370,6 +407,7 @@ EAPI void elm_atspi_attributes_list_free(Eina_List *list);
 typedef Eina_List *Elm_Atspi_Relation_Set;
 
 /**
+ * @internal
  * Frees relation.
  *
  * @if MOBILE @since_tizen 3.0
@@ -379,6 +417,7 @@ typedef Eina_List *Elm_Atspi_Relation_Set;
 EAPI void elm_atspi_relation_free(Elm_Atspi_Relation *relation);
 
 /**
+ * @internal
  * Clones relation.
  *
  * @if MOBILE @since_tizen 3.0
@@ -388,6 +427,7 @@ EAPI void elm_atspi_relation_free(Elm_Atspi_Relation *relation);
 EAPI Elm_Atspi_Relation * elm_atspi_relation_clone(const Elm_Atspi_Relation *relation);
 
 /**
+ * @internal
  * Appends relation to relation set
  *
  * @if MOBILE @since_tizen 3.0
@@ -397,6 +437,7 @@ EAPI Elm_Atspi_Relation * elm_atspi_relation_clone(const Elm_Atspi_Relation *rel
 EAPI Eina_Bool elm_atspi_relation_set_relation_append(Elm_Atspi_Relation_Set *set, Elm_Atspi_Relation_Type type, const Eo *rel_obj);
 
 /**
+ * @internal
  * Removes relation from relation set
  *
  * @if MOBILE @since_tizen 3.0
@@ -406,6 +447,7 @@ EAPI Eina_Bool elm_atspi_relation_set_relation_append(Elm_Atspi_Relation_Set *se
 EAPI void elm_atspi_relation_set_relation_remove(Elm_Atspi_Relation_Set *set, Elm_Atspi_Relation_Type type, const Eo *rel_obj);
 
 /**
+ * @internal
  * Removes all relation from relation set of a given type
  *
  * @if MOBILE @since_tizen 3.0
@@ -415,6 +457,7 @@ EAPI void elm_atspi_relation_set_relation_remove(Elm_Atspi_Relation_Set *set, El
 EAPI void elm_atspi_relation_set_relation_type_remove(Elm_Atspi_Relation_Set *set, Elm_Atspi_Relation_Type type);
 
 /**
+ * @internal
  * Frees Elm_Atspi_Relation_Set
  *
  * @if MOBILE @since_tizen 3.0
@@ -424,6 +467,7 @@ EAPI void elm_atspi_relation_set_relation_type_remove(Elm_Atspi_Relation_Set *se
 EAPI void elm_atspi_relation_set_free(Elm_Atspi_Relation_Set *set);
 
 /**
+ * @internal
  * Clones Elm_Atspi_Relation_Set
  *
  * @if MOBILE @since_tizen 3.0
@@ -525,23 +569,12 @@ EAPI Elm_Atspi_Relation_Set elm_atspi_relation_set_clone(const Elm_Atspi_Relatio
 #define elm_interface_atspi_accessible_removed(obj) \
    eo_do(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, elm_interface_atspi_accessible_event_emit(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_REMOVED, NULL));
 
-/**
- * @defgroup Elm_Interface_Atspi_Accessible Atspi Accessible
- * @ingroup Elm_Accessibility
- *
- * @{
- */
-
 #include "elm_interface_atspi_accessible.eo.h"
 #endif
 #ifndef EFL_NOLEGACY_API_SUPPORT
 #include "elm_interface_atspi_accessible.eo.legacy.h"
 #endif
 
-/**
- * @}
- */
-
 /**
  * @}
  */
index d5ef4cfd9c6ea4ff25c9db788b50e8b16d5a147a..6ab7be7b2cd9c2cf3ccac68a34e6c54c27afcd14 100644 (file)
 #endif
 #ifndef EFL_NOLEGACY_API_SUPPORT
 #include "elm_interface_atspi_action.eo.legacy.h"
+/**
+ * @defgroup Elm_Interface_Atspi_Component Atspi Component
+ * @ingroup elm_accessibility_group
+ * @{
+ */
 #include "elm_interface_atspi_component.eo.legacy.h"
+/**
+ * @}
+ */
 #include "elm_interface_atspi_editable_text.eo.legacy.h"
 #include "elm_interface_atspi_image.eo.legacy.h"
 #include "elm_interface_atspi_selection.eo.legacy.h"
index faa4f8d5e91f209a09cc9c1bfa6f65c4db0a324c..62a8d2254f0ea15b43de230a51b3d5c32319c8aa 100644 (file)
@@ -10,6 +10,9 @@
  * @ingroup Elementary
  * @brief This contains infrastructure modules that facilitate the use of widgets.
  *
+ * @defgroup elm_accessibility_group Accessibility
+ * @ingroup elm_infra_group
+ *
  * @defgroup elm_container_group Elementary Containers
  * @ingroup Elementary
  * @brief Elementary is about displaying its widgets in a nice layout, for this
index 71cd01287550f3933f3ae87bf1c250ab7bac6903..43b32e5326e62b132c35dd58c623b089bb93b271 100644 (file)
@@ -619,7 +619,7 @@ EAPI Eina_Bool   elm_object_orientation_mode_disabled_get(const Evas_Object *obj
  * @param obj The object
  * @param part The object's part name to register
  *
- * @ingroup General
+ * @ingroup Elm_General
  *
  * @if MOBILE @since_tizen 3.0
  * @elseif WEARABLE @since_tizen 3.0