| Index: ui/accessibility/ax_serializable_tree.cc
|
| diff --git a/ui/accessibility/ax_serializable_tree.cc b/ui/accessibility/ax_serializable_tree.cc
|
| index 12bc595991b07c9bcdc92bc981446273e8d1064e..ca52ab39a23944731e8f5af4a4997ecc3b6b23fd 100644
|
| --- a/ui/accessibility/ax_serializable_tree.cc
|
| +++ b/ui/accessibility/ax_serializable_tree.cc
|
| @@ -20,6 +20,10 @@ class AX_EXPORT AXTreeSourceAdapter : public AXTreeSource<AXNode> {
|
| virtual ~AXTreeSourceAdapter() {}
|
|
|
| // AXTreeSource implementation.
|
| + virtual AXNode* GetRoot() const OVERRIDE {
|
| + return tree_->GetRoot();
|
| + }
|
| +
|
| virtual AXNode* GetFromId(int32 id) const OVERRIDE {
|
| return tree_->GetFromId(id);
|
| }
|
| @@ -37,11 +41,8 @@ class AX_EXPORT AXTreeSourceAdapter : public AXTreeSource<AXNode> {
|
| return node->ChildAtIndex(index);
|
| }
|
|
|
| - virtual int32 GetParentId(const AXNode* node) const OVERRIDE {
|
| - if (node->parent())
|
| - return node->parent()->id();
|
| - else
|
| - return 0;
|
| + virtual AXNode* GetParent(const AXNode* node) const OVERRIDE {
|
| + return node->parent();
|
| }
|
|
|
| virtual void SerializeNode(
|
|
|