OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ |
6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ | 6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 | 156 |
157 // Recursively explore the subviews and return the text from the first | 157 // Recursively explore the subviews and return the text from the first |
158 // subview with a role of STATIC_TEXT. | 158 // subview with a role of STATIC_TEXT. |
159 static std::string RecursiveGetStaticText(views::View* view); | 159 static std::string RecursiveGetStaticText(views::View* view); |
160 | 160 |
161 // The profile associated with the most recent window event - used to | 161 // The profile associated with the most recent window event - used to |
162 // figure out where to route a few events that can't be directly traced | 162 // figure out where to route a few events that can't be directly traced |
163 // to a window with a profile (like menu events). | 163 // to a window with a profile (like menu events). |
164 Profile* most_recent_profile_; | 164 Profile* most_recent_profile_; |
165 | 165 |
166 // The most recent accessibility focusable view is stored in view storage | |
167 // and is used to prevent multiple events from being dispatched on a | |
168 // hoverable view from its multiple children. This is the id for the most | |
169 // recent view we put in view storage. | |
170 int most_recent_view_id_; | |
sky
2014/07/14 15:57:19
const
evy
2014/07/14 16:03:47
Done.
| |
171 | |
166 // Notification registrar so we can clear most_recent_profile_ when a | 172 // Notification registrar so we can clear most_recent_profile_ when a |
167 // profile is destroyed. | 173 // profile is destroyed. |
168 content::NotificationRegistrar registrar_; | 174 content::NotificationRegistrar registrar_; |
169 | 175 |
170 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); | 176 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); |
171 }; | 177 }; |
172 | 178 |
173 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_ | 179 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_ |
OLD | NEW |