| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ |
| 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ | 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 | 10 |
| 11 #include <oleacc.h> | 11 #include <oleacc.h> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 | 14 |
| 15 struct ViewHostMsg_Accessibility_Out_Params; | 15 struct AccessibilityOutParams; |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 // | 18 // |
| 19 // BrowserAccessibility | 19 // BrowserAccessibility |
| 20 // | 20 // |
| 21 // Class implementing the MSAA IAccessible COM interface for the | 21 // Class implementing the MSAA IAccessible COM interface for the |
| 22 // Browser-Renderer communication of MSAA information, providing accessibility | 22 // Browser-Renderer communication of MSAA information, providing accessibility |
| 23 // to be used by screen readers and other assistive technology (AT). | 23 // to be used by screen readers and other assistive technology (AT). |
| 24 // | 24 // |
| 25 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void** interface_ptr); | 139 void** interface_ptr); |
| 140 | 140 |
| 141 // Composes and sends a message for requesting needed accessibility | 141 // Composes and sends a message for requesting needed accessibility |
| 142 // information. Unused LONG input parameters should be NULL, and the VARIANT | 142 // information. Unused LONG input parameters should be NULL, and the VARIANT |
| 143 // an empty, valid instance. | 143 // an empty, valid instance. |
| 144 bool RequestAccessibilityInfo(int iaccessible_func_id, | 144 bool RequestAccessibilityInfo(int iaccessible_func_id, |
| 145 VARIANT var_id, | 145 VARIANT var_id, |
| 146 LONG input1, LONG input2); | 146 LONG input1, LONG input2); |
| 147 | 147 |
| 148 // Accessors. | 148 // Accessors. |
| 149 const ViewHostMsg_Accessibility_Out_Params& response(); | 149 const AccessibilityOutParams& response(); |
| 150 HWND parent_hwnd(); | 150 HWND parent_hwnd(); |
| 151 | 151 |
| 152 // Id to uniquely distinguish this instance in the render-side caching, | 152 // Id to uniquely distinguish this instance in the render-side caching, |
| 153 // mapping it to the correct IAccessible on that side. Initialized to -1. | 153 // mapping it to the correct IAccessible on that side. Initialized to -1. |
| 154 int iaccessible_id_; | 154 int iaccessible_id_; |
| 155 | 155 |
| 156 // The unique id of this IAccessible instance. Used to help | 156 // The unique id of this IAccessible instance. Used to help |
| 157 // BrowserAccessibilityManager instance retrieve the correct member | 157 // BrowserAccessibilityManager instance retrieve the correct member |
| 158 // variables for this process. | 158 // variables for this process. |
| 159 int instance_id_; | 159 int instance_id_; |
| 160 | 160 |
| 161 // The instance should only be active if there is a non-terminated | 161 // The instance should only be active if there is a non-terminated |
| 162 // RenderProcessHost associated with it. The BrowserAccessibilityManager keeps | 162 // RenderProcessHost associated with it. The BrowserAccessibilityManager keeps |
| 163 // track of this state, and sets it to false to disable all calls into the | 163 // track of this state, and sets it to false to disable all calls into the |
| 164 // renderer from this instance of BroweserAccessibility, and have all | 164 // renderer from this instance of BroweserAccessibility, and have all |
| 165 // IAccessible functions return E_FAIL. | 165 // IAccessible functions return E_FAIL. |
| 166 bool instance_active_; | 166 bool instance_active_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 169 }; | 169 }; |
| 170 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ | 170 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ |
| 171 | 171 |
| OLD | NEW |