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

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: view storage 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // The profile associated with the most recent window event - used to 161 // 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 162 // figure out where to route a few events that can't be directly traced
163 // to a window with a profile (like menu events). 163 // to a window with a profile (like menu events).
164 Profile* most_recent_profile_; 164 Profile* most_recent_profile_;
165 165
166 // The most recent accessibility focusable view is stored in view storage
167 // and is used to prevent multiple events from being dispatched on a
168 // hoverable view from its multiple children. This is the id for the most
169 // recent view we put in view storage.
170 int most_recent_view_id_;
sky 2014/07/14 15:57:19 const
evy 2014/07/14 16:03:47 Done.
171
166 // Notification registrar so we can clear most_recent_profile_ when a 172 // Notification registrar so we can clear most_recent_profile_ when a
167 // profile is destroyed. 173 // profile is destroyed.
168 content::NotificationRegistrar registrar_; 174 content::NotificationRegistrar registrar_;
169 175
170 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews); 176 DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRouterViews);
171 }; 177 };
172 178
173 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_ 179 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBILITY_ACCESSIBILITY_EVENT_ROUTER_VIEW S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698