5a00f8c492121bcfc4926cf36401cbaffa0dd648
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-accessibility-adaptor.h
1 // Prevent normal accessibility adaptor declaration from loading
2 #define __DALI_ACCESSIBILITY_ADAPTOR_H__
3
4 #ifndef __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
5 #define __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__
6
7 /*
8  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 // EXTERNAL INCLUDES
25 #include <string>
26 #include <dali/public-api/object/base-handle.h>
27 #include <dali/public-api/events/touch-point.h>
28
29 namespace Dali
30 {
31 namespace Internal
32 {
33 namespace Adaptor
34 {
35 class AccessibilityAdaptor;
36 }
37 }
38 class AccessibilityActionHandler;
39 class AccessibilityGestureHandler;
40 class TouchPoint;
41
42 /**
43  * This creates a stubbed AccessibilityAdaptor so that internal Toolkit Adaptor calls work.
44  */
45 class AccessibilityAdaptor : public BaseHandle
46 {
47 public: // Construction & Destruction
48   AccessibilityAdaptor();
49   ~AccessibilityAdaptor();
50
51 public: // Getters
52   static AccessibilityAdaptor Get();
53   Vector2 GetReadPosition() const;
54   bool IsEnabled() const;
55   void SetActionHandler(AccessibilityActionHandler& handler);
56   void SetGestureHandler(AccessibilityGestureHandler& handler);
57   bool HandleActionNextEvent();
58   bool HandleActionPreviousEvent();
59   bool HandleActionActivateEvent();
60   bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
61   bool HandleActionReadNextEvent();
62   bool HandleActionReadPreviousEvent();
63   bool HandleActionUpEvent();
64   bool HandleActionDownEvent();
65   bool HandleActionClearFocusEvent();
66   bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
67   bool HandleActionBackEvent();
68   void HandleActionEnableEvent();
69   void HandleActionDisableEvent();
70   bool HandleActionScrollUpEvent();
71   bool HandleActionScrollDownEvent();
72   bool HandleActionPageLeftEvent();
73   bool HandleActionPageRightEvent();
74   bool HandleActionPageUpEvent();
75   bool HandleActionPageDownEvent();
76   bool HandleActionMoveToFirstEvent();
77   bool HandleActionMoveToLastEvent();
78   bool HandleActionReadFromTopEvent();
79   bool HandleActionReadFromNextEvent();
80   bool HandleActionZoomEvent();
81   bool HandleActionReadIndicatorInformationEvent();
82   bool HandleActionReadPauseResumeEvent();
83   bool HandleActionStartStopEvent();
84
85   AccessibilityAdaptor( Internal::Adaptor::AccessibilityAdaptor* adaptor );
86 };
87
88 } // namespace Dali
89
90 #endif // __DALI_TOOLKIT_ACCESSIBILITY_ADAPTOR_H__