X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Faccessibility-adaptor.h;h=47292c2bdc657660e23122a3efb338ffa066143c;hb=f0204fc5cc06bb7ee931a17ff17512df4cff869f;hp=9be248321bcc0cf5368b39db618b10d0fb865bd9;hpb=d9d89ba735faf1b8689ef74428fbfb1fe0c7fca5;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/accessibility-adaptor.h b/dali/devel-api/adaptor-framework/accessibility-adaptor.h old mode 100755 new mode 100644 index 9be2483..47292c2 --- a/dali/devel-api/adaptor-framework/accessibility-adaptor.h +++ b/dali/devel-api/adaptor-framework/accessibility-adaptor.h @@ -2,7 +2,7 @@ #define DALI_ACCESSIBILITY_ADAPTOR_H /* - * Copyright (c) 2019 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. @@ -18,26 +18,24 @@ * */ - // EXTERNAL INCLUDES -#include -#include +#include #include +#include namespace Dali { - namespace Internal DALI_INTERNAL { namespace Adaptor { class AccessibilityAdaptor; } -} +} // namespace DALI_INTERNAL class AccessibilityActionHandler; class AccessibilityGestureHandler; -class TouchPoint; +struct TouchPoint; /** * @brief The AccessibilityAdaptor provides communication to the accessibility manager interface (implemented in toolkit). @@ -46,7 +44,6 @@ class TouchPoint; class DALI_ADAPTOR_API AccessibilityAdaptor : public BaseHandle { public: - /** * @brief Create an uninitialized handle. * @@ -75,6 +72,12 @@ public: Vector2 GetReadPosition() const; /** + * @brief Enables Accessibility action or not. + * @param[in] enabled True if Accessibility action should be enabled. + */ + void EnableAccessibility( bool enabled ); + + /** * @brief Query whether the accessibility(screen-reader) is enabled. * * The accessibility will be enabled by system setting. @@ -83,6 +86,12 @@ public: bool IsEnabled() const; /** + * @brief Sets Accessibility enabled forcibly. + * @param forced Whether accessibility sets enabled forcibly + */ + void SetForcedEnable( bool forced ); + + /** * @brief Set the handler to handle accessibility actions. * * @param[in] handler The Accessibility action handler. @@ -99,6 +108,12 @@ public: void SetGestureHandler(AccessibilityGestureHandler& handler); /** + * @brief Sets the position of the focused actor. + * @param currentPosition The position of the focused actor + */ + void SetFocusedActorPosition(Vector2 currentPosition); + + /** * @brief Handle the accessibility action to move focus to the next focusable actor * (by one finger flick down). * @@ -310,20 +325,19 @@ public: bool HandleActionStartStopEvent(); public: // Not intended for application developers - /** * @brief Creates a handle using the Adaptor::Internal implementation. * * @param[in] adaptor The AccessibilityAdaptor implementation. */ - DALI_INTERNAL AccessibilityAdaptor( Internal::Adaptor::AccessibilityAdaptor& adaptor ); + DALI_INTERNAL AccessibilityAdaptor(Internal::Adaptor::AccessibilityAdaptor& adaptor); /** * @brief This constructor is used by AccessibilityAdaptor::Get(). * * @param[in] adaptor A pointer to the accessibility adaptor. */ - explicit DALI_INTERNAL AccessibilityAdaptor( Internal::Adaptor::AccessibilityAdaptor* adaptor ); + explicit DALI_INTERNAL AccessibilityAdaptor(Internal::Adaptor::AccessibilityAdaptor* adaptor); }; } // namespace Dali