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

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 1706353002: Added the selected text marker range to the dictionary for the selection change notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now works the first time you start the browser. Created 4 years, 10 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_cocoa.mm
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
index cc4735217e614309d0476ec4eaa602dc52d35a40..a03b9278e68f8176caae232213a2a2afe2a178ee 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -191,6 +191,7 @@ NSString* GetTextForTextMarkerRange(AXTextMarkerRangeRef marker_range) {
DCHECK(start_object && end_object);
DCHECK_GE(start_offset, 0);
DCHECK_GE(end_offset, 0);
+ LOG(ERROR) << "GetTextRange at " << start_offset << ' ' << end_offset << ' ' << [[start_object->ToBrowserAccessibilityCocoa() role] UTF8String];
dmazzoni 2016/02/18 21:16:42 nit: remove this before landing
return base::SysUTF16ToNSString(BrowserAccessibilityManager::GetTextForRange(
*start_object, start_offset, *end_object, end_offset));

Powered by Google App Engine
This is Rietveld 408576698