OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 2008 Nuanti Ltd. | |
3 * Copyright (C) 2009 Jan Alonzo | |
4 * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L. | |
5 * Copyright (C) 2013 Samsung Electronics | |
6 * | |
7 * This library is free software; you can redistribute it and/or | |
8 * modify it under the terms of the GNU Library General Public | |
9 * License as published by the Free Software Foundation; either | |
10 * version 2 of the License, or (at your option) any later version. | |
11 * | |
12 * This library is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Library General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Library General Public License | |
18 * along with this library; see the file COPYING.LIB. If not, write to | |
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
20 * Boston, MA 02110-1301, USA. | |
21 */ | |
22 | |
23 #ifndef WebKitAccessibleWrapperAtk_h | |
24 #define WebKitAccessibleWrapperAtk_h | |
25 | |
26 #if HAVE(ACCESSIBILITY) | |
27 | |
28 #include <atk/atk.h> | |
29 #include <wtf/text/WTFString.h> | |
30 | |
31 namespace WebCore { | |
32 class AccessibilityObject; | |
33 } | |
34 | |
35 G_BEGIN_DECLS | |
36 | |
37 #define WEBKIT_TYPE_ACCESSIBLE (webkitAccessibleGetType ()) | |
38 #define WEBKIT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((ob
j), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessible)) | |
39 #define WEBKIT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass
), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessibleClass)) | |
40 #define WEBKIT_IS_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((ob
j), WEBKIT_TYPE_ACCESSIBLE)) | |
41 #define WEBKIT_IS_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass
), WEBKIT_TYPE_ACCESSIBLE)) | |
42 #define WEBKIT_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj
), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessibleClass)) | |
43 | |
44 typedef struct _WebKitAccessible WebKitAccessible; | |
45 typedef struct _WebKitAccessibleClass WebKitAccessibleClass; | |
46 typedef struct _WebKitAccessiblePrivate WebKitAccessiblePrivate; | |
47 | |
48 | |
49 struct _WebKitAccessible { | |
50 AtkObject parent; | |
51 WebCore::AccessibilityObject* m_object; | |
52 | |
53 WebKitAccessiblePrivate *priv; | |
54 }; | |
55 | |
56 struct _WebKitAccessibleClass { | |
57 AtkObjectClass parentClass; | |
58 }; | |
59 | |
60 enum AtkCachedProperty { | |
61 AtkCachedAccessibleName, | |
62 AtkCachedAccessibleDescription, | |
63 AtkCachedActionName, | |
64 AtkCachedActionKeyBinding, | |
65 AtkCachedDocumentLocale, | |
66 AtkCachedDocumentType, | |
67 AtkCachedDocumentEncoding, | |
68 AtkCachedDocumentURI, | |
69 AtkCachedImageDescription | |
70 }; | |
71 | |
72 GType webkitAccessibleGetType(void) G_GNUC_CONST; | |
73 | |
74 WebKitAccessible* webkitAccessibleNew(WebCore::AccessibilityObject*); | |
75 | |
76 WebCore::AccessibilityObject* webkitAccessibleGetAccessibilityObject(WebKitAcces
sible*); | |
77 | |
78 void webkitAccessibleDetach(WebKitAccessible*); | |
79 | |
80 AtkObject* webkitAccessibleGetFocusedElement(WebKitAccessible*); | |
81 | |
82 WebCore::AccessibilityObject* objectFocusedAndCaretOffsetUnignored(WebCore::Acce
ssibilityObject*, int& offset); | |
83 | |
84 const char* cacheAndReturnAtkProperty(AtkObject*, AtkCachedProperty, String valu
e); | |
85 | |
86 G_END_DECLS | |
87 | |
88 #endif | |
89 #endif // WebKitAccessibleWrapperAtk_h | |
OLD | NEW |