• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2009 Collabora Ltd.
3  * Copyright (C) 2009 Igalia S.L.
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 webkithittestresult_h
22 #define webkithittestresult_h
23 
24 #include <glib-object.h>
25 
26 #include <webkit/webkitdefines.h>
27 
28 G_BEGIN_DECLS
29 
30 #define WEBKIT_TYPE_HIT_TEST_RESULT            (webkit_hit_test_result_get_type())
31 #define WEBKIT_HIT_TEST_RESULT(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_HIT_TEST_RESULT, WebKitHitTestResult))
32 #define WEBKIT_HIT_TEST_RESULT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  WEBKIT_TYPE_HIT_TEST_RESULT, WebKitHitTestResultClass))
33 #define WEBKIT_IS_HIT_TEST_RESULT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_HIT_TEST_RESULT))
34 #define WEBKIT_IS_HIT_TEST_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  WEBKIT_TYPE_HIT_TEST_RESULT))
35 #define WEBKIT_HIT_TEST_RESULT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  WEBKIT_TYPE_WEB_HIT_TEST_RESULT, WebKitHitTestResultClass))
36 
37 typedef struct _WebKitHitTestResultPrivate WebKitHitTestResultPrivate;
38 
39 struct _WebKitHitTestResult {
40     GObject parent_instance;
41 
42     /*< private >*/
43     WebKitHitTestResultPrivate *priv;
44 };
45 
46 struct _WebKitHitTestResultClass {
47     GObjectClass parent_class;
48 
49     /* Padding for future expansion */
50     void (*_webkit_reserved0) (void);
51     void (*_webkit_reserved1) (void);
52     void (*_webkit_reserved2) (void);
53     void (*_webkit_reserved3) (void);
54 };
55 
56 /**
57  * WebKitHitTestResultContext
58  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT: anywhere in the document.
59  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK: a hyperlink element.
60  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE: an image element.
61  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA: a video or audio element.
62  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION: the area is selected by
63  * the user.
64  * @WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE: the area is
65  * editable by the user.
66  */
67 typedef enum
68 {
69     WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT   = 1 << 1,
70     WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK       = 1 << 2,
71     WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE      = 1 << 3,
72     WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA      = 1 << 4,
73     WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION  = 1 << 5,
74     WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE   = 1 << 6,
75 } WebKitHitTestResultContext;
76 
77 WEBKIT_API GType
78 webkit_hit_test_result_get_type (void);
79 
80 G_END_DECLS
81 
82 #endif
83 
84