Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
6
7#include "ax/ax_node_data.h"
11
12namespace ui {
13
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) ||
29 delegate->IsCellOrHeaderOfARIAGrid();
30}
31
32} // namespace ui
virtual bool IsCellOrHeaderOfARIAGrid() const =0
virtual const AXNodeData & GetData() const =0
bool IsValuePatternSupported(AXPlatformNodeDelegate *delegate)
bool IsReadOnlySupported(const ax::mojom::Role role)
bool IsLink(const ax::mojom::Role role)
bool IsRangeValueSupported() const
ax::mojom::Role role