1/*
2 * Copyright (C) 2008 Nuanti Ltd.
3 * Copyright (C) 2009 Jan Alonzo
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB.  If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef AccessibilityObjectWrapperAtk_h
22#define AccessibilityObjectWrapperAtk_h
23
24#include <atk/atk.h>
25
26namespace WebCore {
27    class AccessibilityObject;
28}
29
30G_BEGIN_DECLS
31
32#define WEBKIT_TYPE_ACCESSIBLE                  (webkit_accessible_get_type ())
33#define WEBKIT_ACCESSIBLE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessible))
34#define WEBKIT_ACCESSIBLE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessibleClass))
35#define WEBKIT_IS_ACCESSIBLE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEBKIT_TYPE_ACCESSIBLE))
36#define WEBKIT_IS_ACCESSIBLE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), WEBKIT_TYPE_ACCESSIBLE))
37#define WEBKIT_ACCESSIBLE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), WEBKIT_TYPE_ACCESSIBLE, WebKitAccessibleClass))
38
39typedef struct _WebKitAccessible                WebKitAccessible;
40typedef struct _WebKitAccessibleClass           WebKitAccessibleClass;
41
42struct _WebKitAccessible
43{
44    AtkObject parent;
45    WebCore::AccessibilityObject* m_object;
46};
47
48struct _WebKitAccessibleClass
49{
50    AtkObjectClass parent_class;
51};
52
53GType webkit_accessible_get_type (void) G_GNUC_CONST;
54
55WebKitAccessible* webkit_accessible_new (WebCore::AccessibilityObject* core_object);
56
57WebCore::AccessibilityObject* webkit_accessible_get_accessibility_object (WebKitAccessible* accessible);
58
59void webkit_accessible_detach (WebKitAccessible* accessible);
60
61AtkObject* webkit_accessible_get_focused_element(WebKitAccessible* accessible);
62
63WebCore::AccessibilityObject* objectAndOffsetUnignored(WebCore::AccessibilityObject* coreObject, int& offset, bool ignoreLinks);
64
65G_END_DECLS
66
67#endif // AccessibilityObjectWrapperAtk_h
68