blob: fa0f795411687e44864963e9b6073f549c78dc98 [file] [log] [blame]
// Copyright 2014 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.
#include <stdint.h>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/views_export.h"
namespace ui {
struct AXActionData;
struct AXNodeData;
class AXUniqueId;
} // namespace ui
namespace views {
// An interface abstraction for Aura views that exposes the view-tree formed
// by the implementing view types.
class VIEWS_EXPORT AXAuraObjWrapper {
virtual ~AXAuraObjWrapper() {}
// See ViewAccessibility for details.
virtual bool IsIgnored() = 0;
// Traversal and serialization.
virtual AXAuraObjWrapper* GetParent() = 0;
virtual void GetChildren(
std::vector<AXAuraObjWrapper*>* out_children) = 0;
virtual void Serialize(ui::AXNodeData* out_node_data) = 0;
virtual const ui::AXUniqueId& GetUniqueId() const = 0;
// Actions.
virtual bool HandleAccessibleAction(const ui::AXActionData& action);
} // namespace views