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%2Ftoolkit-accessibility-adaptor.h;h=744f97124d1ec3c7a7b679f2abf272cbd1e5220d;hp=5a00f8c492121bcfc4926cf36401cbaffa0dd648;hb=c125573992c196f15ece50589ae80efed63c8870;hpb=a2fc5fd1c64132c393330dde2fac210f58ac5525 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.h index 5a00f8c..744f971 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-accessibility-adaptor.h @@ -1,11 +1,8 @@ -// Prevent normal accessibility adaptor declaration from loading -#define __DALI_ACCESSIBILITY_ADAPTOR_H__ - -#ifndef __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__ -#define __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__ +#ifndef __DALI_TEST_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__ +#define __DALI_TEST_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -22,69 +19,19 @@ */ // EXTERNAL INCLUDES -#include -#include -#include +#include +#include -namespace Dali -{ -namespace Internal -{ -namespace Adaptor +namespace Test { -class AccessibilityAdaptor; -} -} -class AccessibilityActionHandler; -class AccessibilityGestureHandler; -class TouchPoint; - -/** - * This creates a stubbed AccessibilityAdaptor so that internal Toolkit Adaptor calls work. - */ -class AccessibilityAdaptor : public BaseHandle +namespace AccessibilityAdaptor { -public: // Construction & Destruction - AccessibilityAdaptor(); - ~AccessibilityAdaptor(); - -public: // Getters - static AccessibilityAdaptor Get(); - Vector2 GetReadPosition() const; - bool IsEnabled() const; - void SetActionHandler(AccessibilityActionHandler& handler); - void SetGestureHandler(AccessibilityGestureHandler& handler); - bool HandleActionNextEvent(); - bool HandleActionPreviousEvent(); - bool HandleActionActivateEvent(); - bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain); - bool HandleActionReadNextEvent(); - bool HandleActionReadPreviousEvent(); - bool HandleActionUpEvent(); - bool HandleActionDownEvent(); - bool HandleActionClearFocusEvent(); - bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp); - bool HandleActionBackEvent(); - void HandleActionEnableEvent(); - void HandleActionDisableEvent(); - bool HandleActionScrollUpEvent(); - bool HandleActionScrollDownEvent(); - bool HandleActionPageLeftEvent(); - bool HandleActionPageRightEvent(); - bool HandleActionPageUpEvent(); - bool HandleActionPageDownEvent(); - bool HandleActionMoveToFirstEvent(); - bool HandleActionMoveToLastEvent(); - bool HandleActionReadFromTopEvent(); - bool HandleActionReadFromNextEvent(); - bool HandleActionZoomEvent(); - bool HandleActionReadIndicatorInformationEvent(); - bool HandleActionReadPauseResumeEvent(); - bool HandleActionStartStopEvent(); - AccessibilityAdaptor( Internal::Adaptor::AccessibilityAdaptor* adaptor ); -}; +void MockSetReadPosition( Dali::AccessibilityAdaptor adaptor, Dali::Vector2& position ); +void SetEnabled( Dali::AccessibilityAdaptor adaptor, bool enabled); +void SendPanGesture( Dali::AccessibilityAdaptor adaptor, const Dali::Integration::PanGestureEvent& panEvent ); -} // namespace Dali +} // namespace AccessibilityAdaptor +} // namespace Test -#endif // __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__ +#endif //