1 #ifndef DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H
2 #define DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H
5 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/devel-api/adaptor-framework/accessibility-adaptor.h>
23 #include <dali/devel-api/adaptor-framework/accessibility-action-handler.h>
24 #include <dali/devel-api/adaptor-framework/accessibility-gesture-handler.h>
25 #include <dali/internal/accessibility/common/accessibility-gesture-detector.h>
26 #include <dali/internal/accessibility/common/accessibility-adaptor-impl.h>
38 * This mobile version is different since it forwards events to the indicator.
40 class AccessibilityAdaptorMobile : public AccessibilityAdaptor
47 AccessibilityAdaptorMobile();
49 // From AccessibilityAdaptor base class
52 * @copydoc Dali::AccessibilityAdaptor::HandleActionNextEvent()
54 virtual bool HandleActionNextEvent( bool allowEndFeedback );
57 * @copydoc Dali::AccessibilityAdaptor::HandleActionPreviousEvent()
59 virtual bool HandleActionPreviousEvent( bool allowEndFeedback );
62 * @copydoc Dali::AccessibilityAdaptor::HandleActionActivateEvent()
64 virtual bool HandleActionActivateEvent();
67 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadEvent()
69 virtual bool HandleActionReadEvent( unsigned int x, unsigned int y, bool allowReadAgain );
72 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadNextEvent()
74 virtual bool HandleActionReadNextEvent( bool allowEndFeedback );
77 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadPreviousEvent()
79 virtual bool HandleActionReadPreviousEvent( bool allowEndFeedback );
82 * @copydoc Dali::AccessibilityAdaptor::HandleActionUpEvent()
84 virtual bool HandleActionUpEvent();
87 * @copydoc Dali::AccessibilityAdaptor::HandleActionDownEvent()
89 virtual bool HandleActionDownEvent();
96 virtual ~AccessibilityAdaptorMobile();
99 AccessibilityAdaptorMobile( const AccessibilityAdaptorMobile& );
100 AccessibilityAdaptorMobile& operator=( AccessibilityAdaptorMobile& );
104 // Helpers for public-api forwarding methods
106 inline static Internal::Adaptor::AccessibilityAdaptorMobile& GetImplementation(Dali::AccessibilityAdaptor& adaptor)
108 DALI_ASSERT_ALWAYS( adaptor && "AccessibilityAdaptorMobile handle is empty" );
110 BaseObject& handle = adaptor.GetBaseObject();
112 return static_cast<Internal::Adaptor::AccessibilityAdaptorMobile&>(handle);
115 inline static const Internal::Adaptor::AccessibilityAdaptorMobile& GetImplementation(const Dali::AccessibilityAdaptor& adaptor)
117 DALI_ASSERT_ALWAYS( adaptor && "AccessibilityAdaptorMobile handle is empty" );
119 const BaseObject& handle = adaptor.GetBaseObject();
121 return static_cast<const Internal::Adaptor::AccessibilityAdaptorMobile&>(handle);
126 } // namespace Adaptor
128 } // namespace Internal
132 #endif // DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H