Flutter Engine
 
Loading...
Searching...
No Matches
semantics_update_builder.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_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_BUILDER_H_
6#define FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_BUILDER_H_
7
8#include <any>
9#include <list>
10
15
16namespace flutter {
17
19 : public RefCountedDartWrappable<SemanticsUpdateBuilder> {
20 DEFINE_WRAPPERTYPEINFO();
22
23 public:
24 static void Create(Dart_Handle wrapper) {
26 auto res = fml::MakeRefCounted<SemanticsUpdateBuilder>();
27 res->AssociateWithDartWrapper(wrapper);
28 }
29
31
32 void updateNode(
33 int id,
34 Dart_Handle flags,
35 int actions,
36 int maxValueLength,
37 int currentValueLength,
38 int textSelectionBase,
39 int textSelectionExtent,
40 int platformViewId,
41 int scrollChildren,
42 int scrollIndex,
43 double scrollPosition,
44 double scrollExtentMax,
45 double scrollExtentMin,
46 double left,
47 double top,
48 double right,
49 double bottom,
50 std::string identifier,
51 std::string label,
52 const std::vector<NativeStringAttribute*>& labelAttributes,
53 std::string value,
54 const std::vector<NativeStringAttribute*>& valueAttributes,
55 std::string increasedValue,
56 const std::vector<NativeStringAttribute*>& increasedValueAttributes,
57 std::string decreasedValue,
58 const std::vector<NativeStringAttribute*>& decreasedValueAttributes,
59 std::string hint,
60 const std::vector<NativeStringAttribute*>& hintAttributes,
61 std::string tooltip,
62 int textDirection,
63 const tonic::Float64List& transform,
64 const tonic::Int32List& childrenInTraversalOrder,
65 const tonic::Int32List& childrenInHitTestOrder,
66 const tonic::Int32List& customAccessibilityActions,
67 int headingLevel,
68 std::string linkUrl,
69 int role,
70 const std::vector<std::string>& controlsNodes,
71 int validationResult,
72 int hitTestBehavior,
73 int inputType,
74 std::string locale);
75
76 void updateCustomAction(int id,
77 std::string label,
78 std::string hint,
79 int overrideId);
80
81 void build(Dart_Handle semantics_update_handle);
82
83 private:
84 explicit SemanticsUpdateBuilder();
87};
88
89} // namespace flutter
90
91#endif // FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_BUILDER_H_
void build(Dart_Handle semantics_update_handle)
void updateCustomAction(int id, std::string label, std::string hint, int overrideId)
void updateNode(int id, Dart_Handle flags, int actions, int maxValueLength, int currentValueLength, int textSelectionBase, int textSelectionExtent, int platformViewId, int scrollChildren, int scrollIndex, double scrollPosition, double scrollExtentMax, double scrollExtentMin, double left, double top, double right, double bottom, std::string identifier, std::string label, const std::vector< NativeStringAttribute * > &labelAttributes, std::string value, const std::vector< NativeStringAttribute * > &valueAttributes, std::string increasedValue, const std::vector< NativeStringAttribute * > &increasedValueAttributes, std::string decreasedValue, const std::vector< NativeStringAttribute * > &decreasedValueAttributes, std::string hint, const std::vector< NativeStringAttribute * > &hintAttributes, std::string tooltip, int textDirection, const tonic::Float64List &transform, const tonic::Int32List &childrenInTraversalOrder, const tonic::Int32List &childrenInHitTestOrder, const tonic::Int32List &customAccessibilityActions, int headingLevel, std::string linkUrl, int role, const std::vector< std::string > &controlsNodes, int validationResult, int hitTestBehavior, int inputType, std::string locale)
static void Create(Dart_Handle wrapper)
static void ThrowIfUIOperationsProhibited()
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates
#define FML_FRIEND_MAKE_REF_COUNTED(T)