-#ifndef __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
-#define __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
+#ifndef DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H
+#define DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
#include <dali/public-api/object/base-object.h>
#include <dali/public-api/math/vector2.h>
-#include <dali/public-api/events/touch-point.h>
+#include <dali/devel-api/events/touch-point.h>
#include <dali/integration-api/events/touch-event-combiner.h>
// INTERNAL INCLUDES
bool IsEnabled() const;
/**
+ * @copydoc Dali::AccessibilityAdaptor::SetForcedEnable()
+ */
+ void SetForcedEnable( bool forced );
+
+ /**
+ * Whether the accessibility is enabled forcibly or not
+ */
+ bool IsForcedEnable() const;
+
+ /**
* @copydoc Dali::AccessibilityAdaptor::GetReadPosition() const
*/
Vector2 GetReadPosition() const;
/**
* @copydoc Dali::AccessibilityAdaptor::HandleActionScrollEvent()
*/
- bool HandleActionScrollEvent(const TouchPoint& point, unsigned long timeStamp);
-
- /**
- * @copydoc Dali::AccessibilityAdaptor::HandleActionTouchEvent()
- */
- bool HandleActionTouchEvent(const TouchPoint& point, unsigned long timeStamp);
+ bool HandleActionScrollEvent(const TouchPoint& point, uint32_t timeStamp);
/**
* @copydoc Dali::AccessibilityAdaptor::HandleActionBackEvent()
/**
* Destructor.
*/
- virtual ~AccessibilityAdaptor();
+ ~AccessibilityAdaptor() override;
private:
bool mIsEnabled : 1; ///< enable/disable the accessibility action
+ bool mIsForced : 1; ///< Is the accessibility enabled forcibly
+
public:
// Helpers for public-api forwarding methods
} // namespace Dali
-#endif // __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
+#endif // DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H