Merge branch 'devel/master' into tizen_6.5
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / bridge / dummy-atspi.h
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include <dali/devel-api/adaptor-framework/accessibility-impl.h>
19 #include <dali/devel-api/adaptor-framework/accessibility.h>
20
21 namespace Dali::Accessibility
22 {
23 struct DummyBridge : Dali::Accessibility::Bridge
24 {
25   static DummyBridge* GetInstance()
26   {
27     static DummyBridge instance;
28
29     return &instance;
30   }
31
32   const std::string& GetBusName() const override
33   {
34     static const std::string name = "";
35     return name;
36   }
37
38   void AddTopLevelWindow(Accessibility::Accessible* object) override
39   {
40   }
41
42   void RemoveTopLevelWindow(Accessibility::Accessible* object) override
43   {
44   }
45
46   void AddPopup(Accessibility::Accessible* object) override
47   {
48   }
49
50   void RemovePopup(Accessibility::Accessible* object) override
51   {
52   }
53
54   void SetApplicationName(std::string name) override
55   {
56   }
57
58   Accessibility::Accessible* GetApplication() const override
59   {
60     return nullptr;
61   }
62
63   Accessibility::Accessible* FindByPath(const std::string& path) const override
64   {
65     return nullptr;
66   }
67
68   void WindowShown(Window window) override
69   {
70   }
71
72   void WindowHidden(Window window) override
73   {
74   }
75
76   void WindowFocused(Window window) override
77   {
78   }
79
80   void WindowUnfocused(Window window) override
81   {
82   }
83
84   void Initialize() override
85   {
86   }
87
88   void Terminate() override
89   {
90   }
91
92   ForceUpResult ForceUp() override
93   {
94     return ForceUpResult::JUST_STARTED;
95   }
96
97   void ForceDown() override
98   {
99   }
100
101   void EmitCursorMoved(Accessibility::Accessible* obj, unsigned int cursorPosition) override
102   {
103   }
104
105   void EmitActiveDescendantChanged(Accessibility::Accessible* obj, Accessibility::Accessible* child) override
106   {
107   }
108
109   void EmitTextChanged(Accessibility::Accessible* obj, Accessibility::TextChangedState state, unsigned int position, unsigned int length, const std::string& content) override
110   {
111   }
112
113   void EmitMovedOutOfScreen(Accessibility::Accessible* obj, ScreenRelativeMoveType type) override
114   {
115   }
116
117   void EmitStateChanged(Accessibility::Accessible* obj, Accessibility::State state, int newValue, int reserved) override
118   {
119   }
120
121   void Emit(Accessibility::Accessible* obj, Accessibility::WindowEvent event, unsigned int detail) override
122   {
123   }
124
125   void Emit(Accessibility::Accessible* obj, Accessibility::ObjectPropertyChangeEvent event) override
126   {
127   }
128
129   void EmitBoundsChanged(Accessibility::Accessible* obj, Rect<> rect) override
130   {
131   }
132
133   Accessibility::Consumed Emit(Accessibility::KeyEventType type, unsigned int keyCode, const std::string& keyName, unsigned int timeStamp, bool isText) override
134   {
135     return Accessibility::Consumed::YES;
136   }
137
138   void Say(const std::string& text, bool discardable, std::function<void(std::string)> callback) override
139   {
140   }
141
142   void Pause() override
143   {
144   }
145
146   void Resume() override
147   {
148   }
149
150   void StopReading(bool alsoNonDiscardable) override
151   {
152   }
153
154   void SuppressScreenReader(bool suppress) override
155   {
156   }
157
158   bool GetScreenReaderEnabled() override
159   {
160     return false;
161   }
162
163   bool IsEnabled() override
164   {
165     return false;
166   }
167 };
168
169 } // namespace Dali::Accessibility