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

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: fixed standard text fields. 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84415e1785bf7386e20290f7178d57c1dd5d4550..daa45b0501bc69ce662578c95baffa826a9278e1 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -1775,11 +1775,10 @@ bool InitializeAccessibilityTreeSearch(
return nil;
DCHECK(object);
- if (object->IsTextOnlyObject() &&
+ if ((object->IsSimpleTextControl() || object->IsTextOnlyObject()) &&
offset < static_cast<int>(object->GetText().length())) {
++offset;
} else {
- offset = 0;
while (object &&
!(object->IsTextOnlyObject() && object->GetText().length() == 0)) {
object = BrowserAccessibilityManager::NextTextOnlyObject(object);
@@ -1800,7 +1799,8 @@ bool InitializeAccessibilityTreeSearch(
return nil;
DCHECK(object);
- if (object->IsTextOnlyObject() && offset > 0) {
+ if ((object->IsSimpleTextControl() || object->IsTextOnlyObject()) &&
+ offset > 0) {
--offset;
} else {
while (object &&
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698