Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2849)

Unified Diff: chrome/browser/ui/views/accessibility_event_router_views.h

Issue 8850004: Add a context field to the accessibility extension API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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).

Powered by Google App Engine
This is Rietveld 408576698