Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ui/accessibility/ax_serializable_tree.cc

Issue 90853002: Make tree serialization more robust and add more unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename update0 to unused_update Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/ax_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/ax_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698