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

Unified Diff: content/browser/accessibility/browser_accessibility.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: Broke up different boundary tests in their own test cases. Created 6 years, 1 month 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.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 6318e64b53d57043757c69a01388ca5c0e63c35f..447ec158fa3d1d8c0ff6b86b410214c3fa8158b5 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -22,6 +22,10 @@
@class BrowserAccessibilityCocoa;
#endif
+namespace ui {
+enum TextBoundaryDirection;
+}
+
namespace content {
class BrowserAccessibilityManager;
#if defined(OS_WIN)
@@ -112,6 +116,11 @@ class CONTENT_EXPORT BrowserAccessibility {
// the role is WebAXRoleStaticText.
gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
+ // 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.
+ int GetWordStartBoundary(
+ int start, ui::TextBoundaryDirection direction) const;
+
// Returns the deepest descendant that contains the specified point
// (in global screen coordinates).
BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point);

Powered by Google App Engine
This is Rietveld 408576698