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

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

Issue 2539503003: ARIA 1.1: implementation for aria-col-* and aria-row-*. (Closed)
Patch Set: Fix bad rebase Created 3 years, 11 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 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 case AX_ATTR_CHILD_TREE_ID: 51 case AX_ATTR_CHILD_TREE_ID:
52 case AX_ATTR_SET_SIZE: 52 case AX_ATTR_SET_SIZE:
53 case AX_ATTR_POS_IN_SET: 53 case AX_ATTR_POS_IN_SET:
54 case AX_ATTR_COLOR_VALUE: 54 case AX_ATTR_COLOR_VALUE:
55 case AX_ATTR_ARIA_CURRENT_STATE: 55 case AX_ATTR_ARIA_CURRENT_STATE:
56 case AX_ATTR_BACKGROUND_COLOR: 56 case AX_ATTR_BACKGROUND_COLOR:
57 case AX_ATTR_COLOR: 57 case AX_ATTR_COLOR:
58 case AX_ATTR_INVALID_STATE: 58 case AX_ATTR_INVALID_STATE:
59 case AX_ATTR_TEXT_DIRECTION: 59 case AX_ATTR_TEXT_DIRECTION:
60 case AX_ATTR_TEXT_STYLE: 60 case AX_ATTR_TEXT_STYLE:
61 case AX_ATTR_ARIA_COL_COUNT:
62 case AX_ATTR_ARIA_COL_INDEX:
63 case AX_ATTR_ARIA_ROW_COUNT:
64 case AX_ATTR_ARIA_ROW_INDEX:
61 return false; 65 return false;
62 } 66 }
63 67
64 NOTREACHED(); 68 NOTREACHED();
65 return false; 69 return false;
66 } 70 }
67 71
68 // Return true if |attr| contains a vector of node ids that would need 72 // Return true if |attr| contains a vector of node ids that would need
69 // to be mapped when renumbering the ids in a combined tree. 73 // to be mapped when renumbering the ids in a combined tree.
70 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) { 74 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Put the rewritten AXNodeData into the output data structure. 228 // Put the rewritten AXNodeData into the output data structure.
225 combined_.nodes.push_back(node); 229 combined_.nodes.push_back(node);
226 230
227 // Recurse into the child tree now, if any. 231 // Recurse into the child tree now, if any.
228 if (child_tree) 232 if (child_tree)
229 ProcessTree(child_tree); 233 ProcessTree(child_tree);
230 } 234 }
231 } 235 }
232 236
233 } // namespace ui 237 } // 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