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

Unified Diff: ui/accessibility/ax_node_data.h

Issue 1713723002: Implement accessibility support for CSS-transformed iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build Created 4 years, 9 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_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.h
diff --git a/ui/accessibility/ax_node_data.h b/ui/accessibility/ax_node_data.h
index 16168aadc09e5076a39aaf0a909948f948daa20d..f44618192d84ad38e41e5f283b7c03aaeb8e45af 100644
--- a/ui/accessibility/ax_node_data.h
+++ b/ui/accessibility/ax_node_data.h
@@ -17,6 +17,10 @@
#include "ui/accessibility/ax_export.h"
#include "ui/gfx/geometry/rect.h"
+namespace gfx {
+class Transform;
+};
+
namespace ui {
// A compact representation of the accessibility information for a
@@ -102,7 +106,6 @@ struct AX_EXPORT AXNodeData {
int32_t id;
AXRole role;
uint32_t state;
- gfx::Rect location;
std::vector<std::pair<AXStringAttribute, std::string> > string_attributes;
std::vector<std::pair<AXIntAttribute, int32_t>> int_attributes;
std::vector<std::pair<AXFloatAttribute, float> > float_attributes;
@@ -111,6 +114,16 @@ struct AX_EXPORT AXNodeData {
intlist_attributes;
base::StringPairs html_attributes;
std::vector<int32_t> child_ids;
+
+ // The object's location relative to its window or frame.
+ gfx::Rect location;
+
+ // An additional transform to apply to position this object and its subtree.
+ // NOTE: this member is a scoped_ptr because it's rare and gfx::Transform
+ // takes up a fair amount of space. The assignment operator and copy
+ // constructor both make a duplicate of the owned pointer, so it acts more
+ // like a member than a pointer.
+ scoped_ptr<gfx::Transform> transform;
};
} // namespace ui
« no previous file with comments | « ui/accessibility/accessibility.gyp ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698