Index: ui/accessibility/ax_tree.h |
diff --git a/ui/accessibility/ax_tree.h b/ui/accessibility/ax_tree.h |
index 6d04a556bda3140cd65fdbadebeb376400d64ddb..3027125e36e594c4f4f8636b1512b45db4c02604 100644 |
--- a/ui/accessibility/ax_tree.h |
+++ b/ui/accessibility/ax_tree.h |
@@ -91,8 +91,10 @@ class AX_EXPORT AXTree { |
virtual void SetDelegate(AXTreeDelegate* delegate); |
- virtual AXNode* GetRoot() const; |
- virtual AXNode* GetFromId(int32 id) const; |
+ AXNode* root() const { return root_; } |
+ |
+ // Returns the AXNode with the given |id| if it is part of this AXTree. |
+ AXNode* GetFromId(int32 id) const; |
// Returns true on success. If it returns false, it's a fatal error |
// and this tree should be destroyed, and the source of the tree update |