X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Fdummy-control.h;h=6321c1e5e3a022e874ccf5609e695e54f6810f37;hb=81b6946e6eae9989ba04ba164adf9347e85efdfe;hp=59882845f9e16e20a02b8bc591597f31a6843bf5;hpb=14a48afd7d9b5ba7bd8c8ebc69b214be8310613a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h index 5988284..6321c1e 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ -#define __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ +#ifndef DALI_TOOLKIT_TEST_DUMMY_CONTROL_H +#define DALI_TOOLKIT_TEST_DUMMY_CONTROL_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -90,8 +90,8 @@ public: static DummyControl New(); public: - inline void EnableGestureDetection(Gesture::Type type) { Internal::Control::EnableGestureDetection(type); } - inline void DisableGestureDetection(Gesture::Type type) { Internal::Control::DisableGestureDetection(type); } + inline void EnableGestureDetection(GestureType::Value type) { Internal::Control::EnableGestureDetection(type); } + inline void DisableGestureDetection(GestureType::Value type) { Internal::Control::DisableGestureDetection(type); } inline PinchGestureDetector GetPinchGestureDetector() const { return Internal::Control::GetPinchGestureDetector(); } inline PanGestureDetector GetPanGestureDetector() const { return Internal::Control::GetPanGestureDetector(); } inline TapGestureDetector GetTapGestureDetector() const { return Internal::Control::GetTapGestureDetector(); } @@ -154,7 +154,6 @@ private: // From Internal::Control virtual void OnInitialize(); virtual bool OnAccessibilityActivated(); - virtual bool OnAccessibilityTouch( const TouchEvent& touchEvent ); virtual bool OnAccessibilityValueChange( bool isIncrease ); virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ); @@ -166,13 +165,12 @@ private: // From Internal::Control private: // From CustomActorImpl - virtual void OnStageConnection( int depth ); - virtual void OnStageDisconnection(); + virtual void OnSceneConnection( int depth ); + virtual void OnSceneDisconnection(); virtual void OnChildAdd(Actor& child); virtual void OnChildRemove(Actor& child); virtual void OnSizeSet(const Vector3& targetSize); virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize); - virtual bool OnTouchEvent(const TouchEvent& event); virtual bool OnHoverEvent(const HoverEvent& event); virtual bool OnWheelEvent(const WheelEvent& event); virtual bool OnKeyEvent(const KeyEvent& event); @@ -187,7 +185,6 @@ public: bool initializeCalled; bool activatedCalled; - bool onAccTouchedCalled; bool onAccValueChangeCalled; bool themeChangeCalled; bool fontChangeCalled; @@ -201,12 +198,13 @@ public: bool childRemoveCalled; bool sizeSetCalled; bool sizeAnimationCalled; - bool touchEventCalled; bool hoverEventCalled; bool wheelEventCalled; bool keyEventCalled; bool keyInputFocusGained; bool keyInputFocusLost; + static int constructorCount; + static int destructorCount; Property::Map mLayouts; RelayoutCallbackFunc mRelayoutCallback; @@ -219,4 +217,4 @@ public: } // namespace Dali -#endif // __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ +#endif // DALI_TOOLKIT_TEST_DUMMY_CONTROL_H