| Index: ui/views/accessibility/ax_aura_obj_cache.h
|
| diff --git a/ui/views/accessibility/ax_aura_obj_cache.h b/ui/views/accessibility/ax_aura_obj_cache.h
|
| index 1e54de78e1971258c190cfc6fc7ac1b0bac1e43e..763f8f99171fbcdb37cebf07ffb3a66e82258e4d 100644
|
| --- a/ui/views/accessibility/ax_aura_obj_cache.h
|
| +++ b/ui/views/accessibility/ax_aura_obj_cache.h
|
| @@ -12,6 +12,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "ui/aura/client/focus_change_observer.h"
|
| +#include "ui/aura/window_observer.h"
|
| #include "ui/views/views_export.h"
|
|
|
| namespace base {
|
| @@ -32,7 +33,8 @@ class Widget;
|
|
|
| // A cache responsible for assigning id's to a set of interesting Aura views.
|
| class VIEWS_EXPORT AXAuraObjCache
|
| - : public aura::client::FocusChangeObserver {
|
| + : public aura::client::FocusChangeObserver,
|
| + public aura::WindowObserver {
|
| public:
|
| // Get the single instance of this class.
|
| static AXAuraObjCache* GetInstance();
|
| @@ -86,6 +88,9 @@ class VIEWS_EXPORT AXAuraObjCache
|
| void OnWindowFocused(aura::Window* gained_focus,
|
| aura::Window* lost_focus) override;
|
|
|
| + // aura::WindowObserver override.
|
| + void OnWindowDestroying(aura::Window* window) override;
|
| +
|
| template <typename AuraViewWrapper, typename AuraView>
|
| AXAuraObjWrapper* CreateInternal(
|
| AuraView* aura_view,
|
|
|