Flutter Engine
The Flutter Engine
third_party
accessibility
ax
platform
ax_platform_node_delegate_utils_win.cc
Go to the documentation of this file.
1
// Copyright 2019 The Chromium 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 "
ax_platform_node_delegate_utils_win.h
"
6
7
#include "
ax/ax_node_data.h
"
8
#include "
ax/ax_role_properties.h
"
9
#include "
ax/platform/ax_platform_node.h
"
10
#include "
ax/platform/ax_platform_node_delegate.h
"
11
12
namespace
ui
{
13
14
bool
IsValuePatternSupported
(
AXPlatformNodeDelegate
* delegate) {
15
// https://docs.microsoft.com/en-us/windows/desktop/winauto/uiauto-implementingvalue
16
// The Value control pattern is used to support controls that have an
17
// intrinsic value not spanning a range and that can be represented as
18
// a string.
19
//
20
// IValueProvider must be implemented by controls such as the color picker
21
// selection control [...]
22
23
// https://www.w3.org/TR/html-aam-1.0/
24
// The HTML AAM maps "href [a; area]" to UIA Value.Value
25
return
delegate->
GetData
().
IsRangeValueSupported
() ||
26
IsReadOnlySupported
(delegate->
GetData
().
role
) ||
27
IsLink
(delegate->
GetData
().
role
) ||
28
delegate->
GetData
().
role
==
ax::mojom::Role::kColorWell
||
29
delegate->
IsCellOrHeaderOfARIAGrid
();
30
}
31
32
}
// namespace ui
ax_node_data.h
ax_platform_node.h
ax_platform_node_delegate.h
ax_platform_node_delegate_utils_win.h
ax_role_properties.h
ui::AXPlatformNodeDelegate
Definition:
ax_platform_node_delegate.h:60
ui::AXPlatformNodeDelegate::IsCellOrHeaderOfARIAGrid
virtual bool IsCellOrHeaderOfARIAGrid() const =0
ui::AXPlatformNodeDelegate::GetData
virtual const AXNodeData & GetData() const =0
ax::mojom::Role::kColorWell
@ kColorWell
ui
Definition:
window_binding_handler.h:18
ui::IsValuePatternSupported
bool IsValuePatternSupported(AXPlatformNodeDelegate *delegate)
Definition:
ax_platform_node_delegate_utils_win.cc:14
ui::IsReadOnlySupported
bool IsReadOnlySupported(const ax::mojom::Role role)
Definition:
ax_role_properties.cc:431
ui::IsLink
bool IsLink(const ax::mojom::Role role)
Definition:
ax_role_properties.cc:327
ui::AXNodeData::IsRangeValueSupported
bool IsRangeValueSupported() const
Definition:
ax_node_data.cc:1046
ui::AXNodeData::role
ax::mojom::Role role
Definition:
ax_node_data.h:277
Generated on Sun Jun 23 2024 21:55:20 for Flutter Engine by
1.9.4