1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
|
/* webkitgtk-web-process-extension-6.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "WebKit", gir_namespace = "WebKitWebProcessExtension", gir_version = "6.0", lower_case_cprefix = "webkit_")]
namespace WebKit {
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_context_menu_get_type ()")]
public sealed class ContextMenu : GLib.Object {
[CCode (has_construct_function = false)]
public ContextMenu ();
public void append (WebKit.ContextMenuItem item);
public unowned WebKit.ContextMenuItem first ();
[Version (since = "2.40")]
public unowned Gdk.Event get_event ();
public unowned WebKit.ContextMenuItem get_item_at_position (uint position);
public unowned GLib.List<WebKit.ContextMenuItem> get_items ();
public uint get_n_items ();
[Version (since = "2.8")]
public unowned GLib.Variant get_user_data ();
public void insert (WebKit.ContextMenuItem item, int position);
public unowned WebKit.ContextMenuItem last ();
public void move_item (WebKit.ContextMenuItem item, int position);
public void prepend (WebKit.ContextMenuItem item);
public void remove (WebKit.ContextMenuItem item);
public void remove_all ();
[Version (since = "2.8")]
public void set_user_data (GLib.Variant user_data);
[CCode (has_construct_function = false)]
public ContextMenu.with_items (GLib.List<WebKit.ContextMenuItem> items);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_context_menu_item_get_type ()")]
public sealed class ContextMenuItem : GLib.InitiallyUnowned {
[CCode (has_construct_function = false)]
protected ContextMenuItem ();
[CCode (has_construct_function = false)]
[Version (since = "2.18")]
public ContextMenuItem.from_gaction (GLib.Action action, string label, GLib.Variant? target);
[CCode (has_construct_function = false)]
public ContextMenuItem.from_stock_action (WebKit.ContextMenuAction action);
[CCode (has_construct_function = false)]
public ContextMenuItem.from_stock_action_with_label (WebKit.ContextMenuAction action, string label);
[Version (since = "2.18")]
public unowned GLib.Action get_gaction ();
public WebKit.ContextMenuAction get_stock_action ();
public unowned WebKit.ContextMenu get_submenu ();
public bool is_separator ();
[CCode (has_construct_function = false)]
public ContextMenuItem.separator ();
public void set_submenu (WebKit.ContextMenu? submenu);
[CCode (has_construct_function = false)]
public ContextMenuItem.with_submenu (string label, WebKit.ContextMenu submenu);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_frame_get_type ()")]
[Version (since = "2.26")]
public sealed class Frame : GLib.Object {
[CCode (has_construct_function = false)]
protected Frame ();
public uint64 get_id ();
[Version (since = "2.22")]
public JSC.Context get_js_context ();
[Version (since = "2.22")]
public JSC.Context get_js_context_for_script_world (WebKit.ScriptWorld world);
[Version (since = "2.2")]
public unowned string get_uri ();
[Version (since = "2.2")]
public bool is_main_frame ();
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_hit_test_result_get_type ()")]
public sealed class HitTestResult : GLib.Object {
[CCode (has_construct_function = false)]
protected HitTestResult ();
public bool context_is_editable ();
public bool context_is_image ();
public bool context_is_link ();
public bool context_is_media ();
public bool context_is_scrollbar ();
[Version (since = "2.8")]
public bool context_is_selection ();
public uint get_context ();
public unowned string get_image_uri ();
public unowned string get_link_label ();
public unowned string get_link_title ();
public unowned string get_link_uri ();
public unowned string get_media_uri ();
public uint context { get; construct; }
public string image_uri { get; construct; }
public string link_label { get; construct; }
public string link_title { get; construct; }
public string link_uri { get; construct; }
public string media_uri { get; construct; }
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_script_world_get_type ()")]
public sealed class ScriptWorld : GLib.Object {
[CCode (has_construct_function = false)]
[Version (since = "2.2")]
public ScriptWorld ();
[Version (since = "2.2")]
public static unowned WebKit.ScriptWorld get_default ();
[Version (since = "2.22")]
public unowned string get_name ();
[CCode (has_construct_function = false)]
[Version (since = "2.22")]
public ScriptWorld.with_name (string name);
[Version (since = "2.2")]
public signal void window_object_cleared (WebKit.WebPage page, WebKit.Frame frame);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_uri_request_get_type ()")]
public sealed class URIRequest : GLib.Object {
[CCode (has_construct_function = false)]
public URIRequest (string uri);
public unowned Soup.MessageHeaders get_http_headers ();
[Version (since = "2.12")]
public unowned string get_http_method ();
public unowned string get_uri ();
public void set_uri (string uri);
public string uri { get; set construct; }
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_uri_response_get_type ()")]
public sealed class URIResponse : GLib.Object {
[CCode (has_construct_function = false)]
protected URIResponse ();
public uint64 get_content_length ();
[Version (since = "2.6")]
public unowned Soup.MessageHeaders get_http_headers ();
public unowned string get_mime_type ();
public uint get_status_code ();
public unowned string get_suggested_filename ();
public unowned string get_uri ();
public uint64 content_length { get; }
[Version (since = "2.6")]
public Soup.MessageHeaders http_headers { get; }
public string mime_type { get; }
public uint status_code { get; }
public string suggested_filename { get; }
public string uri { get; }
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_user_message_get_type ()")]
[Version (since = "2.28")]
public sealed class UserMessage : GLib.InitiallyUnowned {
[CCode (has_construct_function = false)]
public UserMessage (string name, GLib.Variant? parameters);
public static GLib.Quark error_quark ();
public unowned GLib.UnixFDList? get_fd_list ();
public unowned string get_name ();
public unowned GLib.Variant? get_parameters ();
public void send_reply (WebKit.UserMessage reply);
[CCode (has_construct_function = false)]
public UserMessage.with_fd_list (string name, GLib.Variant? parameters, GLib.UnixFDList? fd_list);
public GLib.UnixFDList fd_list { get; construct; }
public string name { get; construct; }
public GLib.Variant parameters { get; construct; }
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_web_editor_get_type ()")]
[Version (since = "2.10")]
public sealed class WebEditor : GLib.Object {
[CCode (has_construct_function = false)]
protected WebEditor ();
public unowned WebKit.WebPage get_page ();
public signal void selection_changed ();
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_web_form_manager_get_type ()")]
[Version (since = "2.40")]
public class WebFormManager : GLib.Object {
[CCode (has_construct_function = false)]
protected WebFormManager ();
public static void input_element_auto_fill (JSC.Value element, string value);
public static bool input_element_is_auto_filled (JSC.Value element);
public static bool input_element_is_user_edited (JSC.Value element);
public signal void form_controls_associated (WebKit.Frame frame, GLib.GenericArray<JSC.Value> elements);
public signal void will_send_submit_event (JSC.Value form, WebKit.Frame source_frame, WebKit.Frame target_frame);
public signal void will_submit_form (JSC.Value form, WebKit.Frame source_frame, WebKit.Frame target_frame);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_web_hit_test_result_get_type ()")]
[Version (since = "2.8")]
public sealed class WebHitTestResult : GLib.Object {
[CCode (has_construct_function = false)]
protected WebHitTestResult ();
public bool context_is_editable ();
public bool context_is_image ();
public bool context_is_link ();
public bool context_is_media ();
public bool context_is_scrollbar ();
public bool context_is_selection ();
public uint get_context ();
public unowned string get_image_uri ();
[Version (since = "2.40")]
public JSC.Value? get_js_node (WebKit.ScriptWorld? world);
public unowned string get_link_label ();
public unowned string get_link_title ();
public unowned string get_link_uri ();
public unowned string get_media_uri ();
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_web_page_get_type ()")]
public sealed class WebPage : GLib.Object {
[CCode (has_construct_function = false)]
protected WebPage ();
[Version (since = "2.10")]
public unowned WebKit.WebEditor get_editor ();
[Version (since = "2.40")]
public unowned WebKit.WebFormManager get_form_manager (WebKit.ScriptWorld? world);
public uint64 get_id ();
[Version (since = "2.2")]
public unowned WebKit.Frame get_main_frame ();
public unowned string get_uri ();
[Version (since = "2.28")]
public async WebKit.UserMessage send_message_to_view (WebKit.UserMessage message, GLib.Cancellable? cancellable) throws GLib.Error;
public string uri { get; }
[Version (since = "2.8")]
public signal bool context_menu (WebKit.ContextMenu context_menu, WebKit.WebHitTestResult hit_test_result);
public signal void document_loaded ();
public signal bool send_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
[Version (since = "2.28")]
public signal bool user_message_received (WebKit.UserMessage message);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", type_id = "webkit_web_process_extension_get_type ()")]
[Version (since = "2.40")]
public sealed class WebProcessExtension : GLib.Object {
[CCode (has_construct_function = false)]
protected WebProcessExtension ();
public unowned WebKit.WebPage get_page (uint64 page_id);
public async WebKit.UserMessage send_message_to_context (WebKit.UserMessage message, GLib.Cancellable? cancellable) throws GLib.Error;
public signal void page_created (WebKit.WebPage web_page);
public signal void user_message_received (WebKit.UserMessage message);
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", has_type_id = false)]
public enum ContextMenuAction {
NO_ACTION,
OPEN_LINK,
OPEN_LINK_IN_NEW_WINDOW,
DOWNLOAD_LINK_TO_DISK,
COPY_LINK_TO_CLIPBOARD,
OPEN_IMAGE_IN_NEW_WINDOW,
DOWNLOAD_IMAGE_TO_DISK,
COPY_IMAGE_TO_CLIPBOARD,
COPY_IMAGE_URL_TO_CLIPBOARD,
OPEN_FRAME_IN_NEW_WINDOW,
GO_BACK,
GO_FORWARD,
STOP,
RELOAD,
COPY,
CUT,
PASTE,
DELETE,
SELECT_ALL,
INPUT_METHODS,
UNICODE,
SPELLING_GUESS,
NO_GUESSES_FOUND,
IGNORE_SPELLING,
LEARN_SPELLING,
IGNORE_GRAMMAR,
FONT_MENU,
BOLD,
ITALIC,
UNDERLINE,
OUTLINE,
INSPECT_ELEMENT,
OPEN_VIDEO_IN_NEW_WINDOW,
OPEN_AUDIO_IN_NEW_WINDOW,
COPY_VIDEO_LINK_TO_CLIPBOARD,
COPY_AUDIO_LINK_TO_CLIPBOARD,
TOGGLE_MEDIA_CONTROLS,
TOGGLE_MEDIA_LOOP,
ENTER_VIDEO_FULLSCREEN,
MEDIA_PLAY,
MEDIA_PAUSE,
MEDIA_MUTE,
DOWNLOAD_VIDEO_TO_DISK,
DOWNLOAD_AUDIO_TO_DISK,
INSERT_EMOJI,
PASTE_AS_PLAIN_TEXT,
CUSTOM
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", has_type_id = false)]
[Flags]
public enum HitTestResultContext {
DOCUMENT,
LINK,
IMAGE,
MEDIA,
EDITABLE,
SCROLLBAR,
SELECTION
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", cprefix = "WEBKIT_USER_MESSAGE_UNHANDLED_", has_type_id = false)]
[Version (since = "2.28")]
public enum UserMessageError {
[CCode (cname = "WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE")]
USER_MESSAGE_UNHANDLED_MESSAGE
}
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", has_target = false)]
[Version (since = "2.40")]
public delegate void WebProcessExtensionInitializeFunction (WebKit.WebProcessExtension extension);
[CCode (cheader_filename = "webkit/webkit-web-process-extension.h", has_target = false)]
[Version (since = "2.40")]
public delegate void WebProcessExtensionInitializeWithUserDataFunction (WebKit.WebProcessExtension extension, GLib.Variant user_data);
}
|