mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* implement iOS text field editing in a11y mode * address Chinmay's comments * replace node in child list when changing type
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_H_
|
|
#define FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_H_
|
|
|
|
#include "flutter/lib/ui/semantics/semantics_node.h"
|
|
#include "lib/tonic/dart_wrappable.h"
|
|
|
|
namespace tonic {
|
|
class DartLibraryNatives;
|
|
} // namespace tonic
|
|
|
|
namespace blink {
|
|
|
|
class SemanticsUpdate : public fxl::RefCountedThreadSafe<SemanticsUpdate>,
|
|
public tonic::DartWrappable {
|
|
DEFINE_WRAPPERTYPEINFO();
|
|
FRIEND_MAKE_REF_COUNTED(SemanticsUpdate);
|
|
|
|
public:
|
|
~SemanticsUpdate() override;
|
|
static fxl::RefPtr<SemanticsUpdate> create(SemanticsNodeUpdates nodes);
|
|
|
|
SemanticsNodeUpdates takeNodes();
|
|
|
|
void dispose();
|
|
|
|
static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
|
|
|
private:
|
|
explicit SemanticsUpdate(SemanticsNodeUpdates nodes);
|
|
|
|
SemanticsNodeUpdates nodes_;
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_H_
|