1 #ifndef __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H__
2 #define __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H__
5 * Copyright (c) 2015 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 <accessibility-adaptor.h>
23 #include <accessibility-action-handler.h>
24 #include <accessibility-gesture-handler.h>
25 #include <indicator-interface.h>
26 #include <accessibility-gesture-detector.h>
27 #include <accessibility-adaptor-impl.h>
39 * This mobile version is different since it forwards events to the indicator.
41 class AccessibilityAdaptorMobile : public AccessibilityAdaptor
48 AccessibilityAdaptorMobile();
50 // From AccessibilityAdaptor base class
53 * @copydoc Dali::AccessibilityAdaptor::HandleActionNextEvent()
55 virtual bool HandleActionNextEvent( bool allowEndFeedback );
58 * @copydoc Dali::AccessibilityAdaptor::HandleActionPreviousEvent()
60 virtual bool HandleActionPreviousEvent( bool allowEndFeedback );
63 * @copydoc Dali::AccessibilityAdaptor::HandleActionActivateEvent()
65 virtual bool HandleActionActivateEvent();
68 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadEvent()
70 virtual bool HandleActionReadEvent( unsigned int x, unsigned int y, bool allowReadAgain );
73 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadNextEvent()
75 virtual bool HandleActionReadNextEvent( bool allowEndFeedback );
78 * @copydoc Dali::AccessibilityAdaptor::HandleActionReadPreviousEvent()
80 virtual bool HandleActionReadPreviousEvent( bool allowEndFeedback );
83 * @copydoc Dali::AccessibilityAdaptor::HandleActionUpEvent()
85 virtual bool HandleActionUpEvent();
88 * @copydoc Dali::AccessibilityAdaptor::HandleActionDownEvent()
90 virtual bool HandleActionDownEvent();
97 virtual ~AccessibilityAdaptorMobile();
100 AccessibilityAdaptorMobile( const AccessibilityAdaptorMobile& );
101 AccessibilityAdaptorMobile& operator=( AccessibilityAdaptorMobile& );
105 // Helpers for public-api forwarding methods
107 inline static Internal::Adaptor::AccessibilityAdaptorMobile& GetImplementation(Dali::AccessibilityAdaptor& adaptor)
109 DALI_ASSERT_ALWAYS( adaptor && "AccessibilityAdaptorMobile handle is empty" );
111 BaseObject& handle = adaptor.GetBaseObject();
113 return static_cast<Internal::Adaptor::AccessibilityAdaptorMobile&>(handle);
116 inline static const Internal::Adaptor::AccessibilityAdaptorMobile& GetImplementation(const Dali::AccessibilityAdaptor& adaptor)
118 DALI_ASSERT_ALWAYS( adaptor && "AccessibilityAdaptorMobile handle is empty" );
120 const BaseObject& handle = adaptor.GetBaseObject();
122 return static_cast<const Internal::Adaptor::AccessibilityAdaptorMobile&>(handle);
127 } // namespace Adaptor
129 } // namespace Internal
133 #endif // __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_MOBILE_H__