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

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

Issue 2456673002: Update focus when widget changes visibility. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/accessibility/ax_aura_obj_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/accessibility/ax_aura_obj_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698