blob: ab6c6ccd72f232ea8ab42f2a4f72adf5c0228da8 [file]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_
#define UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_
#include <cstddef>
#include <optional>
#include "base/component_export.h"
#include "ui/accessibility/ax_enums.mojom-forward.h"
namespace ui {
class AXPlatformNodeDelegate;
// Compute the attribute value instead of returning the "raw" attribute value
// for those attributes that have computation methods.
COMPONENT_EXPORT(AX_PLATFORM)
std::optional<int32_t> ComputeAttribute(const AXPlatformNodeDelegate* delegate,
ax::mojom::IntAttribute attribute);
} // namespace ui
#endif // UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_