Flutter macOS Embedder
test_accessibility_bridge.cc
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
#include "
test_accessibility_bridge.h
"
6
7
namespace
flutter
{
8
9
std::shared_ptr<FlutterPlatformNodeDelegate>
10
TestAccessibilityBridge::CreateFlutterPlatformNodeDelegate
() {
11
return
std::make_unique<FlutterPlatformNodeDelegate>();
12
};
13
14
void
TestAccessibilityBridge::OnAccessibilityEvent
(
15
ui::AXEventGenerator::TargetedEvent targeted_event) {
16
accessibility_events
.push_back(targeted_event.event_params.event);
17
}
18
19
void
TestAccessibilityBridge::DispatchAccessibilityAction
(
20
AccessibilityNodeId
target,
21
FlutterSemanticsAction action,
22
fml::MallocMapping data) {
23
performed_actions
.push_back(action);
24
}
25
26
}
// namespace flutter
flutter::TestAccessibilityBridge::DispatchAccessibilityAction
void DispatchAccessibilityAction(AccessibilityNodeId target, FlutterSemanticsAction action, fml::MallocMapping data) override
Dispatch accessibility action back to the Flutter framework. These actions are generated in the nativ...
Definition:
test_accessibility_bridge.cc:19
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::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::AccessibilityNodeId
ui::AXNode::AXID AccessibilityNodeId
Definition:
flutter_platform_node_delegate.h:15
flutter
Definition:
AccessibilityBridgeMac.h:16
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
test_accessibility_bridge.h
shell
platform
common
test_accessibility_bridge.cc
Generated by
1.8.17