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

Unified Diff: ui/accessibility/ax_node.cc

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/ax_node.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node.cc
diff --git a/ui/accessibility/ax_node.cc b/ui/accessibility/ax_node.cc
index 462e4e860eb1cc156ebfb8493d19e8740fd43c44..a0e53fad6a25f2f6d91bd4dabc1ab238437450ee 100644
--- a/ui/accessibility/ax_node.cc
+++ b/ui/accessibility/ax_node.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "ui/accessibility/ax_node.h"
+#include "ui/gfx/transform.h"
namespace ui {
@@ -18,8 +19,15 @@ void AXNode::SetData(const AXNodeData& src) {
data_ = src;
}
-void AXNode::SetLocation(const gfx::RectF& new_location) {
- data_.location = new_location;
+void AXNode::SetLocation(int offset_container_id,
+ const gfx::RectF& location,
+ gfx::Transform* transform) {
+ data_.offset_container_id = offset_container_id;
+ data_.location = location;
+ if (transform)
+ data_.transform.reset(new gfx::Transform(*transform));
+ else
+ data_.transform.reset(nullptr);
}
void AXNode::SetIndexInParent(int index_in_parent) {
« no previous file with comments | « ui/accessibility/ax_node.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698