OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 CONTENT_PUBLIC_COMMON_AX_NODE_H_ | |
6 #define CONTENT_PUBLIC_COMMON_AX_NODE_H_ | |
7 | |
8 #include "content/public/common/ax_node_data.h" | |
9 | |
10 namespace content { | |
11 | |
12 class AXTree; | |
13 | |
14 // One node in an AXTree. The accessibility information is all in | |
15 // data(); the rest of the interface is to walk the tree. | |
16 class CONTENT_EXPORT AXNode { | |
17 public: | |
18 // Accessors. | |
David Tseng
2013/11/11 18:43:51
The traversal API mirrors some of the same functio
dmazzoni
2013/11/12 00:03:04
Hmmm, good point.
The only reason AXTree provides
| |
19 virtual int32 GetId() const = 0; | |
20 virtual AXNode* GetParent() const = 0; | |
21 virtual int GetChildCount() const = 0; | |
22 virtual AXNode* ChildAtIndex(int index) const = 0; | |
23 virtual const AXNodeData& data() const = 0; | |
24 | |
25 protected: | |
26 AXNode(); | |
27 virtual ~AXNode(); | |
28 }; | |
29 | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_COMMON_AX_NODE_H_ | |
OLD | NEW |