diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-12 09:13:00 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-16 09:58:26 +0000 |
commit | 03561cae90f1d99b5c54b1ef3be69f10e882b25e (patch) | |
tree | cc5f0958e823c044e7ae51cc0117fe51432abe5e /chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc | |
parent | fa98118a45f7e169f8846086dc2c22c49a8ba310 (diff) | |
download | qtwebengine-chromium-03561cae90f1d99b5c54b1ef3be69f10e882b25e.tar.gz |
BASELINE: Update Chromium to 88.0.4324.208
Change-Id: I3ae87d23e4eff4b4a469685658740a213600c667
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc')
-rw-r--r-- | chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc b/chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc index 2a44e03fafe..ba49fe98b82 100644 --- a/chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc +++ b/chromium/ui/accessibility/platform/ax_platform_node_delegate_base.cc @@ -63,6 +63,21 @@ base::string16 AXPlatformNodeDelegateBase::GetInnerText() const { return inner_text; } +base::string16 AXPlatformNodeDelegateBase::GetValueForControl() const { + if (!IsControl(GetData().role) && !GetData().IsRangeValueSupported()) + return base::string16(); + + base::string16 value = + GetData().GetString16Attribute(ax::mojom::StringAttribute::kValue); + float numeric_value; + if (GetData().IsRangeValueSupported() && value.empty() && + GetData().GetFloatAttribute(ax::mojom::FloatAttribute::kValueForRange, + &numeric_value)) { + value = base::NumberToString16(numeric_value); + } + return value; +} + const AXTree::Selection AXPlatformNodeDelegateBase::GetUnignoredSelection() const { return AXTree::Selection{-1, -1, -1, ax::mojom::TextAffinity::kDownstream}; @@ -149,7 +164,7 @@ bool AXPlatformNodeDelegateBase::IsToplevelBrowserWindow() { return false; } -bool AXPlatformNodeDelegateBase::IsChildOfPlainTextField() const { +bool AXPlatformNodeDelegateBase::IsDescendantOfPlainTextField() const { return false; } |