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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "third_party/WebKit/public/web/WebAXEnums.h" | 14 #include "third_party/WebKit/public/web/WebAXEnums.h" |
15 #include "ui/accessibility/ax_node_data.h" | 15 #include "ui/accessibility/ax_node_data.h" |
16 #include "ui/accessibility/ax_serializable_tree.h" | 16 #include "ui/accessibility/ax_serializable_tree.h" |
17 #include "ui/accessibility/ax_tree_update.h" | 17 #include "ui/accessibility/ax_tree_update.h" |
18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
19 | 19 |
20 struct AccessibilityHostMsg_EventParams; | 20 struct AccessibilityHostMsg_EventParams; |
21 struct AccessibilityHostMsg_LocationChangeParams; | 21 struct AccessibilityHostMsg_LocationChangeParams; |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 class BrowserAccessibility; | 24 class BrowserAccessibility; |
25 class BrowserAccessibilityManager; | 25 class BrowserAccessibilityManager; |
26 #if defined(OS_ANDROID) | 26 #if defined(OS_ANDROID) |
27 class BrowserAccessibilityManagerAndroid; | 27 class BrowserAccessibilityManagerAndroid; |
28 #endif | 28 #elif defined(OS_WIN) |
29 #if defined(OS_WIN) | |
30 class BrowserAccessibilityManagerWin; | 29 class BrowserAccessibilityManagerWin; |
30 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | |
31 class BrowserAccessibilityManagerAuraLinux; | |
31 #endif | 32 #endif |
32 | 33 |
33 // For testing. | 34 // For testing. |
34 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( | 35 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( |
35 const ui::AXNodeData& node, | 36 const ui::AXNodeData& node, |
36 const ui::AXNodeData& node2 = ui::AXNodeData(), | 37 const ui::AXNodeData& node2 = ui::AXNodeData(), |
37 const ui::AXNodeData& node3 = ui::AXNodeData(), | 38 const ui::AXNodeData& node3 = ui::AXNodeData(), |
38 const ui::AXNodeData& node4 = ui::AXNodeData(), | 39 const ui::AXNodeData& node4 = ui::AXNodeData(), |
39 const ui::AXNodeData& node5 = ui::AXNodeData(), | 40 const ui::AXNodeData& node5 = ui::AXNodeData(), |
40 const ui::AXNodeData& node6 = ui::AXNodeData(), | 41 const ui::AXNodeData& node6 = ui::AXNodeData(), |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 void ActivateFindInPageResult(int request_id); | 223 void ActivateFindInPageResult(int request_id); |
223 | 224 |
224 #if defined(OS_WIN) | 225 #if defined(OS_WIN) |
225 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); | 226 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); |
226 #endif | 227 #endif |
227 | 228 |
228 #if defined(OS_ANDROID) | 229 #if defined(OS_ANDROID) |
229 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); | 230 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); |
230 #endif | 231 #endif |
231 | 232 |
233 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | |
234 BrowserAccessibilityManagerAuraLinux* | |
235 ToBrowserAccessibilityManagerAuraLinux(); | |
dmazzoni
2015/07/17 15:56:49
nit: indent by 2 more
| |
236 #endif | |
237 | |
232 // Return the object that has focus, if it's a descandant of the | 238 // Return the object that has focus, if it's a descandant of the |
233 // given root (inclusive). Does not make a new reference. | 239 // given root (inclusive). Does not make a new reference. |
234 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); | 240 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); |
235 | 241 |
236 // Return the descentant of the given root that has focus, or that object's | 242 // Return the descentant of the given root that has focus, or that object's |
237 // active descendant if it has one. | 243 // active descendant if it has one. |
238 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); | 244 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); |
239 | 245 |
240 // True by default, but some platforms want to treat the root | 246 // True by default, but some platforms want to treat the root |
241 // scroll offsets separately. | 247 // scroll offsets separately. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 OnScreenKeyboardState osk_state_; | 330 OnScreenKeyboardState osk_state_; |
325 | 331 |
326 BrowserAccessibilityFindInPageInfo find_in_page_info_; | 332 BrowserAccessibilityFindInPageInfo find_in_page_info_; |
327 | 333 |
328 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 334 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
329 }; | 335 }; |
330 | 336 |
331 } // namespace content | 337 } // namespace content |
332 | 338 |
333 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 339 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |