5#include "flutter/lib/ui/semantics/string_attribute.h"
7#include "flutter/fml/logging.h"
8#include "flutter/lib/ui/ui_dart_state.h"
19NativeStringAttribute::NativeStringAttribute() {}
28 auto native_string_attribute = fml::MakeRefCounted<NativeStringAttribute>();
29 native_string_attribute->AssociateWithDartWrapper(string_attribute_handle);
31 native_string_attribute->attribute_ =
32 std::make_shared<SpellOutStringAttribute>();
33 native_string_attribute->attribute_->start =
start;
34 native_string_attribute->attribute_->end =
end;
44 auto native_string_attribute = fml::MakeRefCounted<NativeStringAttribute>();
45 native_string_attribute->AssociateWithDartWrapper(string_attribute_handle);
47 auto locale_attribute = std::make_shared<LocaleStringAttribute>();
48 locale_attribute->start =
start;
49 locale_attribute->end =
end;
51 locale_attribute->locale = std::move(locale);
52 native_string_attribute->attribute_ = locale_attribute;
The peer class for all of the StringAttribute subclasses in semantics.dart.
const StringAttributePtr GetAttribute() const
Returns the c++ representataion of StringAttribute.
~NativeStringAttribute() override
static void initSpellOutStringAttribute(Dart_Handle string_attribute_handle, int32_t start, int32_t end)
The init method for SpellOutStringAttribute constructor.
static void initLocaleStringAttribute(Dart_Handle string_attribute_handle, int32_t start, int32_t end, std::string locale)
The init method for LocaleStringAttribute constructor.
static void ThrowIfUIOperationsProhibited()
struct _Dart_Handle * Dart_Handle
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, FlutterGpuTestClass)
std::shared_ptr< flutter::StringAttribute > StringAttributePtr