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 WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 5 #ifndef WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
| 10 namespace WebKit { |
| 11 class WebAccessibilityCache; |
| 12 } |
| 13 |
10 namespace webkit_glue { | 14 namespace webkit_glue { |
11 | 15 |
12 class WebAccessibility { | 16 class WebAccessibility { |
13 public: | 17 public: |
14 // This defines an enumeration of IDs that can uniquely identify a call to a | 18 // This defines an enumeration of IDs that can uniquely identify a call to a |
15 // specific accessibility information function. Should match the support | 19 // specific accessibility information function. Should match the support |
16 // implemented in WebKit and GlueAccessibilityObject (functions marked with | 20 // implemented in WebKit and GlueAccessibilityObject (functions marked with |
17 // return value E_NOTIMPL in WebKit are also excluded). | 21 // return value E_NOTIMPL in WebKit are also excluded). |
18 enum Function { | 22 enum Function { |
19 FUNCTION_NONE = 0, | 23 FUNCTION_NONE = 0, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 162 |
159 // String output parameter. | 163 // String output parameter. |
160 string16 output_string; | 164 string16 output_string; |
161 | 165 |
162 // Return code, either true (MSAA S_OK) or false (MSAA S_FALSE). | 166 // Return code, either true (MSAA S_OK) or false (MSAA S_FALSE). |
163 // Interface-specific error return codes (e.g. MSAA's E_POINTER, | 167 // Interface-specific error return codes (e.g. MSAA's E_POINTER, |
164 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by | 168 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by |
165 // input validation. | 169 // input validation. |
166 bool return_code; | 170 bool return_code; |
167 }; | 171 }; |
| 172 |
| 173 static bool GetAccObjInfo(WebKit::WebAccessibilityCache* cache, |
| 174 const InParams& in_params, OutParams* out_params); |
168 }; | 175 }; |
169 | 176 |
170 } // namespace webkit_glue | 177 } // namespace webkit_glue |
171 | 178 |
172 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 179 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
OLD | NEW |