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

Side by Side Diff: ui/accessibility/ax_tree_combiner.cc

Issue 1905263002: Correctly finds line boundaries in objects with rich text on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed standard text fields in unit test. Created 4 years, 7 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_node_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ui/accessibility/ax_tree.h" 5 #include "ui/accessibility/ax_tree.h"
6 #include "ui/accessibility/ax_tree_combiner.h" 6 #include "ui/accessibility/ax_tree_combiner.h"
7 #include "ui/gfx/geometry/rect_f.h" 7 #include "ui/gfx/geometry/rect_f.h"
8 8
9 namespace ui { 9 namespace ui {
10 namespace { 10 namespace {
11 11
12 // Return true if |attr| is a node ID that would need to be mapped when 12 // Return true if |attr| is a node ID that would need to be mapped when
13 // renumbering the ids in a combined tree. 13 // renumbering the ids in a combined tree.
14 bool IsNodeIdIntAttribute(AXIntAttribute attr) { 14 bool IsNodeIdIntAttribute(AXIntAttribute attr) {
15 switch (attr) { 15 switch (attr) {
16 case AX_ATTR_ACTIVEDESCENDANT_ID: 16 case AX_ATTR_ACTIVEDESCENDANT_ID:
17 case AX_ATTR_NEXT_ON_LINE_ID:
18 case AX_ATTR_PREVIOUS_ON_LINE_ID:
17 case AX_ATTR_TABLE_HEADER_ID: 19 case AX_ATTR_TABLE_HEADER_ID:
18 case AX_ATTR_TABLE_COLUMN_HEADER_ID: 20 case AX_ATTR_TABLE_COLUMN_HEADER_ID:
19 case AX_ATTR_TABLE_ROW_HEADER_ID: 21 case AX_ATTR_TABLE_ROW_HEADER_ID:
20 return true; 22 return true;
21 23
22 // Note: all of the attributes are included here explicitly, 24 // Note: all of the attributes are included here explicitly,
23 // rather than using "default:", so that it's a compiler error to 25 // rather than using "default:", so that it's a compiler error to
24 // add a new attribute without explicitly considering whether it's 26 // add a new attribute without explicitly considering whether it's
25 // a node id attribute or not. 27 // a node id attribute or not.
26 case AX_INT_ATTRIBUTE_NONE: 28 case AX_INT_ATTRIBUTE_NONE:
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Recurse into the child tree now, if any. 231 // Recurse into the child tree now, if any.
230 if (child_tree) 232 if (child_tree)
231 ProcessTree(child_tree); 233 ProcessTree(child_tree);
232 } 234 }
233 235
234 // Reset the transform. 236 // Reset the transform.
235 transform_ = old_transform; 237 transform_ = old_transform;
236 } 238 }
237 239
238 } // namespace ui 240 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698