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

Side by Side Diff: ui/views/accessibility/ax_aura_obj_cache.h

Issue 1003283002: Enable chrome.automation.getDesktop on all aura platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actions. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_ 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_ 6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "ui/views/views_export.h" 12 #include "ui/views/views_export.h"
12 13
13 template <typename T> struct DefaultSingletonTraits; 14 template <typename T> struct DefaultSingletonTraits;
14 15
15 namespace aura { 16 namespace aura {
16 class Window; 17 class Window;
17 } // namespace aura 18 } // namespace aura
18 19
(...skipping 26 matching lines...) Expand all
45 void Remove(View* view); 46 void Remove(View* view);
46 void Remove(Widget* widget); 47 void Remove(Widget* widget);
47 void Remove(aura::Window* window); 48 void Remove(aura::Window* window);
48 49
49 // Lookup a cached entry based on an id. 50 // Lookup a cached entry based on an id.
50 AXAuraObjWrapper* Get(int32 id); 51 AXAuraObjWrapper* Get(int32 id);
51 52
52 // Remove a cached entry based on an id. 53 // Remove a cached entry based on an id.
53 void Remove(int32 id); 54 void Remove(int32 id);
54 55
56 // Get all top level windows this cache knows about.
57 void GetTopLevelWindows(std::vector<AXAuraObjWrapper*>* children);
58
55 // Indicates if this object's currently being destroyed. 59 // Indicates if this object's currently being destroyed.
56 bool is_destroying() { return is_destroying_; } 60 bool is_destroying() { return is_destroying_; }
57 61
58 private: 62 private:
59 friend struct DefaultSingletonTraits<AXAuraObjCache>; 63 friend struct DefaultSingletonTraits<AXAuraObjCache>;
60 64
61 AXAuraObjCache(); 65 AXAuraObjCache();
62 virtual ~AXAuraObjCache(); 66 virtual ~AXAuraObjCache();
63 67
64 template <typename AuraViewWrapper, typename AuraView> 68 template <typename AuraViewWrapper, typename AuraView>
(...skipping 15 matching lines...) Expand all
80 84
81 // True immediately when entering this object's destructor. 85 // True immediately when entering this object's destructor.
82 bool is_destroying_; 86 bool is_destroying_;
83 87
84 DISALLOW_COPY_AND_ASSIGN(AXAuraObjCache); 88 DISALLOW_COPY_AND_ASSIGN(AXAuraObjCache);
85 }; 89 };
86 90
87 } // namespace views 91 } // namespace views
88 92
89 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_ 93 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698