elm: add prefixes to Efl.Access.Action to avoid clashes

Summary:
Prefix methods/properties of Efl.Access.Action mixin to avoid potential
clashes in genrated bindings.

This is first of series of patches removing potential name clashes
in accessibility interfaces.

Reviewers: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5213
This commit is contained in:
Lukasz Stanislawski 2017-10-24 12:01:50 +09:00 committed by Jean-Philippe Andre
parent 1e83dd84c6
commit bcb24a40dc
5 changed files with 18 additions and 14 deletions

View File

@ -3,13 +3,14 @@
#endif
#define EFL_ACCESS_ACTION_PROTECTED
#define EFL_ACCESS_ACTION_BETA
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
EOLIAN const char *
_efl_access_action_localized_name_get(Eo *obj, void *pd EINA_UNUSED, int id)
_efl_access_action_action_localized_name_get(Eo *obj, void *pd EINA_UNUSED, int id)
{
const char *ret = NULL;

View File

@ -6,7 +6,7 @@ mixin Efl.Access.Action ()
[[Accessible action mixin]]
data: null;
methods {
@property name @protected @pure_virtual {
@property action_name @protected @pure_virtual @beta {
[[Gets action name for given id]]
get {
}
@ -17,7 +17,7 @@ mixin Efl.Access.Action ()
id: int; [[ID to get action name for]]
}
}
@property localized_name @protected {
@property action_localized_name @protected @beta {
[[Gets localized action name for given id]]
get {
}
@ -28,7 +28,7 @@ mixin Efl.Access.Action ()
id: int; [[ID to get localized name for]]
}
}
@property description @protected @pure_virtual {
@property action_description @protected @pure_virtual @beta {
[[Action description for given id]]
get {
}
@ -42,7 +42,7 @@ mixin Efl.Access.Action ()
id: int; [[ID to set or get description for]]
}
}
@property actions @protected {
@property actions @protected @beta {
[[Get list of available widget actions]]
get @pure_virtual {
}
@ -50,14 +50,14 @@ mixin Efl.Access.Action ()
actions: list<Elm_Atspi_Action>; [[Contains statically allocated strings]]
}
}
action_do @protected @pure_virtual {
action_do @protected @pure_virtual @beta {
[[Performs action on given widget.]]
params {
@in id: int; [[ID for widget]]
}
return: bool; [[$true if action was performed, $false otherwise]]
}
keybinding_get @protected @pure_virtual {
action_keybinding_get @protected @pure_virtual @beta {
[[Gets configured keybinding for specific action and widget.]]
params {
@in id: int; [[ID for widget]]

View File

@ -11,6 +11,8 @@
#define EFL_ACCESS_TEXT_PROTECTED
#define EFL_ACCESS_EDITABLE_TEXT_PROTECTED
#define EFL_ACCESS_ACTION_BETA
#include "atspi/atspi-constants.h"
#include <stdint.h>

View File

@ -4,6 +4,7 @@
#define EFL_ACCESS_ACTION_PROTECTED
#define ELM_INTERFACE_ATSPI_WIDGET_ACTION_PROTECTED
#define EFL_ACCESS_ACTION_BETA
#include <Elementary.h>
#include "elm_widget.h"
@ -40,7 +41,7 @@ _elm_interface_atspi_widget_action_efl_access_action_action_do(Eo *obj, void *pd
}
EOLIAN static char*
_elm_interface_atspi_widget_action_efl_access_action_keybinding_get(Eo *obj, void *pd EINA_UNUSED, int id)
_elm_interface_atspi_widget_action_efl_access_action_action_keybinding_get(Eo *obj, void *pd EINA_UNUSED, int id)
{
const Elm_Atspi_Action *actions = NULL;
Eina_List *l1, *binding_list;
@ -93,7 +94,7 @@ _elm_interface_atspi_widget_action_efl_access_action_keybinding_get(Eo *obj, voi
}
EOLIAN static const char *
_elm_interface_atspi_widget_action_efl_access_action_name_get(Eo *obj, void *pd EINA_UNUSED, int id)
_elm_interface_atspi_widget_action_efl_access_action_action_name_get(Eo *obj, void *pd EINA_UNUSED, int id)
{
const Elm_Atspi_Action *actions = NULL;
int tmp = 0;
@ -110,13 +111,13 @@ _elm_interface_atspi_widget_action_efl_access_action_name_get(Eo *obj, void *pd
}
EOLIAN static Eina_Bool
_elm_interface_atspi_widget_action_efl_access_action_description_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, int id EINA_UNUSED, const char *description EINA_UNUSED)
_elm_interface_atspi_widget_action_efl_access_action_action_description_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, int id EINA_UNUSED, const char *description EINA_UNUSED)
{
return EINA_FALSE;
}
EOLIAN static const char *
_elm_interface_atspi_widget_action_efl_access_action_description_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, int id EINA_UNUSED)
_elm_interface_atspi_widget_action_efl_access_action_action_description_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, int id EINA_UNUSED)
{
return NULL;
}

View File

@ -17,9 +17,9 @@ mixin Elm.Interface.Atspi_Widget_Action (Efl.Access.Action)
}
implements {
Efl.Access.Action.action_do;
Efl.Access.Action.keybinding_get;
Efl.Access.Action.name { get; }
Efl.Access.Action.description { get; set; }
Efl.Access.Action.action_keybinding_get;
Efl.Access.Action.action_name { get; }
Efl.Access.Action.action_description { get; set; }
Efl.Access.Action.actions { get; }
}
}