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

Side by Side 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, 4 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_AX_TREE_DATA_H_ 5 #ifndef UI_ACCESSIBILITY_AX_TREE_DATA_H_
6 #define UI_ACCESSIBILITY_AX_TREE_DATA_H_ 6 #define UI_ACCESSIBILITY_AX_TREE_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 std::string mimetype; 49 std::string mimetype;
50 std::string title; 50 std::string title;
51 std::string url; 51 std::string url;
52 52
53 // The node with keyboard focus within this tree, if any, or -1 if no node 53 // The node with keyboard focus within this tree, if any, or -1 if no node
54 // in this tree has focus. 54 // in this tree has focus.
55 int32_t focus_id; 55 int32_t focus_id;
56 56
57 // The current text selection within this tree, if any, expressed as the 57 // The current text selection within this tree, if any, expressed as the
58 // node ID and character offset of the anchor (selection start) and focus 58 // node ID and character offset of the anchor (selection start) and focus
59 // (selection end). 59 // (selection end). If the offset could correspond to a position on two
60 // different lines, sel_upstream_affinity means the cursor is on the first
61 // line, otherwise it's on the second line.
60 int32_t sel_anchor_object_id; 62 int32_t sel_anchor_object_id;
61 int32_t sel_anchor_offset; 63 int32_t sel_anchor_offset;
64 ui::AXTextAffinity sel_anchor_affinity;
62 int32_t sel_focus_object_id; 65 int32_t sel_focus_object_id;
63 int32_t sel_focus_offset; 66 int32_t sel_focus_offset;
67 ui::AXTextAffinity sel_focus_affinity;
64 }; 68 };
65 69
66 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs); 70 AX_EXPORT bool operator==(const AXTreeData& lhs, const AXTreeData& rhs);
67 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs); 71 AX_EXPORT bool operator!=(const AXTreeData& lhs, const AXTreeData& rhs);
68 72
69 } // namespace ui 73 } // namespace ui
70 74
71 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_ 75 #endif // UI_ACCESSIBILITY_AX_TREE_DATA_H_
OLDNEW
« 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