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

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

Issue 1003283002: Enable chrome.automation.getDesktop on all aura platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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.cc
diff --git a/ui/views/accessibility/ax_aura_obj_cache.cc b/ui/views/accessibility/ax_aura_obj_cache.cc
index 05f18686fc4154e7b4c22f090c63b620325662c8..8d5937b39c1b702d1a927af9cf1f82d05c738015 100644
--- a/ui/views/accessibility/ax_aura_obj_cache.cc
+++ b/ui/views/accessibility/ax_aura_obj_cache.cc
@@ -76,6 +76,15 @@ void AXAuraObjCache::Remove(int32 id) {
delete obj;
}
+void AXAuraObjCache::GetTopLevelWindows(
+ std::vector<AXAuraObjWrapper*>* children) {
+ for (std::map<aura::Window*, int32>::iterator it = window_to_id_map_.begin();
+ it != window_to_id_map_.end(); ++it) {
+ if (!it->first->parent())
+ children->push_back(GetOrCreate(it->first));
+ }
+}
+
AXAuraObjCache::AXAuraObjCache() : current_id_(1), is_destroying_(false) {
}

Powered by Google App Engine
This is Rietveld 408576698