| 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, 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( | 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 #if defined(OS_WIN) |
| 65 virtual HWND GetAccessibleParentHWND() const = 0; |
| 66 virtual IAccessible* GetParentIAccessible() const = 0; |
| 67 #endif |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 class CONTENT_EXPORT BrowserAccessibilityFactory { | 70 class CONTENT_EXPORT BrowserAccessibilityFactory { |
| 67 public: | 71 public: |
| 68 virtual ~BrowserAccessibilityFactory() {} | 72 virtual ~BrowserAccessibilityFactory() {} |
| 69 | 73 |
| 70 // Create an instance of BrowserAccessibility and return a new | 74 // Create an instance of BrowserAccessibility and return a new |
| 71 // reference to it. | 75 // reference to it. |
| 72 virtual BrowserAccessibility* Create(); | 76 virtual BrowserAccessibility* Create(); |
| 73 }; | 77 }; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 257 |
| 254 // The on-screen keyboard state. | 258 // The on-screen keyboard state. |
| 255 OnScreenKeyboardState osk_state_; | 259 OnScreenKeyboardState osk_state_; |
| 256 | 260 |
| 257 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 261 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 258 }; | 262 }; |
| 259 | 263 |
| 260 } // namespace content | 264 } // namespace content |
| 261 | 265 |
| 262 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 266 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |