Flutter Engine
 
Loading...
Searching...
No Matches
platform_view_android_delegate.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_ANDROID_PLATFORM_VIEW_ANDROID_DELEGATE_PLATFORM_VIEW_ANDROID_DELEGATE_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_VIEW_ANDROID_DELEGATE_PLATFORM_VIEW_ANDROID_DELEGATE_H_
7
8#include <memory>
9#include <string>
10#include <vector>
11
14
15namespace flutter {
16
18 public:
19 static constexpr size_t kBytesPerNode =
20 52 * sizeof(int32_t); // The # fields in SemanticsNode
21 static constexpr size_t kBytesPerChild = sizeof(int32_t);
22 static constexpr size_t kBytesPerCustomAction = sizeof(int32_t);
23 static constexpr size_t kBytesPerAction = 4 * sizeof(int32_t);
24 static constexpr size_t kBytesPerStringAttribute = 4 * sizeof(int32_t);
25 static constexpr int kEmptyStringIndex = -1;
27 std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
28 void UpdateSemantics(
31
32 private:
33 const std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
34};
35} // namespace flutter
36
37#endif // FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_VIEW_ANDROID_DELEGATE_PLATFORM_VIEW_ANDROID_DELEGATE_H_
void UpdateSemantics(const flutter::SemanticsNodeUpdates &update, const flutter::CustomAccessibilityActionUpdates &actions)
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates