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/platform/ax_platform_node_win.cc

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_tree_data.cc ('k') | no next file » | 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 #include <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <limits.h> 7 #include <limits.h>
8 #include <oleacc.h> 8 #include <oleacc.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 1139
1140 LONG AXPlatformNodeWin::FindBoundary( 1140 LONG AXPlatformNodeWin::FindBoundary(
1141 const base::string16& text, 1141 const base::string16& text,
1142 IA2TextBoundaryType ia2_boundary, 1142 IA2TextBoundaryType ia2_boundary,
1143 LONG start_offset, 1143 LONG start_offset,
1144 ui::TextBoundaryDirection direction) { 1144 ui::TextBoundaryDirection direction) {
1145 HandleSpecialTextOffset(text, &start_offset); 1145 HandleSpecialTextOffset(text, &start_offset);
1146 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); 1146 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary);
1147 std::vector<int32_t> line_breaks; 1147 std::vector<int32_t> line_breaks;
1148 return static_cast<LONG>(ui::FindAccessibleTextBoundary( 1148 return static_cast<LONG>(ui::FindAccessibleTextBoundary(
1149 text, line_breaks, boundary, start_offset, direction)); 1149 text, line_breaks, boundary, start_offset, direction,
1150 AX_TEXT_AFFINITY_DOWNSTREAM));
1150 } 1151 }
1151 1152
1152 } // namespace ui 1153 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_tree_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698