| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void AccessibilityScrollToMakeVisible( | 51 virtual void AccessibilityScrollToMakeVisible( |
| 52 int acc_obj_id, gfx::Rect subfocus) = 0; | 52 int acc_obj_id, gfx::Rect subfocus) = 0; |
| 53 virtual void AccessibilityScrollToPoint( | 53 virtual void AccessibilityScrollToPoint( |
| 54 int acc_obj_id, gfx::Point point) = 0; | 54 int acc_obj_id, gfx::Point point) = 0; |
| 55 virtual void AccessibilitySetTextSelection( | 55 virtual void AccessibilitySetTextSelection( |
| 56 int acc_obj_id, int start_offset, int end_offset) = 0; | 56 int acc_obj_id, int start_offset, int end_offset) = 0; |
| 57 virtual bool AccessibilityViewHasFocus() const = 0; | 57 virtual bool AccessibilityViewHasFocus() const = 0; |
| 58 virtual gfx::Rect AccessibilityGetViewBounds() const = 0; | 58 virtual gfx::Rect AccessibilityGetViewBounds() const = 0; |
| 59 virtual gfx::Point AccessibilityOriginInScreen( | 59 virtual gfx::Point AccessibilityOriginInScreen( |
| 60 const gfx::Rect& bounds) const = 0; | 60 const gfx::Rect& bounds) const = 0; |
| 61 virtual void AccessibilityHitTest( |
| 62 const gfx::Point& point) = 0; |
| 61 virtual void AccessibilityFatalError() = 0; | 63 virtual void AccessibilityFatalError() = 0; |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 class CONTENT_EXPORT BrowserAccessibilityFactory { | 66 class CONTENT_EXPORT BrowserAccessibilityFactory { |
| 65 public: | 67 public: |
| 66 virtual ~BrowserAccessibilityFactory() {} | 68 virtual ~BrowserAccessibilityFactory() {} |
| 67 | 69 |
| 68 // Create an instance of BrowserAccessibility and return a new | 70 // Create an instance of BrowserAccessibility and return a new |
| 69 // reference to it. | 71 // reference to it. |
| 70 virtual BrowserAccessibility* Create(); | 72 virtual BrowserAccessibility* Create(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 253 |
| 252 // The on-screen keyboard state. | 254 // The on-screen keyboard state. |
| 253 OnScreenKeyboardState osk_state_; | 255 OnScreenKeyboardState osk_state_; |
| 254 | 256 |
| 255 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 257 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 256 }; | 258 }; |
| 257 | 259 |
| 258 } // namespace content | 260 } // namespace content |
| 259 | 261 |
| 260 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 262 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |