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

Side by Side Diff: ui/accessibility/ax_node_data.h

Issue 2217363002: Use relative bounding boxes throughout Chrome accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback from aboxhall 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_node.cc ('k') | ui/accessibility/ax_node_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NODE_DATA_H_ 5 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_
6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ 6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 uint32_t state; 106 uint32_t state;
107 std::vector<std::pair<AXStringAttribute, std::string>> string_attributes; 107 std::vector<std::pair<AXStringAttribute, std::string>> string_attributes;
108 std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes; 108 std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes;
109 std::vector<std::pair<AXFloatAttribute, float>> float_attributes; 109 std::vector<std::pair<AXFloatAttribute, float>> float_attributes;
110 std::vector<std::pair<AXBoolAttribute, bool>> bool_attributes; 110 std::vector<std::pair<AXBoolAttribute, bool>> bool_attributes;
111 std::vector<std::pair<AXIntListAttribute, std::vector<int32_t>>> 111 std::vector<std::pair<AXIntListAttribute, std::vector<int32_t>>>
112 intlist_attributes; 112 intlist_attributes;
113 base::StringPairs html_attributes; 113 base::StringPairs html_attributes;
114 std::vector<int32_t> child_ids; 114 std::vector<int32_t> child_ids;
115 115
116 // The object's location relative to its window or frame. 116 // TODO(dmazzoni): replace the following three members with a single
117 // instance of AXRelativeBounds.
118
119 // The id of an ancestor node in the same AXTree that this object's
120 // bounding box is relative to, or -1 if there's no offset container.
121 int offset_container_id;
122
123 // The relative bounding box of this node.
117 gfx::RectF location; 124 gfx::RectF location;
118 125
119 // An additional transform to apply to position this object and its subtree. 126 // An additional transform to apply to position this object and its subtree.
120 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform 127 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform
121 // takes up a fair amount of space. The assignment operator and copy 128 // takes up a fair amount of space. The assignment operator and copy
122 // constructor both make a duplicate of the owned pointer, so it acts more 129 // constructor both make a duplicate of the owned pointer, so it acts more
123 // like a member than a pointer. 130 // like a member than a pointer.
124 std::unique_ptr<gfx::Transform> transform; 131 std::unique_ptr<gfx::Transform> transform;
125 }; 132 };
126 133
127 } // namespace ui 134 } // namespace ui
128 135
129 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ 136 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698