| 1 | /* |
| 2 | * This file is part of the WebKit open source project. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public License |
| 15 | * along with this library; see the file COPYING.LIB. If not, write to |
| 16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
| 20 | #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) |
| 21 | #error "Only <webkitdom/webkitdom.h> can be included directly." |
| 22 | #endif |
| 23 | |
| 24 | #ifndef WebKitDOMUIEvent_h |
| 25 | #define WebKitDOMUIEvent_h |
| 26 | |
| 27 | #include <glib-object.h> |
| 28 | #include <webkitdom/WebKitDOMEvent.h> |
| 29 | #include <webkitdom/webkitdomdefines.h> |
| 30 | |
| 31 | G_BEGIN_DECLS |
| 32 | |
| 33 | #define WEBKIT_DOM_TYPE_UI_EVENT (webkit_dom_ui_event_get_type()) |
| 34 | #define WEBKIT_DOM_UI_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_UI_EVENT, WebKitDOMUIEvent)) |
| 35 | #define WEBKIT_DOM_UI_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_UI_EVENT, WebKitDOMUIEventClass) |
| 36 | #define WEBKIT_DOM_IS_UI_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_UI_EVENT)) |
| 37 | #define WEBKIT_DOM_IS_UI_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_UI_EVENT)) |
| 38 | #define WEBKIT_DOM_UI_EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_UI_EVENT, WebKitDOMUIEventClass)) |
| 39 | |
| 40 | struct _WebKitDOMUIEvent { |
| 41 | WebKitDOMEvent parent_instance; |
| 42 | }; |
| 43 | |
| 44 | struct _WebKitDOMUIEventClass { |
| 45 | WebKitDOMEventClass parent_class; |
| 46 | }; |
| 47 | |
| 48 | WEBKIT_DEPRECATED GType |
| 49 | webkit_dom_ui_event_get_type(void); |
| 50 | |
| 51 | /** |
| 52 | * webkit_dom_ui_event_init_ui_event: |
| 53 | * @self: A #WebKitDOMUIEvent |
| 54 | * @type: A #gchar |
| 55 | * @canBubble: A #gboolean |
| 56 | * @cancelable: A #gboolean |
| 57 | * @view: A #WebKitDOMDOMWindow |
| 58 | * @detail: A #glong |
| 59 | * |
| 60 | * |
| 61 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 62 | **/ |
| 63 | WEBKIT_DEPRECATED void |
| 64 | webkit_dom_ui_event_init_ui_event(WebKitDOMUIEvent* self, const gchar* type, gboolean canBubble, gboolean cancelable, WebKitDOMDOMWindow* view, glong detail); |
| 65 | |
| 66 | /** |
| 67 | * webkit_dom_ui_event_get_view: |
| 68 | * @self: A #WebKitDOMUIEvent |
| 69 | * |
| 70 | * Returns: (transfer full): A #WebKitDOMDOMWindow |
| 71 | * |
| 72 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 73 | **/ |
| 74 | WEBKIT_DEPRECATED WebKitDOMDOMWindow* |
| 75 | webkit_dom_ui_event_get_view(WebKitDOMUIEvent* self); |
| 76 | |
| 77 | /** |
| 78 | * webkit_dom_ui_event_get_detail: |
| 79 | * @self: A #WebKitDOMUIEvent |
| 80 | * |
| 81 | * Returns: A #glong |
| 82 | * |
| 83 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 84 | **/ |
| 85 | WEBKIT_DEPRECATED glong |
| 86 | webkit_dom_ui_event_get_detail(WebKitDOMUIEvent* self); |
| 87 | |
| 88 | /** |
| 89 | * webkit_dom_ui_event_get_key_code: |
| 90 | * @self: A #WebKitDOMUIEvent |
| 91 | * |
| 92 | * Returns: A #glong |
| 93 | * |
| 94 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 95 | **/ |
| 96 | WEBKIT_DEPRECATED glong |
| 97 | webkit_dom_ui_event_get_key_code(WebKitDOMUIEvent* self); |
| 98 | |
| 99 | /** |
| 100 | * webkit_dom_ui_event_get_char_code: |
| 101 | * @self: A #WebKitDOMUIEvent |
| 102 | * |
| 103 | * Returns: A #glong |
| 104 | * |
| 105 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 106 | **/ |
| 107 | WEBKIT_DEPRECATED glong |
| 108 | webkit_dom_ui_event_get_char_code(WebKitDOMUIEvent* self); |
| 109 | |
| 110 | /** |
| 111 | * webkit_dom_ui_event_get_layer_x: |
| 112 | * @self: A #WebKitDOMUIEvent |
| 113 | * |
| 114 | * Returns: A #glong |
| 115 | * |
| 116 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 117 | **/ |
| 118 | WEBKIT_DEPRECATED glong |
| 119 | webkit_dom_ui_event_get_layer_x(WebKitDOMUIEvent* self); |
| 120 | |
| 121 | /** |
| 122 | * webkit_dom_ui_event_get_layer_y: |
| 123 | * @self: A #WebKitDOMUIEvent |
| 124 | * |
| 125 | * Returns: A #glong |
| 126 | * |
| 127 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 128 | **/ |
| 129 | WEBKIT_DEPRECATED glong |
| 130 | webkit_dom_ui_event_get_layer_y(WebKitDOMUIEvent* self); |
| 131 | |
| 132 | /** |
| 133 | * webkit_dom_ui_event_get_page_x: |
| 134 | * @self: A #WebKitDOMUIEvent |
| 135 | * |
| 136 | * Returns: A #glong |
| 137 | * |
| 138 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 139 | **/ |
| 140 | WEBKIT_DEPRECATED glong |
| 141 | webkit_dom_ui_event_get_page_x(WebKitDOMUIEvent* self); |
| 142 | |
| 143 | /** |
| 144 | * webkit_dom_ui_event_get_page_y: |
| 145 | * @self: A #WebKitDOMUIEvent |
| 146 | * |
| 147 | * Returns: A #glong |
| 148 | * |
| 149 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 150 | **/ |
| 151 | WEBKIT_DEPRECATED glong |
| 152 | webkit_dom_ui_event_get_page_y(WebKitDOMUIEvent* self); |
| 153 | |
| 154 | G_END_DECLS |
| 155 | |
| 156 | #endif /* WebKitDOMUIEvent_h */ |
| 157 | |