blob: 30f5f4dde7dc0696770d5b193f3c22713ddd74d9 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// 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 "ax/ax_enums.h"
#include "ax/ax_export.h"
namespace ui {
class AXPlatformNodeDelegate;
// Compute the attribute value instead of returning the "raw" attribute value
// for those attributes that have computation methods.
AX_EXPORT std::optional<int32_t> ComputeAttribute(
const ui::AXPlatformNodeDelegate* delegate,
ax::mojom::IntAttribute attribute);
} // namespace ui
#endif // UI_ACCESSIBILITY_PLATFORM_COMPUTE_ATTRIBUTES_H_