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

Unified Diff: ui/accessibility/ax_node.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/ax_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node.h
diff --git a/ui/accessibility/ax_node.h b/ui/accessibility/ax_node.h
index 54e443d9f1a84b7abb21b54feb867d81d20e37fc..e1415910c8275c7d09ea887fd9370d25b2c9c82b 100644
--- a/ui/accessibility/ax_node.h
+++ b/ui/accessibility/ax_node.h
@@ -44,7 +44,13 @@ class AX_EXPORT AXNode {
// Update this node's location. This is separate from SetData just because
// changing only the location is common and should be more efficient than
// re-copying all of the data.
- void SetLocation(const gfx::RectF& new_location);
+ //
+ // The node's location is stored as a relative bounding box, the ID of
+ // the element it's relative to, and an optional transformation matrix.
+ // See ax_node_data.h for details.
+ void SetLocation(int offset_container_id,
+ const gfx::RectF& location,
+ gfx::Transform* transform);
// Set the index in parent, for example if siblings were inserted or deleted.
void SetIndexInParent(int index_in_parent);
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/ax_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698