Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
semantics_update.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 "flutter/lib/ui/semantics/semantics_update.h"
6
7#include <memory>
8
9#include "flutter/lib/ui/painting/matrix.h"
10#include "flutter/lib/ui/semantics/semantics_update_builder.h"
11#include "flutter/lib/ui/ui_dart_state.h"
16
17namespace flutter {
18
20
21void SemanticsUpdate::create(Dart_Handle semantics_update_handle,
24 auto semantics_update = fml::MakeRefCounted<SemanticsUpdate>(
25 std::move(nodes), std::move(actions));
26 semantics_update->AssociateWithDartWrapper(semantics_update_handle);
27}
28
29SemanticsUpdate::SemanticsUpdate(SemanticsNodeUpdates nodes,
31 : nodes_(std::move(nodes)), actions_(std::move(actions)) {}
32
34
36 return std::move(nodes_);
37}
38
42
46
47} // namespace flutter
static void create(Dart_Handle semantics_update_handle, SemanticsNodeUpdates nodes, CustomAccessibilityActionUpdates actions)
SemanticsNodeUpdates takeNodes()
CustomAccessibilityActionUpdates takeActions()
struct _Dart_Handle * Dart_Handle
Definition dart_api.h:258
#define IMPLEMENT_WRAPPERTYPEINFO(LibraryName, ClassName)
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates
Definition ref_ptr.h:256