| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 232 |
| 233 #if defined(OS_ANDROID) | 233 #if defined(OS_ANDROID) |
| 234 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); | 234 BrowserAccessibilityManagerAndroid* ToBrowserAccessibilityManagerAndroid(); |
| 235 #endif | 235 #endif |
| 236 | 236 |
| 237 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | 237 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) |
| 238 BrowserAccessibilityManagerAuraLinux* | 238 BrowserAccessibilityManagerAuraLinux* |
| 239 ToBrowserAccessibilityManagerAuraLinux(); | 239 ToBrowserAccessibilityManagerAuraLinux(); |
| 240 #endif | 240 #endif |
| 241 | 241 |
| 242 // Return the object that has focus, if it's a descandant of the | 242 // Return the object that has focus, if it's a descendant of the |
| 243 // given root (inclusive). Does not make a new reference. | 243 // given root (inclusive). Does not make a new reference. |
| 244 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); | 244 virtual BrowserAccessibility* GetFocus(BrowserAccessibility* root); |
| 245 | 245 |
| 246 // Return the descentant of the given root that has focus, or that object's | 246 // Return the descentant of the given root that has focus, or that object's |
| 247 // active descendant if it has one. | 247 // active descendant if it has one. |
| 248 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); | 248 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* root); |
| 249 | 249 |
| 250 // True by default, but some platforms want to treat the root | 250 // True by default, but some platforms want to treat the root |
| 251 // scroll offsets separately. | 251 // scroll offsets separately. |
| 252 virtual bool UseRootScrollOffsetsWhenComputingBounds(); | 252 virtual bool UseRootScrollOffsetsWhenComputingBounds(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // node within that parent tree. It's computed as needed and cached for | 342 // node within that parent tree. It's computed as needed and cached for |
| 343 // speed so that it can be accessed quickly if it hasn't changed. | 343 // speed so that it can be accessed quickly if it hasn't changed. |
| 344 int parent_node_id_from_parent_tree_; | 344 int parent_node_id_from_parent_tree_; |
| 345 | 345 |
| 346 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 346 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 347 }; | 347 }; |
| 348 | 348 |
| 349 } // namespace content | 349 } // namespace content |
| 350 | 350 |
| 351 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 351 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |