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

Unified Diff: ui/views/accessibility/ax_aura_obj_cache.h

Issue 1765583002: AXAuraObjCache - clear focus client reference when window is destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | ui/views/accessibility/ax_aura_obj_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | ui/views/accessibility/ax_aura_obj_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698