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

Unified Diff: chrome/browser/ui/aura/accessibility/automation_manager_aura.h

Issue 1245003002: Potential fix for browser crash while ChromeVox is on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | chrome/browser/ui/aura/accessibility/automation_manager_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/aura/accessibility/automation_manager_aura.h
diff --git a/chrome/browser/ui/aura/accessibility/automation_manager_aura.h b/chrome/browser/ui/aura/accessibility/automation_manager_aura.h
index d71be923cbef9df41945965cc3380960ce620df7..e7a28013bf9647feddaa8da07affcc2850c6c02a 100644
--- a/chrome/browser/ui/aura/accessibility/automation_manager_aura.h
+++ b/chrome/browser/ui/aura/accessibility/automation_manager_aura.h
@@ -10,6 +10,7 @@
#include "chrome/browser/extensions/api/automation_internal/automation_action_adapter.h"
#include "chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h"
#include "ui/accessibility/ax_tree_serializer.h"
+#include "ui/aura/window_observer.h"
#include "ui/views/focus/widget_focus_manager.h"
template <typename T>
@@ -26,6 +27,7 @@ class View;
// Manages a tree of automation nodes.
class AutomationManagerAura : public extensions::AutomationActionAdapter,
+ public aura::WindowObserver,
public views::WidgetFocusChangeListener {
public:
// Get the single instance of this class.
@@ -66,6 +68,9 @@ class AutomationManagerAura : public extensions::AutomationActionAdapter,
views::AXAuraObjWrapper* aura_obj,
ui::AXEvent event_type);
+ // aura::WindowObserver:
+ void OnWindowDestroying(aura::Window* window) override;
+
// views::WidgetFocusChangeListener:
void OnNativeFocusChanged(aura::Window* focused_now) override;
« no previous file with comments | « no previous file | chrome/browser/ui/aura/accessibility/automation_manager_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698