Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
common
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
5
#include "
alert_platform_node_delegate.h
"
6
7
namespace
flutter
{
8
9
AlertPlatformNodeDelegate::AlertPlatformNodeDelegate
(
10
ui::AXPlatformNodeDelegate
& parent_delegate)
11
: parent_delegate_(parent_delegate) {
12
data_.
role
=
ax::mojom::Role::kAlert
;
13
data_.
id
= id_.
Get
();
14
}
15
16
AlertPlatformNodeDelegate::~AlertPlatformNodeDelegate
() {}
17
18
gfx::AcceleratedWidget
19
AlertPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent
() {
20
return
parent_delegate_.
GetTargetForNativeAccessibilityEvent
();
21
}
22
23
gfx::NativeViewAccessible
AlertPlatformNodeDelegate::GetParent
() {
24
return
parent_delegate_.
GetNativeViewAccessible
();
25
}
26
27
const
ui::AXUniqueId
&
AlertPlatformNodeDelegate::GetUniqueId
()
const
{
28
return
id_;
29
}
30
31
const
ui::AXNodeData
&
AlertPlatformNodeDelegate::GetData
()
const
{
32
return
data_;
33
}
34
35
void
AlertPlatformNodeDelegate::SetText
(
const
std::u16string&
text
) {
36
data_.
SetName
(
text
);
37
data_.
SetDescription
(
text
);
38
data_.
SetValue
(
text
);
39
}
40
41
}
// namespace flutter
alert_platform_node_delegate.h
flutter::AlertPlatformNodeDelegate::SetText
void SetText(const std::u16string &text)
Definition
alert_platform_node_delegate.cc:35
flutter::AlertPlatformNodeDelegate::~AlertPlatformNodeDelegate
~AlertPlatformNodeDelegate()
Definition
alert_platform_node_delegate.cc:16
flutter::AlertPlatformNodeDelegate::GetParent
gfx::NativeViewAccessible GetParent() override
Definition
alert_platform_node_delegate.cc:23
flutter::AlertPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent
gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override
Definition
alert_platform_node_delegate.cc:19
flutter::AlertPlatformNodeDelegate::AlertPlatformNodeDelegate
AlertPlatformNodeDelegate(ui::AXPlatformNodeDelegate &parent_delegate)
Definition
alert_platform_node_delegate.cc:9
flutter::AlertPlatformNodeDelegate::GetData
const ui::AXNodeData & GetData() const override
Definition
alert_platform_node_delegate.cc:31
flutter::AlertPlatformNodeDelegate::GetUniqueId
const ui::AXUniqueId & GetUniqueId() const override
Definition
alert_platform_node_delegate.cc:27
ui::AXPlatformNodeDelegate
Definition
ax_platform_node_delegate.h:60
ui::AXPlatformNodeDelegate::GetNativeViewAccessible
virtual gfx::NativeViewAccessible GetNativeViewAccessible()=0
ui::AXPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent
virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent()=0
ui::AXUniqueId
Definition
ax_unique_id.h:25
ui::AXUniqueId::Get
int32_t Get() const
Definition
ax_unique_id.h:30
text
std::u16string text
Definition
keyboard_unittests.cc:332
ax::mojom::Role::kAlert
@ kAlert
flutter
Definition
asset_manager.cc:10
gfx::NativeViewAccessible
UnimplementedNativeViewAccessible * NativeViewAccessible
Definition
native_widget_types.h:225
ui::AXNodeData
Definition
ax_node_data.h:33
ui::AXNodeData::SetValue
void SetValue(const std::string &value)
Definition
ax_node_data.cc:628
ui::AXNodeData::SetName
void SetName(const std::string &name)
Definition
ax_node_data.cc:569
ui::AXNodeData::SetDescription
void SetDescription(const std::string &description)
Definition
ax_node_data.cc:620
ui::AXNodeData::id
int32_t id
Definition
ax_node_data.h:276
ui::AXNodeData::role
ax::mojom::Role role
Definition
ax_node_data.h:277
Generated on Fri Apr 26 2024 06:14:23 for Flutter Engine by
1.9.8