summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authork.czech <k.czech@samsung.com>2015-05-05 09:29:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-05 16:29:56 +0000
commit6913c9e026db9028b91b1182dfc11a905f591b09 (patch)
tree67b1b617f51b3a49197cbefc8a5ef02c036b6cf2 /ui
parent38778d63759066ad7c5bc222f2b509b3ff90ad71 (diff)
downloadchromium_src-6913c9e026db9028b91b1182dfc11a905f591b09.zip
chromium_src-6913c9e026db9028b91b1182dfc11a905f591b09.tar.gz
chromium_src-6913c9e026db9028b91b1182dfc11a905f591b09.tar.bz2
Use atk_component_get_extents instead of atk_component_get_position.
atk_component_get_position is deprecated since 2.12 BUG=463671 Review URL: https://codereview.chromium.org/1122553002 Cr-Commit-Position: refs/heads/master@{#328339}
Diffstat (limited to 'ui')
-rw-r--r--ui/accessibility/platform/ax_platform_node_auralinux.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.cc b/ui/accessibility/platform/ax_platform_node_auralinux.cc
index 36aa4c9..9686bf5 100644
--- a/ui/accessibility/platform/ax_platform_node_auralinux.cc
+++ b/ui/accessibility/platform/ax_platform_node_auralinux.cc
@@ -190,8 +190,8 @@ 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;
- atk_component_get_position(ATK_COMPONENT(atk_object),
- &x, &y, ATK_XY_WINDOW);
+ atk_component_get_extents(ATK_COMPONENT(atk_object),
+ &x, &y, nullptr, nullptr, ATK_XY_WINDOW);
gfx::Point window_coords(x, y);
return window_coords;
}