| 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 highest-focusable view - used to prevent multiple events |
| 167 // from being dispatched on a hoverable view from its multiple children. |
| 168 views::View* most_recent_view_; |
| 169 |
| 166 // Notification registrar so we can clear most_recent_profile_ when a | 170 // Notification registrar so we can clear most_recent_profile_ when a |
| 167 // profile is destroyed. | 171 // profile is destroyed. |
| 168 content::NotificationRegistrar registrar_; | 172 content::NotificationRegistrar registrar_; |
| 169 | 173 |
| 170 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); | 174 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); |
| 171 }; | 175 }; |
| 172 | 176 |
| 173 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW
S_H_ | 177 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW
S_H_ |
| OLD | NEW |