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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _
6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _ 6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H _
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // initialize it to -1 to detect this case. 151 // initialize it to -1 to detect this case.
152 static void RecursiveGetMenuItemIndexAndCount(views::View* menu, 152 static void RecursiveGetMenuItemIndexAndCount(views::View* menu,
153 views::View* item, 153 views::View* item,
154 int* index, 154 int* index,
155 int* count); 155 int* count);
156 156
157 // Recursively explore the subviews and return the text from the first 157 // Recursively explore the subviews and return the text from the first
158 // subview with a role of STATIC_TEXT. 158 // subview with a role of STATIC_TEXT.
159 static std::string RecursiveGetStaticText(views::View* view); 159 static std::string RecursiveGetStaticText(views::View* view);
160 160
161 // 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
162 // ancestor that is, so that the correct accessible name is being read.
163 static views::View* FindFirstAccessibleAncestor(views::View* view);
164
161 // The profile associated with the most recent window event - used to 165 // The profile associated with the most recent window event - used to
162 // figure out where to route a few events that can't be directly traced 166 // figure out where to route a few events that can't be directly traced
163 // to a window with a profile (like menu events). 167 // to a window with a profile (like menu events).
164 Profile* most_recent_profile_; 168 Profile* most_recent_profile_;
165 169
170 // The most recent accessibility focusable view is stored in view storage
171 // and is used to prevent multiple events from being dispatched on a
172 // hoverable view from its multiple children. This is the id for the most
173 // recent view we put in view storage.
174 const int kmost_recent_view_id_;
175
166 // Notification registrar so we can clear most_recent_profile_ when a 176 // Notification registrar so we can clear most_recent_profile_ when a
167 // profile is destroyed. 177 // profile is destroyed.
168 content::NotificationRegistrar registrar_; 178 content::NotificationRegistrar registrar_;
169 179
170 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); 180 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews);
171 }; 181 };
172 182
173 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_ 183 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_
OLDNEW
« 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