Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
accessibility_plugin.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_WINDOWS_ACCESSIBILITY_PLUGIN_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_ACCESSIBILITY_PLUGIN_H_
7
8#include <string_view>
9
10#include "flutter/fml/macros.h"
11#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
12
13namespace flutter {
14
15class FlutterWindowsEngine;
16
17// Handles messages on the flutter/accessibility channel.
18//
19// See:
20// https://api.flutter.dev/flutter/semantics/SemanticsService-class.html
22 public:
24
25 // Begin handling accessibility messages on the `binary_messenger`.
26 static void SetUp(BinaryMessenger* binary_messenger,
27 AccessibilityPlugin* plugin);
28
29 // Announce a message through the assistive technology.
30 virtual void Announce(const std::string_view message);
31
32 private:
33 // The engine that owns this plugin.
34 FlutterWindowsEngine* engine_ = nullptr;
35
37};
38
39} // namespace flutter
40
41#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_ACCESSIBILITY_PLUGIN_H_
virtual void Announce(const std::string_view message)
static void SetUp(BinaryMessenger *binary_messenger, AccessibilityPlugin *plugin)
FlutterEngine engine
Definition main.cc:68
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
Win32Message message