Index: content/browser/accessibility/browser_accessibility_win.h |
diff --git a/content/browser/accessibility/browser_accessibility_win.h b/content/browser/accessibility/browser_accessibility_win.h |
index 1cd7b3c2c29391a61d2a82b5b338c4c9fe41ac96..c14d484341706e40d46dff752f4a940089ce5ad1 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.h |
+++ b/content/browser/accessibility/browser_accessibility_win.h |
@@ -766,6 +766,19 @@ BrowserAccessibilityWin |
void IntAttributeToIA2(ui::AXIntAttribute attribute, |
const char* ia2_attr); |
+ // Functions that help in retrieving hyperlinks. Return -1 in case of failure. |
+ // (Hyperlink is an IA2 misnomer. It refers to objects embedded within other |
+ // objects, such as a numbered list within a contenteditable div.) |
+ int32 GetHyperlinkIndexFromChild(const BrowserAccessibilityWin& child) const; |
+ int32 GetHypertextOffsetFromHyperlinkIndex(int32 hyperlink_index) const; |
+ |
+ // Functions that retrieve the end-points of the current selection. |
+ // First they check for a local selection found on the current control, e.g. |
+ // when querying the selection on a textarea. |
+ // If not found they retrieve the global selection found on the current frame. |
+ int32 GetSelectionStart() const; |
+ int32 GetSelectionEnd() const; |
+ |
// Append the accessible name from this node and its children. |
base::string16 GetNameRecursive() const; |
@@ -836,9 +849,11 @@ BrowserAccessibilityWin |
// Maps the |hypertext_| embedded character offset to an index in |
// |hyperlinks_|. |
+ // TODO(nektar): Replace map with vector of offsets. |
std::map<int32, int32> hyperlink_offset_to_index; |
// The id of a BrowserAccessibilityWin for each hyperlink. |
+ // TODO(nektar): Replace object IDs with child indices. |
std::vector<int32> hyperlinks; |
}; |