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

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

Issue 2956053005: Keep track of fixed positioning in accessibility tree.
Patch Set: GetSimpleRelativeBounds, add failing test for fixed with transform Created 3 years, 5 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 | « third_party/WebKit/public/web/WebAXObject.h ('k') | ui/accessibility/ax_node.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_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
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
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_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebAXObject.h ('k') | ui/accessibility/ax_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698