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 30af849e26bcd596fd9449eaca97388b14ff83ca..16956fb4c5526c37aa4d8ecbbc34626acb4104b0 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.h |
+++ b/content/browser/accessibility/browser_accessibility_win.h |
@@ -743,6 +743,11 @@ BrowserAccessibilityWin |
return win_attributes_->hyperlinks; |
} |
+ protected: |
+ // |offset| could either be a text character or a child index in case of |
+ // non-text objects. |
+ AXPlatformPositionInstance CreatePositionAt(int offset) const override; |
+ |
private: |
// Returns the IA2 text attributes for this object. |
std::vector<base::string16> ComputeTextAttributes() const; |
@@ -783,6 +788,9 @@ BrowserAccessibilityWin |
FRIEND_TEST_ALL_PREFIXES(BrowserAccessibilityTest, |
TestSanitizeStringAttributeForIA2); |
+ // Sets the selection given a start and end offset in IA2 Hypertext. |
+ void SetIA2HypertextSelection(LONG start_offset, LONG end_offset); |
+ |
// If the string attribute |attribute| is present, add its value as an |
// IAccessible2 attribute with the name |ia2_attr|. |
void StringAttributeToIA2(ui::AXStringAttribute attribute, |
@@ -858,7 +866,7 @@ BrowserAccessibilityWin |
// If offset is a member of IA2TextSpecialOffsets this function updates the |
// value of offset and returns, otherwise offset remains unchanged. |
- void HandleSpecialTextOffset(const base::string16& text, LONG* offset); |
+ void HandleSpecialTextOffset(LONG* offset); |
// Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); |