Index: ui/accessibility/platform/ax_platform_node_auralinux.cc |
diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.cc b/ui/accessibility/platform/ax_platform_node_auralinux.cc |
index 36aa4c91b18e1b82ed8a9c03e2937c100c93c5a4..6a85455134132f0d69d88725df2210e42dedb32c 100644 |
--- a/ui/accessibility/platform/ax_platform_node_auralinux.cc |
+++ b/ui/accessibility/platform/ax_platform_node_auralinux.cc |
@@ -190,8 +190,13 @@ static AtkStateSet* ax_platform_node_auralinux_ref_state_set( |
static gfx::Point FindAtkObjectParentCoords(AtkObject* atk_object) { |
if (atk_object_get_role(atk_object) == ATK_ROLE_WINDOW) { |
int x, y; |
+#if ATK_CHECK_VERSION(2, 12, 0) |
+ atk_component_get_extents(ATK_COMPONENT(atk_object), |
Adam Goode
2015/05/05 01:28:18
Just use atk_component_get_extents. It is present
|
+ &x, &y, nullptr, nullptr, ATK_XY_WINDOW); |
+#else |
atk_component_get_position(ATK_COMPONENT(atk_object), |
&x, &y, ATK_XY_WINDOW); |
+#endif |
gfx::Point window_coords(x, y); |
return window_coords; |
} |