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

Unified Diff: ui/views/accessibility/ax_window_obj_wrapper.cc

Issue 2745213002: Update automation API when aura window bounds changes. (Closed)
Patch Set: Created 3 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/views/accessibility/ax_window_obj_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/ax_window_obj_wrapper.cc
diff --git a/ui/views/accessibility/ax_window_obj_wrapper.cc b/ui/views/accessibility/ax_window_obj_wrapper.cc
index c1059476a0ad88a89a17ffe2c6f5810deebb40be..b2d80b9b325660f2dacb1a17f8d089a50cd1890c 100644
--- a/ui/views/accessibility/ax_window_obj_wrapper.cc
+++ b/ui/views/accessibility/ax_window_obj_wrapper.cc
@@ -76,4 +76,14 @@ void AXWindowObjWrapper::OnWindowHierarchyChanged(
AXAuraObjCache::GetInstance()->Remove(params.target, params.old_parent);
}
+void AXWindowObjWrapper::OnWindowBoundsChanged(aura::Window* window,
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) {
+ Widget* widget = Widget::GetWidgetForNativeView(window);
+ if (widget) {
+ widget->GetRootView()->NotifyAccessibilityEvent(
+ ui::AX_EVENT_LOCATION_CHANGED, true);
+ }
+}
+
} // namespace views
« no previous file with comments | « ui/views/accessibility/ax_window_obj_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698