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

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

Issue 2295183003: Update desktop tree when Aura windows are removed. (Closed)
Patch Set: Fix test. Created 4 years, 4 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 4a03023e356b7e8323c27b8e012aea05dc751c8a..19da0e9ab5b7684589ee0b63089c12d445447c41 100644
--- a/chrome/browser/ui/aura/accessibility/automation_manager_aura.h
+++ b/chrome/browser/ui/aura/accessibility/automation_manager_aura.h
@@ -13,6 +13,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/views/accessibility/ax_aura_obj_cache.h"
namespace base {
template <typename T>
@@ -34,7 +35,8 @@ using AuraAXTreeSerializer =
ui::AXTreeData>;
// Manages a tree of automation nodes.
-class AutomationManagerAura : public extensions::AutomationActionAdapter {
+class AutomationManagerAura : public extensions::AutomationActionAdapter,
+ views::AXAuraObjCache::Delegate {
public:
// Get the single instance of this class.
static AutomationManagerAura* GetInstance();
@@ -62,6 +64,9 @@ class AutomationManagerAura : public extensions::AutomationActionAdapter {
int32_t focus_offset) override;
void ShowContextMenu(int32_t id) override;
+ // views::AXAuraObjCache::Delegate implementation.
+ void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override;
+
private:
friend struct base::DefaultSingletonTraits<AutomationManagerAura>;
« 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