diff options
Diffstat (limited to 'chromium/ui/accessibility/ax_tree_source.h')
-rw-r--r-- | chromium/ui/accessibility/ax_tree_source.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/ui/accessibility/ax_tree_source.h b/chromium/ui/accessibility/ax_tree_source.h index 357bfccf6f4..057441e6bc0 100644 --- a/chromium/ui/accessibility/ax_tree_source.h +++ b/chromium/ui/accessibility/ax_tree_source.h @@ -9,6 +9,9 @@ #include <vector> +#include "ui/accessibility/ax_node_data.h" +#include "ui/accessibility/ax_tree_data.h" + namespace ui { // An AXTreeSource is an abstract interface for a serializable @@ -19,7 +22,7 @@ namespace ui { // as an AXNodeData. This is the primary interface to use when // an accessibility tree will be sent over an IPC before being // consumed. -template<typename AXNodeSource, typename AXNodeData, typename AXTreeData> +template <typename AXNodeSource> class AXTreeSource { public: virtual ~AXTreeSource() {} @@ -32,10 +35,10 @@ class AXTreeSource { // Get a node by its id. If no node by that id exists in the tree, return a // null node, i.e. one that will return false if you call IsValid on it. - virtual AXNodeSource GetFromId(int32_t id) const = 0; + virtual AXNodeSource GetFromId(AXNodeID id) const = 0; // Return the id of a node. All ids must be positive integers. - virtual int32_t GetId(AXNodeSource node) const = 0; + virtual AXNodeID GetId(AXNodeSource node) const = 0; // Append all children of |node| to |out_children|. virtual void GetChildren(AXNodeSource node, @@ -72,7 +75,7 @@ class AXTreeSource { // discovers that a node previously in the tree is no longer part of // the tree. It can be used to allow an AXTreeSource to keep a cache // indexed by node ID and delete nodes when they're no longer needed. - virtual void SerializerClearedNode(int32_t node_id) {} + virtual void SerializerClearedNode(AXNodeID node_id) {} protected: AXTreeSource() {} |