| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 int acc_obj_id, const gfx::Point& point) = 0; | 54 int acc_obj_id, const 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( | 61 virtual void AccessibilityHitTest( |
| 62 const gfx::Point& point) = 0; | 62 const gfx::Point& point) = 0; |
| 63 virtual void AccessibilityFatalError() = 0; | 63 virtual void AccessibilityFatalError() = 0; |
| 64 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() = 0; |
| 65 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() = 0; |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 class CONTENT_EXPORT BrowserAccessibilityFactory { | 68 class CONTENT_EXPORT BrowserAccessibilityFactory { |
| 67 public: | 69 public: |
| 68 virtual ~BrowserAccessibilityFactory() {} | 70 virtual ~BrowserAccessibilityFactory() {} |
| 69 | 71 |
| 70 // Create an instance of BrowserAccessibility and return a new | 72 // Create an instance of BrowserAccessibility and return a new |
| 71 // reference to it. | 73 // reference to it. |
| 72 virtual BrowserAccessibility* Create(); | 74 virtual BrowserAccessibility* Create(); |
| 73 }; | 75 }; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 258 |
| 257 // The on-screen keyboard state. | 259 // The on-screen keyboard state. |
| 258 OnScreenKeyboardState osk_state_; | 260 OnScreenKeyboardState osk_state_; |
| 259 | 261 |
| 260 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 262 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 } // namespace content | 265 } // namespace content |
| 264 | 266 |
| 265 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 267 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |