OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EVENT_ROUTER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 views::View* menu, views::View* item, int* index, int* count); | 113 views::View* menu, views::View* item, int* index, int* count); |
114 | 114 |
115 // Recursively explore the subviews and return the text from the first | 115 // Recursively explore the subviews and return the text from the first |
116 // subview with a role of STATIC_TEXT. | 116 // subview with a role of STATIC_TEXT. |
117 std::string RecursiveGetStaticText(views::View* view); | 117 std::string RecursiveGetStaticText(views::View* view); |
118 | 118 |
119 // The profile associated with the most recent window event - used to | 119 // The profile associated with the most recent window event - used to |
120 // figure out where to route a few events that can't be directly traced | 120 // figure out where to route a few events that can't be directly traced |
121 // to a window with a profile (like menu events). | 121 // to a window with a profile (like menu events). |
122 Profile* most_recent_profile_; | 122 Profile* most_recent_profile_; |
123 | |
124 // Used to defer handling of some events until the next time | |
125 // through the event loop. | |
126 ScopedRunnableMethodFactory<AccessibilityEventRouterViews> method_factory_; | |
127 }; | 123 }; |
128 | 124 |
129 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 125 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
OLD | NEW |