| OLD | NEW |
| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 uint32_t actions; | 125 uint32_t actions; |
| 126 std::vector<std::pair<AXStringAttribute, std::string>> string_attributes; | 126 std::vector<std::pair<AXStringAttribute, std::string>> string_attributes; |
| 127 std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes; | 127 std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes; |
| 128 std::vector<std::pair<AXFloatAttribute, float>> float_attributes; | 128 std::vector<std::pair<AXFloatAttribute, float>> float_attributes; |
| 129 std::vector<std::pair<AXBoolAttribute, bool>> bool_attributes; | 129 std::vector<std::pair<AXBoolAttribute, bool>> bool_attributes; |
| 130 std::vector<std::pair<AXIntListAttribute, std::vector<int32_t>>> | 130 std::vector<std::pair<AXIntListAttribute, std::vector<int32_t>>> |
| 131 intlist_attributes; | 131 intlist_attributes; |
| 132 base::StringPairs html_attributes; | 132 base::StringPairs html_attributes; |
| 133 std::vector<int32_t> child_ids; | 133 std::vector<int32_t> child_ids; |
| 134 | 134 |
| 135 // TODO(dmazzoni): replace the following three members with a single | 135 // TODO(dmazzoni): replace the following four members with a single |
| 136 // instance of AXRelativeBounds. | 136 // instance of AXRelativeBounds. |
| 137 | 137 |
| 138 // The id of an ancestor node in the same AXTree that this object's | 138 // The id of an ancestor node in the same AXTree that this object's |
| 139 // bounding box is relative to, or -1 if there's no offset container. | 139 // bounding box is relative to, or -1 if there's no offset container. |
| 140 int offset_container_id; | 140 int offset_container_id; |
| 141 | 141 |
| 142 // The relative bounding box of this node. | 142 // The relative bounding box of this node. |
| 143 gfx::RectF location; | 143 gfx::RectF location; |
| 144 | 144 |
| 145 // If true, the container's scroll position should be ignored. |
| 146 bool is_fixed_positioned; |
| 147 |
| 145 // An additional transform to apply to position this object and its subtree. | 148 // An additional transform to apply to position this object and its subtree. |
| 146 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform | 149 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform |
| 147 // takes up a fair amount of space. The assignment operator and copy | 150 // takes up a fair amount of space. The assignment operator and copy |
| 148 // constructor both make a duplicate of the owned pointer, so it acts more | 151 // constructor both make a duplicate of the owned pointer, so it acts more |
| 149 // like a member than a pointer. | 152 // like a member than a pointer. |
| 150 std::unique_ptr<gfx::Transform> transform; | 153 std::unique_ptr<gfx::Transform> transform; |
| 151 }; | 154 }; |
| 152 | 155 |
| 153 } // namespace ui | 156 } // namespace ui |
| 154 | 157 |
| 155 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 158 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
| OLD | NEW |