| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void SetFocus(const BrowserAccessibility& node); | 200 void SetFocus(const BrowserAccessibility& node); |
| 201 void SetScrollOffset(const BrowserAccessibility& node, gfx::Point offset); | 201 void SetScrollOffset(const BrowserAccessibility& node, gfx::Point offset); |
| 202 void SetValue( | 202 void SetValue( |
| 203 const BrowserAccessibility& node, const base::string16& value); | 203 const BrowserAccessibility& node, const base::string16& value); |
| 204 void SetSelection( | 204 void SetSelection( |
| 205 ui::AXRange<AXPlatformPosition::AXPositionInstance::element_type> range); | 205 ui::AXRange<AXPlatformPosition::AXPositionInstance::element_type> range); |
| 206 void SetAccessibilityFocus(const BrowserAccessibility& node); | 206 void SetAccessibilityFocus(const BrowserAccessibility& node); |
| 207 void ShowContextMenu(const BrowserAccessibility& node); | 207 void ShowContextMenu(const BrowserAccessibility& node); |
| 208 | 208 |
| 209 // Retrieve the bounds of the parent View in screen coordinates. | 209 // Retrieve the bounds of the parent View in screen coordinates. |
| 210 gfx::Rect GetViewBounds(); | 210 virtual gfx::Rect GetViewBounds(); |
| 211 | 211 |
| 212 // Fire an event telling native assistive technology to move focus to the | 212 // Fire an event telling native assistive technology to move focus to the |
| 213 // given find in page result. | 213 // given find in page result. |
| 214 void ActivateFindInPageResult(int request_id, int match_index); | 214 void ActivateFindInPageResult(int request_id, int match_index); |
| 215 | 215 |
| 216 // Called when the renderer process has notified us of about tree changes. | 216 // Called when the renderer process has notified us of about tree changes. |
| 217 virtual void OnAccessibilityEvents( | 217 virtual void OnAccessibilityEvents( |
| 218 const std::vector<AXEventNotificationDetails>& details); | 218 const std::vector<AXEventNotificationDetails>& details); |
| 219 | 219 |
| 220 // Called when the renderer process updates the location of accessibility | 220 // Called when the renderer process updates the location of accessibility |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // used and it won't be updated from the delegate. | 482 // used and it won't be updated from the delegate. |
| 483 bool use_custom_device_scale_factor_for_testing_; | 483 bool use_custom_device_scale_factor_for_testing_; |
| 484 | 484 |
| 485 private: | 485 private: |
| 486 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 486 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 487 }; | 487 }; |
| 488 | 488 |
| 489 } // namespace content | 489 } // namespace content |
| 490 | 490 |
| 491 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 491 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |