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

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

Issue 214243005: Fire accessibility focus/blur events on root web document. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fire event before fullscreen check destroys window Created 6 years, 8 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 BrowserAccessibility* GetRoot(); 77 BrowserAccessibility* GetRoot();
78 78
79 // Removes a node from the manager. 79 // Removes a node from the manager.
80 virtual void RemoveNode(BrowserAccessibility* node); 80 virtual void RemoveNode(BrowserAccessibility* node);
81 81
82 // Return a pointer to the object corresponding to the given renderer_id, 82 // Return a pointer to the object corresponding to the given renderer_id,
83 // does not make a new reference. 83 // does not make a new reference.
84 BrowserAccessibility* GetFromRendererID(int32 renderer_id); 84 BrowserAccessibility* GetFromRendererID(int32 renderer_id);
85 85
86 // Called to notify the accessibility manager that its associated native 86 // Called to notify the accessibility manager that its associated native
87 // view got focused. This implies that it is shown (opposite of WasHidden, 87 // view got focused.
88 // below). 88 virtual void OnWindowFocused();
89 // The touch_event_context parameter indicates that we were called in the
90 // context of a touch event.
91 void GotFocus(bool touch_event_context);
92 89
93 // Called to notify the accessibility manager that its associated native 90 // Called to notify the accessibility manager that its associated native
94 // view was hidden. When it's no longer hidden, GotFocus will be called. 91 // view lost focus.
95 void WasHidden(); 92 virtual void OnWindowBlurred();
96 93
97 // Called to notify the accessibility manager that a mouse down event 94 // Called to notify the accessibility manager that a mouse down event
98 // occurred in the tab. 95 // occurred in the tab.
99 void GotMouseDown(); 96 void GotMouseDown();
100 97
101 // Update the focused node to |node|, which may be null. 98 // Update the focused node to |node|, which may be null.
102 // If |notify| is true, send a message to the renderer to set focus 99 // If |notify| is true, send a message to the renderer to set focus
103 // to this node. 100 // to this node.
104 void SetFocus(BrowserAccessibility* node, bool notify); 101 void SetFocus(BrowserAccessibility* node, bool notify);
105 102
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 237
241 // A mapping from renderer IDs to BrowserAccessibility objects. 238 // A mapping from renderer IDs to BrowserAccessibility objects.
242 base::hash_map<int32, BrowserAccessibility*> renderer_id_map_; 239 base::hash_map<int32, BrowserAccessibility*> renderer_id_map_;
243 240
244 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 241 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
245 }; 242 };
246 243
247 } // namespace content 244 } // namespace content
248 245
249 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 246 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698