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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 892513004: Revert of Suppress accessibility events when user is navigating away. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 BrowserAccessibility* GetFromID(int32 id); 139 BrowserAccessibility* GetFromID(int32 id);
140 140
141 // Called to notify the accessibility manager that its associated native 141 // Called to notify the accessibility manager that its associated native
142 // view got focused. 142 // view got focused.
143 virtual void OnWindowFocused(); 143 virtual void OnWindowFocused();
144 144
145 // Called to notify the accessibility manager that its associated native 145 // Called to notify the accessibility manager that its associated native
146 // view lost focus. 146 // view lost focus.
147 virtual void OnWindowBlurred(); 147 virtual void OnWindowBlurred();
148 148
149 // Notify the accessibility manager about page navigation.
150 void UserIsNavigatingAway();
151 virtual void UserIsReloading();
152 void NavigationSucceeded();
153 void NavigationFailed();
154
155 // Called to notify the accessibility manager that a mouse down event 149 // Called to notify the accessibility manager that a mouse down event
156 // occurred in the tab. 150 // occurred in the tab.
157 void GotMouseDown(); 151 void GotMouseDown();
158 152
159 // Update the focused node to |node|, which may be null. 153 // Update the focused node to |node|, which may be null.
160 // If |notify| is true, send a message to the renderer to set focus 154 // If |notify| is true, send a message to the renderer to set focus
161 // to this node. 155 // to this node.
162 void SetFocus(ui::AXNode* node, bool notify); 156 void SetFocus(ui::AXNode* node, bool notify);
163 void SetFocus(BrowserAccessibility* node, bool notify); 157 void SetFocus(BrowserAccessibility* node, bool notify);
164 158
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 297
304 // The underlying tree of accessibility objects. 298 // The underlying tree of accessibility objects.
305 scoped_ptr<ui::AXSerializableTree> tree_; 299 scoped_ptr<ui::AXSerializableTree> tree_;
306 300
307 // The node that currently has focus. 301 // The node that currently has focus.
308 ui::AXNode* focus_; 302 ui::AXNode* focus_;
309 303
310 // A mapping from a node id to its wrapper of type BrowserAccessibility. 304 // A mapping from a node id to its wrapper of type BrowserAccessibility.
311 base::hash_map<int32, BrowserAccessibility*> id_wrapper_map_; 305 base::hash_map<int32, BrowserAccessibility*> id_wrapper_map_;
312 306
313 // True if the user has initiated a navigation to another page.
314 bool user_is_navigating_away_;
315
316 // The on-screen keyboard state. 307 // The on-screen keyboard state.
317 OnScreenKeyboardState osk_state_; 308 OnScreenKeyboardState osk_state_;
318 309
319 BrowserAccessibilityFindInPageInfo find_in_page_info_; 310 BrowserAccessibilityFindInPageInfo find_in_page_info_;
320 311
321 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 312 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
322 }; 313 };
323 314
324 } // namespace content 315 } // namespace content
325 316
326 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 317 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698