OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Creates the platform specific BrowserAccessibilityManager. Ownership passes | 48 // Creates the platform specific BrowserAccessibilityManager. Ownership passes |
49 // to the caller. | 49 // to the caller. |
50 static BrowserAccessibilityManager* Create( | 50 static BrowserAccessibilityManager* Create( |
51 gfx::NativeView parent_view, | 51 gfx::NativeView parent_view, |
52 const WebAccessibility& src, | 52 const WebAccessibility& src, |
53 BrowserAccessibilityDelegate* delegate, | 53 BrowserAccessibilityDelegate* delegate, |
54 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 54 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
55 | 55 |
56 virtual ~BrowserAccessibilityManager(); | 56 virtual ~BrowserAccessibilityManager(); |
57 | 57 |
58 // Type is a ViewHostMsg_AccessibilityNotification_Params::NotificationType. | 58 // Type is a ViewHostMsg_AccessibilityNotification_Params::int. |
59 // We pass it as int so that we don't include the render message declaration | 59 // We pass it as int so that we don't include the render message declaration |
60 // header here. | 60 // header here. |
61 virtual void NotifyAccessibilityEvent( | 61 virtual void NotifyAccessibilityEvent( |
62 int type, | 62 int type, |
63 BrowserAccessibility* node) { } | 63 BrowserAccessibility* node) { } |
64 | 64 |
65 // Returns the next unique child id. | 65 // Returns the next unique child id. |
66 static int32 GetNextChildID(); | 66 static int32 GetNextChildID(); |
67 | 67 |
68 // Return a pointer to the root of the tree, does not make a new reference. | 68 // Return a pointer to the root of the tree, does not make a new reference. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // we use internally here. | 168 // we use internally here. |
169 base::hash_map<int32, int32> renderer_id_to_child_id_map_; | 169 base::hash_map<int32, int32> renderer_id_to_child_id_map_; |
170 | 170 |
171 // A mapping from child IDs to BrowserAccessibility objects. | 171 // A mapping from child IDs to BrowserAccessibility objects. |
172 base::hash_map<int32, BrowserAccessibility*> child_id_map_; | 172 base::hash_map<int32, BrowserAccessibility*> child_id_map_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 174 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
175 }; | 175 }; |
176 | 176 |
177 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 177 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |