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

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

Issue 2803823002: Fix Chrome OS virtual keyboard accessibility (Closed)
Patch Set: Rebase on dependent change Created 3 years, 8 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
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 c73abe1ad858eddc1e5faf347e34e378a02c796f..6ab3a53e72cafc63ca4aa58155954696183f6f11 100644
--- a/ui/views/accessibility/ax_aura_obj_cache.h
+++ b/ui/views/accessibility/ax_aura_obj_cache.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/macros.h"
+#include "ui/accessibility/ax_enums.h"
#include "ui/aura/client/focus_change_observer.h"
#include "ui/aura/window_observer.h"
#include "ui/views/views_export.h"
@@ -43,6 +44,8 @@ class VIEWS_EXPORT AXAuraObjCache
class Delegate {
public:
virtual void OnChildWindowRemoved(AXAuraObjWrapper* parent) = 0;
+ virtual void OnEvent(AXAuraObjWrapper* aura_obj,
+ ui::AXEvent event_type) = 0;
};
// Get or create an entry in the cache based on an Aura view.
@@ -85,6 +88,9 @@ class VIEWS_EXPORT AXAuraObjCache
// Send a notification that the focused view may have changed.
void OnFocusedViewChanged();
+ // Tell our delegate to fire an event on a given object.
+ void FireEvent(AXAuraObjWrapper* aura_obj, ui::AXEvent event_type);
+
// Indicates if this object's currently being destroyed.
bool is_destroying() { return is_destroying_; }
@@ -104,6 +110,7 @@ class VIEWS_EXPORT AXAuraObjCache
// aura::WindowObserver override.
void OnWindowDestroying(aura::Window* window) override;
+ void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override;
template <typename AuraViewWrapper, typename AuraView>
AXAuraObjWrapper* CreateInternal(

Powered by Google App Engine
This is Rietveld 408576698