Index: chrome/browser/ui/views/accessibility_event_router_views.h |
=================================================================== |
--- chrome/browser/ui/views/accessibility_event_router_views.h (revision 112880) |
+++ chrome/browser/ui/views/accessibility_event_router_views.h (working copy) |
@@ -101,6 +101,10 @@ |
// Return the name of a view. |
std::string GetViewName(views::View* view); |
+ // Get the context of a view - the name of the enclosing group, toolbar, |
+ // etc. - and if found, add it to |info|. |
+ void AddContextInfo(views::View* view, AccessibilityControlInfo* info); |
sky
2011/12/07 22:01:55
Should this return a status indicating whether it
dmazzoni
2011/12/07 23:13:49
Not currently needed but probably a good design fo
|
+ |
// Return true if it's an event on a menu. |
bool IsMenuEvent(views::View* view, int type); |
@@ -116,6 +120,10 @@ |
// subview with a role of STATIC_TEXT. |
std::string RecursiveGetStaticText(views::View* view); |
+ // Return a descendant of this view with a given accessible role, if found. |
+ views::View* FindDescendantWithAccessibleRole( |
+ views::View* view, ui::AccessibilityTypes::Role role); |
sky
2011/12/07 22:01:55
nit: each param on its own line.
dmazzoni
2011/12/07 23:13:49
Done.
|
+ |
// The profile associated with the most recent window event - used to |
// figure out where to route a few events that can't be directly traced |
// to a window with a profile (like menu events). |