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

Unified Diff: content/public/common/ax_node.h

Issue 67283004: First step to move common accessibility code out of content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactored AXTreeImpl::UpdateNode Created 7 years, 1 month 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
Index: content/public/common/ax_node.h
diff --git a/content/public/common/ax_node.h b/content/public/common/ax_node.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce0f0113dbda760329e9b6911e177a20f591f633
--- /dev/null
+++ b/content/public/common/ax_node.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_AX_NODE_H_
+#define CONTENT_PUBLIC_COMMON_AX_NODE_H_
+
+#include "content/public/common/ax_node_data.h"
+
+namespace content {
+
+class AXTree;
+
+// One node in an AXTree. The accessibility information is all in
+// data(); the rest of the interface is to walk the tree.
+class CONTENT_EXPORT AXNode {
+ public:
+ // Accessors.
+ virtual int32 GetId() const = 0;
+ virtual AXNode* GetParent() const = 0;
+ virtual int GetChildCount() const = 0;
+ virtual AXNode* ChildAtIndex(int index) const = 0;
+ virtual const AXNodeData& data() const = 0;
+
+ protected:
+ AXNode();
+ virtual ~AXNode();
+};
+
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_AX_NODE_H_

Powered by Google App Engine
This is Rietveld 408576698