| Flutter Windows Embedder |

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::AlertPlatformNodeDelegate
AlertPlatformNodeDelegate(ui::AXPlatformNodeDelegate &parent_delegate)
Definition: alert_platform_node_delegate.cc:9
text
std::u16string text
Definition: keyboard_unittests.cc:332
flutter
Definition: accessibility_bridge_windows.cc:11