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

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

Issue 380943002: Added battery level and time to the status tray's accessible name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FindFirstAccessibleAncestor function Created 6 years, 5 months 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/accessibility_event_router_views.h
diff --git a/chrome/browser/ui/views/accessibility/accessibility_event_router_views.h b/chrome/browser/ui/views/accessibility/accessibility_event_router_views.h
index 6b24f9f6bc56b1ddd0672b4f41c9d5ac050ace22..c8f15d29d888075c60d443590564815e757661a3 100644
--- a/chrome/browser/ui/views/accessibility/accessibility_event_router_views.h
+++ b/chrome/browser/ui/views/accessibility/accessibility_event_router_views.h
@@ -158,11 +158,21 @@ class AccessibilityEventRouterViews : public content::NotificationObserver {
// subview with a role of STATIC_TEXT.
static std::string RecursiveGetStaticText(views::View* view);
+ // If a view is not focusable for accessibility, find the closest
sky 2014/07/15 04:24:25 This comment is mildly confusing. I think you mean
+ // ancestor that is, so that the correct accessible name is being read.
+ static views::View* FindFirstAccessibleAncestor(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
// to a window with a profile (like menu events).
Profile* most_recent_profile_;
+ // The most recent accessibility focusable view is stored in view storage
+ // and is used to prevent multiple events from being dispatched on a
+ // hoverable view from its multiple children. This is the id for the most
+ // recent view we put in view storage.
+ const int kmost_recent_view_id_;
+
// Notification registrar so we can clear most_recent_profile_ when a
// profile is destroyed.
content::NotificationRegistrar registrar_;
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698