| 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_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_NODE_H_ |
| 6 #define UI_ACCESSIBILITY_AX_NODE_H_ | 6 #define UI_ACCESSIBILITY_AX_NODE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Update this node's location. This is separate from SetData just because | 43 // Update this node's location. This is separate from SetData just because |
| 44 // changing only the location is common and should be more efficient than | 44 // changing only the location is common and should be more efficient than |
| 45 // re-copying all of the data. | 45 // re-copying all of the data. |
| 46 // | 46 // |
| 47 // The node's location is stored as a relative bounding box, the ID of | 47 // The node's location is stored as a relative bounding box, the ID of |
| 48 // the element it's relative to, and an optional transformation matrix. | 48 // the element it's relative to, and an optional transformation matrix. |
| 49 // See ax_node_data.h for details. | 49 // See ax_node_data.h for details. |
| 50 void SetLocation(int offset_container_id, | 50 void SetLocation(int offset_container_id, |
| 51 const gfx::RectF& location, | 51 const gfx::RectF& location, |
| 52 gfx::Transform* transform); | 52 gfx::Transform* transform, |
| 53 bool is_fixed_positioned); |
| 53 | 54 |
| 54 // Set the index in parent, for example if siblings were inserted or deleted. | 55 // Set the index in parent, for example if siblings were inserted or deleted. |
| 55 void SetIndexInParent(int index_in_parent); | 56 void SetIndexInParent(int index_in_parent); |
| 56 | 57 |
| 57 // Swap the internal children vector with |children|. This instance | 58 // Swap the internal children vector with |children|. This instance |
| 58 // now owns all of the passed children. | 59 // now owns all of the passed children. |
| 59 void SwapChildren(std::vector<AXNode*>& children); | 60 void SwapChildren(std::vector<AXNode*>& children); |
| 60 | 61 |
| 61 // This is called when the AXTree no longer includes this node in the | 62 // This is called when the AXTree no longer includes this node in the |
| 62 // tree. Reference counting is used on some platforms because the | 63 // tree. Reference counting is used on some platforms because the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 | 81 |
| 81 int index_in_parent_; | 82 int index_in_parent_; |
| 82 AXNode* parent_; | 83 AXNode* parent_; |
| 83 std::vector<AXNode*> children_; | 84 std::vector<AXNode*> children_; |
| 84 AXNodeData data_; | 85 AXNodeData data_; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace ui | 88 } // namespace ui |
| 88 | 89 |
| 89 #endif // UI_ACCESSIBILITY_AX_NODE_H_ | 90 #endif // UI_ACCESSIBILITY_AX_NODE_H_ |
| OLD | NEW |