Index: content/browser/accessibility/browser_accessibility.h |
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h |
index 72f5cd5c041e5d8f288c809c2500ca627deabc2e..d6bbb7dad041c71e61e4d20ff51dacc0d029fa93 100644 |
--- a/content/browser/accessibility/browser_accessibility.h |
+++ b/content/browser/accessibility/browser_accessibility.h |
@@ -287,6 +287,9 @@ class CONTENT_EXPORT BrowserAccessibility { |
bool* is_defined, |
bool* is_mixed) const; |
+ virtual base::string16 GetText() const { return GetInnerText(); } |
+ size_t GetTextLength() const; |
+ |
// Returns true if the bit corresponding to the given state enum is 1. |
bool HasState(ui::AXState state_enum) const; |
@@ -296,9 +299,6 @@ class CONTENT_EXPORT BrowserAccessibility { |
// Returns true if the caret is active on this object. |
bool HasCaret() const; |
- // Returns true if this node is an editable text field of any kind. |
- bool IsEditableText() const; |
- |
// True if this is a web area, and its grandparent is a presentational iframe. |
bool IsWebAreaForPresentationalIframe() const; |
@@ -321,8 +321,12 @@ class CONTENT_EXPORT BrowserAccessibility { |
ui::AXNode* node_; |
private: |
+ // |GetInnerText| recursively includes all the text from descendants such as |
+ // text found in any embedded object. In contrast, |GetText| might include a |
+ // special character in the place of every embedded object instead of its |
+ // text, depending on the platform. |
base::string16 GetInnerText() const; |
- int GetInnerTextLength() const; |
+ size_t GetInnerTextLength() const; |
// If a bounding rectangle is empty, compute it based on the union of its |
// children, since most accessibility APIs don't like elements with no |