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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 int type, | 106 int type, |
107 Profile* profile); | 107 Profile* profile); |
108 static void SendCheckboxNotification( | 108 static void SendCheckboxNotification( |
109 views::View* view, | 109 views::View* view, |
110 int type, | 110 int type, |
111 Profile* profile); | 111 Profile* profile); |
112 static void SendWindowNotification( | 112 static void SendWindowNotification( |
113 views::View* view, | 113 views::View* view, |
114 int type, | 114 int type, |
115 Profile* profile); | 115 Profile* profile); |
| 116 static void SendSliderNotification( |
| 117 views::View* view, |
| 118 int type, |
| 119 Profile* profile); |
116 | 120 |
117 // Return the name of a view. | 121 // Return the name of a view. |
118 static std::string GetViewName(views::View* view); | 122 static std::string GetViewName(views::View* view); |
119 | 123 |
120 // Get the context of a view - the name of the enclosing group, toolbar, etc. | 124 // Get the context of a view - the name of the enclosing group, toolbar, etc. |
121 static std::string GetViewContext(views::View* view); | 125 static std::string GetViewContext(views::View* view); |
122 | 126 |
123 // Return a descendant of this view with a given accessible role, if found. | 127 // Return a descendant of this view with a given accessible role, if found. |
124 static views::View* FindDescendantWithAccessibleRole( | 128 static views::View* FindDescendantWithAccessibleRole( |
125 views::View* view, | 129 views::View* view, |
(...skipping 17 matching lines...) Expand all Loading... |
143 // subview with a role of STATIC_TEXT. | 147 // subview with a role of STATIC_TEXT. |
144 static std::string RecursiveGetStaticText(views::View* view); | 148 static std::string RecursiveGetStaticText(views::View* view); |
145 | 149 |
146 // The profile associated with the most recent window event - used to | 150 // The profile associated with the most recent window event - used to |
147 // figure out where to route a few events that can't be directly traced | 151 // figure out where to route a few events that can't be directly traced |
148 // to a window with a profile (like menu events). | 152 // to a window with a profile (like menu events). |
149 Profile* most_recent_profile_; | 153 Profile* most_recent_profile_; |
150 }; | 154 }; |
151 | 155 |
152 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 156 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
OLD | NEW |