| OLD | NEW |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 BrowserAccessibilityDelegate* delegate, | 63 BrowserAccessibilityDelegate* delegate, |
| 64 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 64 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
| 65 | 65 |
| 66 virtual ~BrowserAccessibilityManager(); | 66 virtual ~BrowserAccessibilityManager(); |
| 67 | 67 |
| 68 void Initialize(const AccessibilityNodeData src); | 68 void Initialize(const AccessibilityNodeData src); |
| 69 | 69 |
| 70 static AccessibilityNodeData GetEmptyDocument(); | 70 static AccessibilityNodeData GetEmptyDocument(); |
| 71 | 71 |
| 72 virtual void NotifyAccessibilityEvent( | 72 virtual void NotifyAccessibilityEvent( |
| 73 WebKit::WebAXEvent event_type, BrowserAccessibility* node) { } | 73 blink::WebAXEvent event_type, BrowserAccessibility* node) { } |
| 74 | 74 |
| 75 // Return a pointer to the root of the tree, does not make a new reference. | 75 // Return a pointer to the root of the tree, does not make a new reference. |
| 76 BrowserAccessibility* GetRoot(); | 76 BrowserAccessibility* GetRoot(); |
| 77 | 77 |
| 78 // Removes a node from the manager. | 78 // Removes a node from the manager. |
| 79 virtual void RemoveNode(BrowserAccessibility* node); | 79 virtual void RemoveNode(BrowserAccessibility* node); |
| 80 | 80 |
| 81 // Return a pointer to the object corresponding to the given renderer_id, | 81 // Return a pointer to the object corresponding to the given renderer_id, |
| 82 // does not make a new reference. | 82 // does not make a new reference. |
| 83 BrowserAccessibility* GetFromRendererID(int32 renderer_id); | 83 BrowserAccessibility* GetFromRendererID(int32 renderer_id); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 // A mapping from renderer IDs to BrowserAccessibility objects. | 232 // A mapping from renderer IDs to BrowserAccessibility objects. |
| 233 base::hash_map<int32, BrowserAccessibility*> renderer_id_map_; | 233 base::hash_map<int32, BrowserAccessibility*> renderer_id_map_; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 235 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace content | 238 } // namespace content |
| 239 | 239 |
| 240 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 240 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |