jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a47ecc87139d2a190b975dbf15709585b0677284

commit a47ecc87139d2a190b975dbf15709585b0677284
Author: Jaehyun Cho <[email protected]>
Date:   Tue Oct 31 20:19:50 2017 +0900

    efl_animation: Change protected methods to be internal methods
    
    target_state_save, target_state_reset, target_map_reset methods are used
    internally.
    Therefore, those methods become internal methods.
---
 src/lib/evas/Evas_Internal.h                      | 4 ++++
 src/lib/evas/canvas/efl_animation_object.c        | 9 ++++++++-
 src/lib/evas/canvas/efl_animation_object.eo       | 9 ---------
 src/lib/evas/canvas/efl_animation_object_group.c  | 5 ++++-
 src/lib/evas/canvas/efl_animation_object_group.eo | 3 ---
 5 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/lib/evas/Evas_Internal.h b/src/lib/evas/Evas_Internal.h
index f2fa838863..2a84270917 100644
--- a/src/lib/evas/Evas_Internal.h
+++ b/src/lib/evas/Evas_Internal.h
@@ -113,6 +113,10 @@ EOAPI int efl_animation_object_repeat_count_get(const Eo 
*obj);
 EOAPI void efl_animation_object_interpolator_set(Eo *obj, Efl_Object 
*interpolator);
 EOAPI Efl_Object *efl_animation_object_interpolator_get(const Eo *obj);
 
+EOAPI void efl_animation_object_target_state_save(Eo *obj);
+EOAPI void efl_animation_object_target_state_reset(Eo *obj);
+EOAPI void efl_animation_object_target_map_reset(Eo *obj);
+
 EWAPI extern const Efl_Event_Description 
_EFL_ANIMATION_OBJECT_EVENT_PRE_STARTED;
 #define EFL_ANIMATION_OBJECT_EVENT_PRE_STARTED 
(&(_EFL_ANIMATION_OBJECT_EVENT_PRE_STARTED))
 /* Efl.Animation.Object END */
diff --git a/src/lib/evas/canvas/efl_animation_object.c 
b/src/lib/evas/canvas/efl_animation_object.c
index 03c531af02..87d1988c91 100644
--- a/src/lib/evas/canvas/efl_animation_object.c
+++ b/src/lib/evas/canvas/efl_animation_object.c
@@ -555,6 +555,10 @@ EOAPI 
EFL_FUNC_BODY_CONST(efl_animation_object_repeat_count_get, int, 0);
 EOAPI EFL_VOID_FUNC_BODYV(efl_animation_object_interpolator_set, 
EFL_FUNC_CALL(interpolator), Efl_Interpolator *interpolator);
 EOAPI EFL_FUNC_BODY_CONST(efl_animation_object_interpolator_get, 
Efl_Interpolator *, NULL);
 
+EOAPI EFL_VOID_FUNC_BODY(efl_animation_object_target_state_save);
+EOAPI EFL_VOID_FUNC_BODY(efl_animation_object_target_state_reset);
+EOAPI EFL_VOID_FUNC_BODY(efl_animation_object_target_map_reset);
+
 #define EFL_ANIMATION_OBJECT_EXTRA_OPS \
    EFL_OBJECT_OP_FUNC(efl_animation_object_target_set, 
_efl_animation_object_target_set), \
    EFL_OBJECT_OP_FUNC(efl_animation_object_target_get, 
_efl_animation_object_target_get), \
@@ -570,7 +574,10 @@ EOAPI 
EFL_FUNC_BODY_CONST(efl_animation_object_interpolator_get, Efl_Interpolato
    EFL_OBJECT_OP_FUNC(efl_animation_object_repeat_count_set, 
_efl_animation_object_repeat_count_set), \
    EFL_OBJECT_OP_FUNC(efl_animation_object_repeat_count_get, 
_efl_animation_object_repeat_count_get), \
    EFL_OBJECT_OP_FUNC(efl_animation_object_interpolator_set, 
_efl_animation_object_interpolator_set), \
-   EFL_OBJECT_OP_FUNC(efl_animation_object_interpolator_get, 
_efl_animation_object_interpolator_get)
+   EFL_OBJECT_OP_FUNC(efl_animation_object_interpolator_get, 
_efl_animation_object_interpolator_get), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_state_save, 
_efl_animation_object_target_state_save), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_state_reset, 
_efl_animation_object_target_state_reset), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_map_reset, 
_efl_animation_object_target_map_reset)
 
 EWAPI const Efl_Event_Description _EFL_ANIMATION_OBJECT_EVENT_PRE_STARTED =
    EFL_EVENT_DESCRIPTION("pre_started");
