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

Unified Diff: ui/accessibility/ax_tree_data.h

Issue 2191833003: Use text affinity to return correct accessible line boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug in browser_accessibility_win.cc Created 4 years, 5 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 | « ui/accessibility/ax_text_utils_unittest.cc ('k') | ui/accessibility/ax_tree_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_data.h
diff --git a/ui/accessibility/ax_tree_data.h b/ui/accessibility/ax_tree_data.h
index 83a1589066652158dcb9b8429cdf34a4f6e441a3..36beba6857e40ba0c16fc8dc2d7cc7abe03bfa4c 100644
--- a/ui/accessibility/ax_tree_data.h
+++ b/ui/accessibility/ax_tree_data.h
@@ -56,11 +56,15 @@ struct AX_EXPORT AXTreeData {
// The current text selection within this tree, if any, expressed as the
// node ID and character offset of the anchor (selection start) and focus
- // (selection end).
+ // (selection end). If the offset could correspond to a position on two
+ // different lines, sel_upstream_affinity means the cursor is on the first
+ // line, otherwise it's on the second line.
int32_t sel_anchor_object_id;
int32_t sel_anchor_offset;
+ ui::AXTextAffinity sel_anchor_affinity;
int32_t sel_focus_object_id;
int32_t sel_focus_offset;
+ ui::AXTextAffinity sel_focus_affinity;
};
AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs);
« no previous file with comments | « ui/accessibility/ax_text_utils_unittest.cc ('k') | ui/accessibility/ax_tree_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698