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

Unified Diff: ui/accessibility/ax_node.h

Issue 2745713002: WIP: Modified AXPosition to work with objects with both embedded object characters and text. (Closed)
Patch Set: Created 3 years, 9 months 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: ui/accessibility/ax_node.h
diff --git a/ui/accessibility/ax_node.h b/ui/accessibility/ax_node.h
index 195d6f3cc5eb1920f0f1cd8dc66fb4369471aa2c..6dd907f5a3f9e347c8a65aa8983a0cc2182c4932 100644
--- a/ui/accessibility/ax_node.h
+++ b/ui/accessibility/ax_node.h
@@ -33,6 +33,9 @@ class AX_EXPORT AXNode {
// Get the child at the given index.
AXNode* ChildAtIndex(int index) const { return children_[index]; }
+ // Returns true if the node has any of the text related roles.
+ bool IsTextNode() const;
+
// Set the node's accessibility data. This may be done during initial
// initialization or later when the node data changes.
void SetData(const AXNodeData& src);

Powered by Google App Engine
This is Rietveld 408576698