Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
22
26
28 return id_;
29}
30
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
gfx::NativeViewAccessible GetParent() override
gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override
AlertPlatformNodeDelegate(ui::AXPlatformNodeDelegate &parent_delegate)
const ui::AXNodeData & GetData() const override
const ui::AXUniqueId & GetUniqueId() const override
virtual gfx::NativeViewAccessible GetNativeViewAccessible()=0
virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent()=0
int32_t Get() const
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