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

Unified Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 660633002: Fixed IAccessibleText::TextAtOffset with IA2_TEXT_BOUNDARY_WORD to return text that spans from the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: 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 1f47d7af4c158a52478bbe5fa7c9c34c40fdd9b0..a885c511c8fc386a35c165af797952b5297d2c2c 100644
--- a/content/browser/accessibility/browser_accessibility_win.h
+++ b/content/browser/accessibility/browser_accessibility_win.h
@@ -833,6 +833,12 @@ BrowserAccessibilityWin
LONG start_offset,
ui::TextBoundaryDirection direction);
+ // Searches in the given text and from the given offset until the start of
+ // the next or previous word is found and returns its position.
+ LONG FindWordStartBoundary(const base::string16& text,
+ LONG start_offset,
+ ui::TextBoundaryDirection direction);
+
// Return a pointer to the object corresponding to the given id,
// does not make a new reference.
BrowserAccessibilityWin* GetFromID(int32 id);

Powered by Google App Engine
This is Rietveld 408576698