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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class BrowserAccessibility; | 30 class BrowserAccessibility; |
31 class BrowserAccessibilityManager; | 31 class BrowserAccessibilityManager; |
32 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
33 class BrowserAccessibilityManagerAndroid; | 33 class BrowserAccessibilityManagerAndroid; |
34 #elif defined(OS_WIN) | 34 #elif defined(OS_WIN) |
35 class BrowserAccessibilityManagerWin; | 35 class BrowserAccessibilityManagerWin; |
36 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | 36 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) |
37 class BrowserAccessibilityManagerAuraLinux; | 37 class BrowserAccessibilityManagerAuraLinux; |
| 38 #elif defined(OS_MACOSX) |
| 39 class BrowserAccessibilityManagerMac; |
38 #endif | 40 #endif |
39 | 41 |
40 class SiteInstance; | 42 class SiteInstance; |
41 | 43 |
42 // For testing. | 44 // For testing. |
43 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( | 45 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( |
44 const ui::AXNodeData& node, | 46 const ui::AXNodeData& node, |
45 const ui::AXNodeData& node2 = ui::AXNodeData(), | 47 const ui::AXNodeData& node2 = ui::AXNodeData(), |
46 const ui::AXNodeData& node3 = ui::AXNodeData(), | 48 const ui::AXNodeData& node3 = ui::AXNodeData(), |
47 const ui::AXNodeData& node4 = ui::AXNodeData(), | 49 const ui::AXNodeData& node4 = ui::AXNodeData(), |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 271 |
270 #if defined(OS_ANDROID) | 272 #if defined(OS_ANDROID) |
271 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); | 273 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); |
272 #endif | 274 #endif |
273 | 275 |
274 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | 276 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) |
275 BrowserAccessibilityManagerAuraLinux* | 277 BrowserAccessibilityManagerAuraLinux* |
276 ToBrowserAccessibilityManagerAuraLinux(); | 278 ToBrowserAccessibilityManagerAuraLinux(); |
277 #endif | 279 #endif |
278 | 280 |
| 281 #if defined(OS_MACOSX) |
| 282 BrowserAccessibilityManagerMac* ToBrowserAccessibilityManagerMac(); |
| 283 #endif |
| 284 |
279 // Return the object that has focus, starting at the top of the frame tree. | 285 // Return the object that has focus, starting at the top of the frame tree. |
280 virtual BrowserAccessibility* GetFocus(); | 286 virtual BrowserAccessibility* GetFocus(); |
281 | 287 |
282 // Return the object that has focus, only considering this frame and | 288 // Return the object that has focus, only considering this frame and |
283 // descendants. | 289 // descendants. |
284 BrowserAccessibility* GetFocusFromThisOrDescendantFrame(); | 290 BrowserAccessibility* GetFocusFromThisOrDescendantFrame(); |
285 | 291 |
286 // Given a focused node |focus|, returns a descendant of that node if it | 292 // Given a focused node |focus|, returns a descendant of that node if it |
287 // has an active descendant, otherwise returns |focus|. | 293 // has an active descendant, otherwise returns |focus|. |
288 BrowserAccessibility* GetActiveDescendant(BrowserAccessibility* focus); | 294 BrowserAccessibility* GetActiveDescendant(BrowserAccessibility* focus); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 // node within that parent tree. It's computed as needed and cached for | 451 // node within that parent tree. It's computed as needed and cached for |
446 // speed so that it can be accessed quickly if it hasn't changed. | 452 // speed so that it can be accessed quickly if it hasn't changed. |
447 int parent_node_id_from_parent_tree_; | 453 int parent_node_id_from_parent_tree_; |
448 | 454 |
449 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 455 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
450 }; | 456 }; |
451 | 457 |
452 } // namespace content | 458 } // namespace content |
453 | 459 |
454 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 460 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |