Flutter Engine
The Flutter Engine
ax_platform_tree_manager.h
Go to the documentation of this file.
1// Copyright 2019 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_AX_PLATFORM_TREE_MANAGER_H_
6#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_TREE_MANAGER_H_
7
8#include "ax/ax_export.h"
9#include "ax/ax_node.h"
10#include "ax/ax_tree_id.h"
11#include "ax/ax_tree_manager.h"
12
13namespace ui {
14
15class AXPlatformNode;
16class AXPlatformNodeDelegate;
17
18// Abstract interface for a class that owns an AXTree and manages its
19// connections to other AXTrees in the same page or desktop (parent and child
20// trees).
22 public:
23 virtual ~AXPlatformTreeManager() = default;
24
25 // Returns an AXPlatformNode with the specified and |node_id|.
27 const AXNode::AXID node_id) const = 0;
28
29 // Returns an AXPlatformNode that corresponds to the given |node|.
30 virtual AXPlatformNode* GetPlatformNodeFromTree(const AXNode& node) const = 0;
31
32 // Returns an AXPlatformNodeDelegate that corresponds to a root node
33 // of the accessibility tree.
35};
36
37} // namespace ui
38
39#endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_TREE_MANAGER_H_
#define AX_EXPORT
Definition: ax_export.h:29
int32_t AXID
Definition: ax_node.h:36
virtual AXPlatformNode * GetPlatformNodeFromTree(const AXNode &node) const =0
virtual AXPlatformNodeDelegate * RootDelegate() const =0
virtual ~AXPlatformTreeManager()=default
virtual AXPlatformNode * GetPlatformNodeFromTree(const AXNode::AXID node_id) const =0