Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 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 #endif |
| 29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 30 class BrowserAccessibilityManagerWin; | 30 class BrowserAccessibilityManagerWin; |
| 31 #endif | 31 #endif |
| 32 #if defined(OS_LINUX) | |
| 33 class BrowserAccessibilityManagerAuraLinux; | |
| 34 #endif | |
| 32 | 35 |
| 33 // For testing. | 36 // For testing. |
| 34 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( | 37 CONTENT_EXPORT ui::AXTreeUpdate MakeAXTreeUpdate( |
| 35 const ui::AXNodeData& node, | 38 const ui::AXNodeData& node, |
| 36 const ui::AXNodeData& node2 = ui::AXNodeData(), | 39 const ui::AXNodeData& node2 = ui::AXNodeData(), |
| 37 const ui::AXNodeData& node3 = ui::AXNodeData(), | 40 const ui::AXNodeData& node3 = ui::AXNodeData(), |
| 38 const ui::AXNodeData& node4 = ui::AXNodeData(), | 41 const ui::AXNodeData& node4 = ui::AXNodeData(), |
| 39 const ui::AXNodeData& node5 = ui::AXNodeData(), | 42 const ui::AXNodeData& node5 = ui::AXNodeData(), |
| 40 const ui::AXNodeData& node6 = ui::AXNodeData(), | 43 const ui::AXNodeData& node6 = ui::AXNodeData(), |
| 41 const ui::AXNodeData& node7 = ui::AXNodeData(), | 44 const ui::AXNodeData& node7 = ui::AXNodeData(), |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 void ActivateFindInPageResult(int request_id); | 219 void ActivateFindInPageResult(int request_id); |
| 217 | 220 |
| 218 #if defined(OS_WIN) | 221 #if defined(OS_WIN) |
| 219 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); | 222 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); |
| 220 #endif | 223 #endif |
| 221 | 224 |
| 222 #if defined(OS_ANDROID) | 225 #if defined(OS_ANDROID) |
| 223 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); | 226 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); |
| 224 #endif | 227 #endif |
| 225 | 228 |
| 229 #if defined(OS_LINUX) | |
| 230 BrowserAccessibilityManagerAuraLinux* | |
| 231 ToBrowserAccessibilityManagerAuraLinux(); | |
|
dmazzoni
2015/05/22 22:25:32
nit: indent this line by 4 spaces
| |
| 232 #endif | |
| 233 | |
| 226 // Return the object that has focus, if it's a descandant of the | 234 // Return the object that has focus, if it's a descandant of the |
| 227 // given root (inclusive). Does not make a new reference. | 235 // given root (inclusive). Does not make a new reference. |
| 228 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); | 236 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); |
| 229 | 237 |
| 230 // Return the descentant of the given root that has focus, or that object's | 238 // Return the descentant of the given root that has focus, or that object's |
| 231 // active descendant if it has one. | 239 // active descendant if it has one. |
| 232 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); | 240 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); |
| 233 | 241 |
| 234 // True by default, but some platforms want to treat the root | 242 // True by default, but some platforms want to treat the root |
| 235 // scroll offsets separately. | 243 // scroll offsets separately. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 OnScreenKeyboardState osk_state_; | 325 OnScreenKeyboardState osk_state_; |
| 318 | 326 |
| 319 BrowserAccessibilityFindInPageInfo find_in_page_info_; | 327 BrowserAccessibilityFindInPageInfo find_in_page_info_; |
| 320 | 328 |
| 321 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 329 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 322 }; | 330 }; |
| 323 | 331 |
| 324 } // namespace content | 332 } // namespace content |
| 325 | 333 |
| 326 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 334 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |