Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: chrome/common/accessibility.h

Issue 46013: Removes all use of COM and dependencies on Windows-specific classes (includin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_ACCESSIBILITY_H_
6 #define CHROME_COMMON_ACCESSIBILITY_H_
7
8 // This defines an enumeration of IDs that can uniquely identify a call to a
9 // specific IAccessible function. Should match the support implemented in WebKit
10 // (functions marked with return value E_NOTIMPL are also excluded).
11 enum IAccessibleID {
12 IACCESSIBLE_FUNC_NONE = 0,
13
14 // Supported IAccessible interface functions.
15 IACCESSIBLE_FUNC_ACCDODEFAULTACTION,
16 IACCESSIBLE_FUNC_ACCHITTEST,
17 IACCESSIBLE_FUNC_ACCLOCATION,
18 IACCESSIBLE_FUNC_ACCNAVIGATE,
19 IACCESSIBLE_FUNC_GET_ACCCHILD,
20 IACCESSIBLE_FUNC_GET_ACCCHILDCOUNT,
21 IACCESSIBLE_FUNC_GET_ACCDEFAULTACTION,
22 IACCESSIBLE_FUNC_GET_ACCDESCRIPTION,
23 IACCESSIBLE_FUNC_GET_ACCFOCUS,
24 IACCESSIBLE_FUNC_GET_ACCHELP,
25 IACCESSIBLE_FUNC_GET_ACCKEYBOARDSHORTCUT,
26 IACCESSIBLE_FUNC_GET_ACCNAME,
27 IACCESSIBLE_FUNC_GET_ACCPARENT,
28 IACCESSIBLE_FUNC_GET_ACCROLE,
29 IACCESSIBLE_FUNC_GET_ACCSTATE,
30 IACCESSIBLE_FUNC_GET_ACCVALUE
31
32 // The deprecated put_accName and put_accValue are not supported here, nor is
33 // accSelect, get_accHelpTopic and get_accSelection (matching WebKit's
34 // support).
35 };
36
37 // Parameters structure to hold a union of the possible IAccessible function
38 // INPUT variables, with the unused fields always set to default value. Used in
39 // ViewMsg_GetAccessibilityInfo, as only parameter.
40 struct AccessibilityInParams {
41 // Identifier to uniquely distinguish which instance of IAccessible is being
42 // called upon on the renderer side.
43 int iaccessible_id;
44
45 // Identifier to resolve which IAccessible interface function is being called.
46 int iaccessible_function_id;
47
48 // Function input parameters.
49 // Input VARIANT structure's LONG field to specify requested object.
50 long input_variant_lval;
51
52 // LONG input parameters, used differently depending on the function called.
53 long input_long1;
54 long input_long2;
55 };
56
57 // Parameters structure to hold a union of the possible IAccessible function
58 // OUTPUT variables, with the unused fields always set to default value. Used in
59 // ViewHostMsg_GetAccessibilityInfoResponse, as only parameter.
60 struct AccessibilityOutParams {
61 // Identifier to uniquely distinguish which instance of IAccessible is being
62 // called upon on the renderer side.
63 int iaccessible_id;
64
65 // Function output parameters.
66 // Output VARIANT structure's LONG field to specify requested object.
67 long output_variant_lval;
68
69 // LONG output parameters, used differently depending on the function called.
70 // output_long1 can in some cases be set to -1 to indicate that the child
71 // object found by the called IAccessible function is not a simple object.
72 long output_long1;
73 long output_long2;
74 long output_long3;
75 long output_long4;
76
77 // String output parameter.
78 std::wstring output_string;
79
80 // Return code, either S_OK (true) or S_FALSE (false). WebKit MSAA error
81 // return codes (E_POINTER, E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled
82 // on the browser side by input validation.
83 bool return_code;
84 };
85
86 #endif // CHROME_COMMON_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698