| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Remove a cached entry based on an id. | 76 // Remove a cached entry based on an id. |
| 77 void Remove(int32_t id); | 77 void Remove(int32_t id); |
| 78 | 78 |
| 79 // Get all top level windows this cache knows about. | 79 // Get all top level windows this cache knows about. |
| 80 void GetTopLevelWindows(std::vector<AXAuraObjWrapper*>* children); | 80 void GetTopLevelWindows(std::vector<AXAuraObjWrapper*>* children); |
| 81 | 81 |
| 82 // Get the object that has focus. | 82 // Get the object that has focus. |
| 83 AXAuraObjWrapper* GetFocus(); | 83 AXAuraObjWrapper* GetFocus(); |
| 84 | 84 |
| 85 // Send a notification that the focused view may have changed. |
| 86 void OnFocusedViewChanged(); |
| 87 |
| 85 // Indicates if this object's currently being destroyed. | 88 // Indicates if this object's currently being destroyed. |
| 86 bool is_destroying() { return is_destroying_; } | 89 bool is_destroying() { return is_destroying_; } |
| 87 | 90 |
| 88 void SetDelegate(Delegate* delegate) { delegate_ = delegate; } | 91 void SetDelegate(Delegate* delegate) { delegate_ = delegate; } |
| 89 | 92 |
| 90 private: | 93 private: |
| 91 friend struct base::DefaultSingletonTraits<AXAuraObjCache>; | 94 friend struct base::DefaultSingletonTraits<AXAuraObjCache>; |
| 92 | 95 |
| 93 AXAuraObjCache(); | 96 AXAuraObjCache(); |
| 94 ~AXAuraObjCache() override; | 97 ~AXAuraObjCache() override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool is_destroying_; | 132 bool is_destroying_; |
| 130 | 133 |
| 131 Delegate* delegate_; | 134 Delegate* delegate_; |
| 132 | 135 |
| 133 DISALLOW_COPY_AND_ASSIGN(AXAuraObjCache); | 136 DISALLOW_COPY_AND_ASSIGN(AXAuraObjCache); |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace views | 139 } // namespace views |
| 137 | 140 |
| 138 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_ | 141 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_CACHE_H_ |
| OLD | NEW |