| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 gfx::Rect GetViewBounds(); | 126 gfx::Rect GetViewBounds(); |
| 127 | 127 |
| 128 // Called when the renderer process has notified us of about tree changes. | 128 // Called when the renderer process has notified us of about tree changes. |
| 129 // Send a notification to MSAA clients of the change. | 129 // Send a notification to MSAA clients of the change. |
| 130 void OnAccessibilityNotifications( | 130 void OnAccessibilityNotifications( |
| 131 const std::vector<AccessibilityHostMsg_NotificationParams>& params); | 131 const std::vector<AccessibilityHostMsg_NotificationParams>& params); |
| 132 | 132 |
| 133 gfx::NativeView GetParentView(); | 133 gfx::NativeView GetParentView(); |
| 134 | 134 |
| 135 #if defined(OS_WIN) | 135 #if defined(OS_WIN) |
| 136 BrowserAccessibilityManagerWin* toBrowserAccessibilityManagerWin(); | 136 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 // Return the object that has focus, if it's a descandant of the | 139 // Return the object that has focus, if it's a descandant of the |
| 140 // given root (inclusive). Does not make a new reference. | 140 // given root (inclusive). Does not make a new reference. |
| 141 BrowserAccessibility* GetFocus(BrowserAccessibility* root); | 141 BrowserAccessibility* GetFocus(BrowserAccessibility* root); |
| 142 | 142 |
| 143 protected: | 143 protected: |
| 144 BrowserAccessibilityManager( | 144 BrowserAccessibilityManager( |
| 145 gfx::NativeView parent_view, | 145 gfx::NativeView parent_view, |
| 146 const WebAccessibility& src, | 146 const WebAccessibility& src, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // we use internally here. | 184 // we use internally here. |
| 185 base::hash_map<int32, int32> renderer_id_to_child_id_map_; | 185 base::hash_map<int32, int32> renderer_id_to_child_id_map_; |
| 186 | 186 |
| 187 // A mapping from child IDs to BrowserAccessibility objects. | 187 // A mapping from child IDs to BrowserAccessibility objects. |
| 188 base::hash_map<int32, BrowserAccessibility*> child_id_map_; | 188 base::hash_map<int32, BrowserAccessibility*> child_id_map_; |
| 189 | 189 |
| 190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |