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

Unified Diff: ui/accessibility/ax_tree_source.h

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/ax_tree_serializer_unittest.cc ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_source.h
diff --git a/ui/accessibility/ax_tree_source.h b/ui/accessibility/ax_tree_source.h
index 383e70e3f0e25c15cbaab3ed132b50ff0f6a8b67..35bdbb711c811f7cb4385778280e9ba12a296032 100644
--- a/ui/accessibility/ax_tree_source.h
+++ b/ui/accessibility/ax_tree_source.h
@@ -21,14 +21,13 @@ template<class AXNodeSource>
class AX_EXPORT AXTreeSource {
public:
virtual ~AXTreeSource() {}
+ virtual AXNodeSource* GetRoot() const = 0;
virtual AXNodeSource* GetFromId(int32 id) const = 0;
virtual int32 GetId(const AXNodeSource* node) const = 0;
virtual int GetChildCount(const AXNodeSource* node) const = 0;
virtual AXNodeSource* GetChildAtIndex(const AXNodeSource* node, int index)
const = 0;
-
- // Returns the id of this node's parent, or 0 if it doesn't have a parent.
- virtual int32 GetParentId(const AXNodeSource* node) const = 0;
+ virtual AXNodeSource* GetParent(const AXNodeSource* node) const = 0;
// Serialize one node in the tree.
virtual void SerializeNode(
« no previous file with comments | « ui/accessibility/ax_tree_serializer_unittest.cc ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698