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