Merge "Implements CanvasRenderer that can draw Vector Primitives using ThorVG" into...
[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
24 struct DummyBridge : Dali::Accessibility::Bridge
25 {
26   static DummyBridge *GetInstance()
27   {
28     static DummyBridge instance;
29
30     return &instance;
31   }
32
33   const std::string& GetBusName() const override
34   {
35     static const std::string name = "";
36     return name;
37   }
38
39   void AddTopLevelWindow(Accessibility::Accessible*) override
40   {
41   }
42
43   void RemoveTopLevelWindow(Accessibility::Accessible*) override
44   {
45   }
46
47   void AddPopup(Accessibility::Accessible*) override
48   {
49   }
50
51   void RemovePopup(Accessibility::Accessible*) override
52   {
53   }
54
55   void SetApplicationName(std::string) override
56   {
57   }
58
59   Accessibility::Accessible* GetApplication() const override
60   {
61     return nullptr;
62   }
63
64   Accessibility::Accessible* FindByPath(const std::string& s) const override
65   {
66     return nullptr;
67   }
68
69   void ApplicationShown() override
70   {
71   }
72
73   void ApplicationHidden() override
74   {
75   }
76
77   void Initialize() override
78   {
79   }
80
81   void Terminate() override
82   {
83   }
84
85   ForceUpResult ForceUp() override
86   {
87     return ForceUpResult::JUST_STARTED;
88   }
89
90   void ForceDown() override
91   {
92   }
93
94   void EmitCaretMoved(Accessibility::Accessible* obj, unsigned int cursorPosition) override
95   {
96   }
97
98   void EmitActiveDescendantChanged(Accessibility::Accessible* obj, Accessibility::Accessible* child) override
99   {
100   }
101
102   void EmitTextChanged(Accessibility::Accessible* obj, Accessibility::TextChangedState state, unsigned int position, unsigned int length, const std::string& content) override
103   {
104   }
105
106   void EmitStateChanged(Accessibility::Accessible* obj, Accessibility::State state, int val1, int val2) override
107   {
108   }
109
110   void Emit(Accessibility::Accessible* obj, Accessibility::WindowEvent we, unsigned int detail1) override
111   {
112   }
113
114   void Emit(Accessibility::Accessible* obj, Accessibility::ObjectPropertyChangeEvent event) override
115   {
116   }
117
118   void EmitBoundsChanged(Accessibility::Accessible* obj, Rect<> rect) override
119   {
120   }
121
122   Accessibility::Consumed Emit(Accessibility::KeyEventType type, unsigned int keyCode, const std::string& keyName, unsigned int timeStamp, bool isText) override
123   {
124     return Accessibility::Consumed::YES;
125   }
126
127   void Say(const std::string& text, bool discardable, std::function<void(std::string)> callback) override
128   {
129   }
130
131   void Pause() override
132   {
133   }
134
135   void Resume() override
136   {
137   }
138
139   void StopReading(bool alsoNonDiscardable) override
140   {
141   }
142
143   bool GetScreenReaderEnabled() override
144   {
145     return false;
146   }
147
148   bool GetIsEnabled() override
149   {
150     return false;
151   }
152 };
153
154 } // namespace Dali::Accessibility