Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
compute_attributes.h
Go to the documentation of this file.
1// Copyright 2018 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#ifndef UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_
6#define UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_
7
8#include <cstddef>
9#include <optional>
10
11#include "ax/ax_enums.h"
12#include "ax/ax_export.h"
13
14namespace ui {
15
16class AXPlatformNodeDelegate;
17
18// Compute the attribute value instead of returning the "raw" attribute value
19// for those attributes that have computation methods.
20AX_EXPORT std::optional<int32_t> ComputeAttribute(
21 const ui::AXPlatformNodeDelegate* delegate,
22 ax::mojom::IntAttribute attribute);
23
24} // namespace ui
25
26#endif // UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_
#define AX_EXPORT
Definition ax_export.h:29
std::optional< int32_t > ComputeAttribute(const ui::AXPlatformNodeDelegate *delegate, ax::mojom::IntAttribute attribute)