Flutter Engine
The Flutter Engine
alert_platform_node_delegate.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
6
7namespace flutter {
8
10 ui::AXPlatformNodeDelegate& parent_delegate)
11 : parent_delegate_(parent_delegate) {
13 data_.id = id_.Get();
14}
15
17
18gfx::AcceleratedWidget
19AlertPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent() {
20 return parent_delegate_.GetTargetForNativeAccessibilityEvent();
21}
22
24 return parent_delegate_.GetNativeViewAccessible();
25}
26
27const ui::AXUniqueId& AlertPlatformNodeDelegate::GetUniqueId() const {
28 return id_;
29}
30
31const ui::AXNodeData& AlertPlatformNodeDelegate::GetData() const {
32 return data_;
33}
34
35void AlertPlatformNodeDelegate::SetText(const std::u16string& text) {
36 data_.SetName(text);
37 data_.SetDescription(text);
38 data_.SetValue(text);
39}
40
41} // namespace flutter
void SetText(const std::u16string &text)
gfx::NativeViewAccessible GetParent() override
AlertPlatformNodeDelegate(ui::AXPlatformNodeDelegate &parent_delegate)
virtual gfx::NativeViewAccessible GetNativeViewAccessible()=0
virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent()=0
int32_t Get() const
Definition: ax_unique_id.h:30
std::u16string text
UnimplementedNativeViewAccessible * NativeViewAccessible
void SetValue(const std::string &value)
void SetName(const std::string &name)
void SetDescription(const std::string &description)
ax::mojom::Role role
Definition: ax_node_data.h:277