Chromium Code Reviews| 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) |
| @@ -77,44 +77,56 @@ |
| // Checks the type of the view and calls one of the more specific |
| // Send*Notification methods, below. |
| void DispatchAccessibilityNotification( |
| - views::View* view, int type); |
| + views::View* view, |
| + int type); |
| // Each of these methods constructs an AccessibilityControlInfo object |
| // and sends a notification of a specific accessibility event. |
| - void SendButtonNotification( |
| + static void SendButtonNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendLinkNotification( |
| + static void SendLinkNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendMenuNotification( |
| + static void SendMenuNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendMenuItemNotification( |
| + static void SendMenuItemNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendTextfieldNotification( |
| + static void SendTextfieldNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendComboboxNotification( |
| + static void SendComboboxNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendCheckboxNotification( |
| + static void SendCheckboxNotification( |
| views::View* view, int type, Profile* profile); |
| - void SendWindowNotification( |
| + static void SendWindowNotification( |
| views::View* view, int type, Profile* profile); |
| // Return the name of a view. |
| - std::string GetViewName(views::View* view); |
| + static std::string GetViewName(views::View* view); |
| + // Get the context of a view - the name of the enclosing group, toolbar, etc. |
| + static std::string GetViewContext(views::View* view); |
| + |
| + // Return a descendant of this view with a given accessible role, if found. |
| + static views::View* FindDescendantWithAccessibleRole( |
| + views::View* view, |
| + ui::AccessibilityTypes::Role role); |
|
sky
2011/12/12 16:20:58
This is the preferred wrapping style when spanning
dmazzoni
2011/12/12 17:12:04
Done.
|
| + |
| // Return true if it's an event on a menu. |
| - bool IsMenuEvent(views::View* view, int type); |
| + static bool IsMenuEvent(views::View* view, |
| + int type); |
| // Recursively explore all menu items of |menu| and return in |count| |
| // the total number of items, and in |index| the 0-based index of |
| // |item|, if found. Initialize |count| to zero before calling this |
| // method. |index| will be unchanged if the item is not found, so |
| // initialize it to -1 to detect this case. |
| - void RecursiveGetMenuItemIndexAndCount( |
| - views::View* menu, views::View* item, int* index, int* count); |
| + static void RecursiveGetMenuItemIndexAndCount(views::View* menu, |
| + views::View* item, |
| + int* index, |
| + int* count); |
| // Recursively explore the subviews and return the text from the first |
| // subview with a role of STATIC_TEXT. |
| - std::string RecursiveGetStaticText(views::View* view); |
| + static std::string RecursiveGetStaticText(views::View* view); |
| // 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 |