| Flutter iOS Embedder |

test_accessibility_bridge.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_TEST_ACCESSIBILITY_BRIDGE_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_TEST_ACCESSIBILITY_BRIDGE_H_
7
8 #include "accessibility_bridge.h"
9
10 namespace flutter {
11
12 class TestAccessibilityBridge : public AccessibilityBridge {
13 public:
14 TestAccessibilityBridge() = default;
15
16 void DispatchAccessibilityAction(AccessibilityNodeId target,
17 FlutterSemanticsAction action,
18 fml::MallocMapping data) override;
19
20 std::vector<ui::AXEventGenerator::Event> accessibility_events;
21 std::vector<FlutterSemanticsAction> performed_actions;
22
23 protected:
24 void OnAccessibilityEvent(
25 ui::AXEventGenerator::TargetedEvent targeted_event) override;
26
27 std::shared_ptr<FlutterPlatformNodeDelegate>
28 CreateFlutterPlatformNodeDelegate() override;
29 };
30
31 } // namespace flutter
32
33 #endif // FLUTTER_SHELL_PLATFORM_COMMON_TEST_ACCESSIBILITY_BRIDGE_H_
flutter::TestAccessibilityBridge::DispatchAccessibilityAction
void DispatchAccessibilityAction(AccessibilityNodeId target, FlutterSemanticsAction action, fml::MallocMapping data) override
Definition: test_accessibility_bridge.cc:19
action
SemanticsAction action
Definition: SemanticsObjectTestMocks.h:21
flutter::TestAccessibilityBridge::CreateFlutterPlatformNodeDelegate
std::shared_ptr< FlutterPlatformNodeDelegate > CreateFlutterPlatformNodeDelegate() override
Creates a platform specific FlutterPlatformNodeDelegate. Ownership passes to the caller....
Definition: test_accessibility_bridge.cc:10
flutter::AccessibilityBridge
Definition: accessibility_bridge.h:38
flutter::TestAccessibilityBridge::TestAccessibilityBridge
TestAccessibilityBridge()=default
flutter::TestAccessibilityBridge::OnAccessibilityEvent
void OnAccessibilityEvent(ui::AXEventGenerator::TargetedEvent targeted_event) override
Handle accessibility events generated due to accessibility tree changes. These events are needed to b...
Definition: test_accessibility_bridge.cc:14
flutter::TestAccessibilityBridge
Definition: test_accessibility_bridge.h:12
flutter::AccessibilityNodeId
ui::AXNode::AXID AccessibilityNodeId
Definition: flutter_platform_node_delegate.h:15
flutter
Definition: accessibility_bridge.h:28
flutter::TestAccessibilityBridge::performed_actions
std::vector< FlutterSemanticsAction > performed_actions
Definition: test_accessibility_bridge.h:21
flutter::TestAccessibilityBridge::accessibility_events
std::vector< ui::AXEventGenerator::Event > accessibility_events
Definition: test_accessibility_bridge.h:20
accessibility_bridge.h