X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Fdummy-control.h;h=496786e335498ef228ee340578120b14898db5ba;hp=49214f9a3446d21cea293f0a24e5e6479305fe87;hb=c125573992c196f15ece50589ae80efed63c8870;hpb=a881757839b7abb008873a68c67e17b3ba39669b 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 49214f9..496786e 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 @@ -38,7 +38,7 @@ public: DummyControl(); DummyControl(const DummyControl& control); - virtual ~DummyControl(); + ~DummyControl(); static DummyControl New( bool override = false ); @@ -47,14 +47,6 @@ public: DummyControl& operator=(const DummyControl& control); - // Used to test signal connections - void CustomSlot1( Actor actor, const Vector3& value ); - -public: - - bool mCustomSlot1Called; - Vector3 mCustomSlot1Value; - public: // Not intended for application developers DummyControl( DummyControlImpl& implementation ); @@ -62,22 +54,27 @@ public: // Not intended for application developers }; /** - * Cannot create an instance of ControlImpl, so use this dummy class for the implementation. - * This class does not override any of ControlImpl's behaviour. + * Cannot create an instance of Internal::Control, so use this dummy class for the implementation. + * This class does not override any of Internal::Control's behaviour. */ -class DummyControlImpl : public ControlImpl +class DummyControlImpl : public Internal::Control { public: static DummyControl New(); public: - inline void EnableGestureDetection(Gesture::Type type) { ControlImpl::EnableGestureDetection(type); } - inline void DisableGestureDetection(Gesture::Type type) { ControlImpl::DisableGestureDetection(type); } - inline PinchGestureDetector GetPinchGestureDetector() const { return ControlImpl::GetPinchGestureDetector(); } - inline PanGestureDetector GetPanGestureDetector() const { return ControlImpl::GetPanGestureDetector(); } - inline TapGestureDetector GetTapGestureDetector() const { return ControlImpl::GetTapGestureDetector(); } - inline LongPressGestureDetector GetLongPressGestureDetector() const { return ControlImpl::GetLongPressGestureDetector(); } + inline void EnableGestureDetection(Gesture::Type type) { Internal::Control::EnableGestureDetection(type); } + inline void DisableGestureDetection(Gesture::Type 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(); } + inline LongPressGestureDetector GetLongPressGestureDetector() const { return Internal::Control::GetLongPressGestureDetector(); } + + // Used to test signal connections + void CustomSlot1( Actor actor ); + + bool mCustomSlot1Called; protected: @@ -87,8 +84,8 @@ protected: }; /** - * Cannot create an instance of ControlImpl, so use this dummy class for the implementation. - * This class DOES override ControlImpl's behaviour. + * Cannot create an instance of Internal::Control, so use this dummy class for the implementation. + * This class DOES override Internal::Control's behaviour. */ class DummyControlImplOverride : public DummyControlImpl { @@ -102,25 +99,30 @@ private: virtual ~DummyControlImplOverride(); -private: // From ControlImpl +private: // From Internal::Control virtual void OnInitialize(); - virtual void OnStyleChange(StyleChange change); - virtual void OnPinch(PinchGesture pinch); - virtual void OnPan(PanGesture pan); - virtual void OnTap(TapGesture tap); - virtual void OnLongPress(LongPressGesture longPress); + virtual bool OnAccessibilityActivated(); + virtual bool OnAccessibilityTouch( const TouchEvent& touchEvent ); + virtual bool OnAccessibilityValueChange( bool isIncrease ); + + virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ); + virtual void OnPinch(const PinchGesture& pinch); + virtual void OnPan(const PanGesture& pan); + virtual void OnTap(const TapGesture& tap); + virtual void OnLongPress(const LongPressGesture& longPress); private: // From CustomActorImpl - virtual void OnStageConnection(); + virtual void OnStageConnection( int depth ); virtual void OnStageDisconnection(); 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 OnMouseWheelEvent(const MouseWheelEvent& event); + virtual bool OnHoverEvent(const HoverEvent& event); + virtual bool OnWheelEvent(const WheelEvent& event); virtual bool OnKeyEvent(const KeyEvent& event); virtual void OnKeyInputFocusGained(); virtual void OnKeyInputFocusLost(); @@ -128,7 +130,11 @@ private: // From CustomActorImpl public: bool initializeCalled; - bool styleChangeCalled; + bool activatedCalled; + bool onAccTouchedCalled; + bool onAccValueChangeCalled; + bool themeChangeCalled; + bool fontChangeCalled; bool pinchCalled; bool panCalled; bool tapCalled; @@ -140,7 +146,8 @@ public: bool sizeSetCalled; bool sizeAnimationCalled; bool touchEventCalled; - bool mouseWheelEventCalled; + bool hoverEventCalled; + bool wheelEventCalled; bool keyEventCalled; bool keyInputFocusGained; bool keyInputFocusLost;