diff --git a/src/lib/evas/canvas/efl_animation_object.eo 
b/src/lib/evas/canvas/efl_animation_object.eo
index f7aa02b225..80b33b925a 100644
--- a/src/lib/evas/canvas/efl_animation_object.eo
+++ b/src/lib/evas/canvas/efl_animation_object.eo
@@ -26,15 +26,6 @@ class Efl.Animation.Object (Efl.Object)
       resume {
          [[Resume animation.]]
       }
-      target_state_save @protected {
-         [[Save the state of the target.]]
-      }
-      target_state_reset @protected {
-         [[Reset the state of the target to the previously saved state.]]
-      }
-      target_map_reset @protected {
-         [[Reset the map effect of the target.]]
-      }
       progress_set @protected {
          [[Display the moment of animation according to the given progress.]]
          params {
diff --git a/src/lib/evas/canvas/efl_animation_object_group.c 
b/src/lib/evas/canvas/efl_animation_object_group.c
index b7094d76b8..092ae02809 100644
--- a/src/lib/evas/canvas/efl_animation_object_group.c
+++ b/src/lib/evas/canvas/efl_animation_object_group.c
@@ -192,6 +192,9 @@ EOAPI EFL_FUNC_BODY(efl_animation_object_group_objects_get, 
Eina_List *, NULL);
    EFL_OBJECT_OP_FUNC(efl_animation_object_target_set, 
_efl_animation_object_group_efl_animation_object_target_set), \
    EFL_OBJECT_OP_FUNC(efl_animation_object_duration_set, 
_efl_animation_object_group_efl_animation_object_duration_set), \
    EFL_OBJECT_OP_FUNC(efl_animation_object_final_state_keep_set, 
_efl_animation_object_group_efl_animation_object_final_state_keep_set), \
-   EFL_OBJECT_OP_FUNC(efl_animation_object_interpolator_set, 
_efl_animation_object_group_efl_animation_object_interpolator_set)
+   EFL_OBJECT_OP_FUNC(efl_animation_object_interpolator_set, 
_efl_animation_object_group_efl_animation_object_interpolator_set), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_state_save, 
_efl_animation_object_group_efl_animation_object_target_state_save), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_state_reset, 
_efl_animation_object_group_efl_animation_object_target_state_reset), \
+   EFL_OBJECT_OP_FUNC(efl_animation_object_target_map_reset, 
_efl_animation_object_group_efl_animation_object_target_map_reset)
 
 #include "efl_animation_object_group.eo.c"
diff --git a/src/lib/evas/canvas/efl_animation_object_group.eo 
b/src/lib/evas/canvas/efl_animation_object_group.eo
index 0ac0787294..1ad80394f0 100644
--- a/src/lib/evas/canvas/efl_animation_object_group.eo
+++ b/src/lib/evas/canvas/efl_animation_object_group.eo
@@ -7,8 +7,5 @@ abstract Efl.Animation.Object.Group (Efl.Animation.Object)
    implements {
       Efl.Object.constructor;
       Efl.Object.destructor;
-      Efl.Animation.Object.target_state_save;
-      Efl.Animation.Object.target_state_reset;
-      Efl.Animation.Object.target_map_reset;
    }
 }

-- 


Reply via email to