1 /* webkit-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "WebKit", lower_case_cprefix = "webkit_")]
5 [CCode (cheader_filename = "webkit/webkit.h")]
6 public class Download : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Download (WebKit.NetworkRequest request);
10 public uint64 get_current_size ();
11 public unowned string get_destination_uri ();
12 public double get_elapsed_time ();
13 public unowned WebKit.NetworkRequest get_network_request ();
14 public double get_progress ();
15 public WebKit.DownloadStatus get_status ();
16 public unowned string get_suggested_filename ();
17 public uint64 get_total_size ();
18 public unowned string get_uri ();
19 public void set_destination_uri (string destination_uri);
21 public uint64 current_size { get; }
22 public string destination_uri { get; set; }
23 public WebKit.NetworkRequest network_request { get; construct; }
24 public double progress { get; }
25 public WebKit.DownloadStatus status { get; }
26 public string suggested_filename { get; }
27 public uint64 total_size { get; }
28 public virtual signal bool error (int p0, int p1, string p2);
30 [CCode (cheader_filename = "webkit/webkit.h")]
31 public class NetworkRequest : GLib.Object {
32 [CCode (has_construct_function = false)]
33 public NetworkRequest (string uri);
34 public unowned Soup.Message get_message ();
35 public unowned string get_uri ();
36 public void set_uri (string uri);
37 public Soup.Message message { get; construct; }
38 public string uri { get; set; }
40 [CCode (cheader_filename = "webkit/webkit.h")]
41 public class NetworkResponse : GLib.Object {
42 [CCode (has_construct_function = false)]
43 public NetworkResponse (string uri);
44 public unowned Soup.Message get_message ();
45 public unowned string get_uri ();
46 public void set_uri (string uri);
47 public Soup.Message message { get; construct; }
48 public string uri { get; set; }
50 [CCode (cheader_filename = "webkit/webkit.h")]
51 public class SecurityOrigin : GLib.Object {
52 public unowned GLib.List get_all_web_databases ();
53 public unowned string get_host ();
54 public uint get_port ();
55 public unowned string get_protocol ();
56 public uint64 get_web_database_quota ();
57 public uint64 get_web_database_usage ();
58 public void set_web_database_quota (uint64 quota);
59 public string host { get; }
60 public uint port { get; }
61 public string protocol { get; }
62 public uint64 web_database_quota { get; set; }
63 public uint64 web_database_usage { get; }
65 [CCode (cheader_filename = "webkit/webkit.h")]
66 public class SoupAuthDialog : GLib.Object, Soup.SessionFeature {
67 public virtual signal unowned Gtk.Widget current_toplevel (Soup.Message message);
69 [CCode (cheader_filename = "webkit/webkit.h")]
70 public class WebBackForwardList : GLib.Object {
71 public void add_item (WebKit.WebHistoryItem history_item);
72 public bool contains_item (WebKit.WebHistoryItem history_item);
73 public unowned WebKit.WebHistoryItem get_back_item ();
74 public int get_back_length ();
75 public unowned GLib.List get_back_list_with_limit (int limit);
76 public unowned WebKit.WebHistoryItem get_current_item ();
77 public unowned WebKit.WebHistoryItem get_forward_item ();
78 public int get_forward_length ();
79 public unowned GLib.List get_forward_list_with_limit (int limit);
80 public int get_limit ();
81 public unowned WebKit.WebHistoryItem get_nth_item (int index);
82 public void go_back ();
83 public void go_forward ();
84 public void go_to_item (WebKit.WebHistoryItem history_item);
85 public void set_limit (int limit);
86 [CCode (has_construct_function = false)]
87 public WebBackForwardList.with_web_view (WebKit.WebView web_view);
89 [CCode (cheader_filename = "webkit/webkit.h")]
90 public class WebDataSource : GLib.Object {
91 [CCode (has_construct_function = false)]
92 public WebDataSource ();
93 public unowned GLib.StringBuilder get_data ();
94 public unowned string get_encoding ();
95 public unowned WebKit.NetworkRequest get_initial_request ();
96 public unowned WebKit.WebResource get_main_resource ();
97 public unowned WebKit.NetworkRequest get_request ();
98 public unowned string get_unreachable_uri ();
99 public unowned WebKit.WebFrame get_web_frame ();
100 public bool is_loading ();
101 [CCode (has_construct_function = false)]
102 public WebDataSource.with_request (WebKit.NetworkRequest request);
104 [CCode (cheader_filename = "webkit/webkit.h")]
105 public class WebDatabase : GLib.Object {
106 public unowned string get_display_name ();
107 public uint64 get_expected_size ();
108 public unowned string get_filename ();
109 public unowned string get_name ();
110 public unowned WebKit.SecurityOrigin get_security_origin ();
111 public uint64 get_size ();
112 public void remove ();
113 public string display_name { get; }
114 public uint64 expected_size { get; }
115 public string filename { get; }
116 public string name { get; construct; }
117 public WebKit.SecurityOrigin security_origin { get; construct; }
118 public uint64 size { get; }
120 [CCode (cheader_filename = "webkit/webkit.h")]
121 public class WebFrame : GLib.Object {
122 [CCode (has_construct_function = false)]
123 public WebFrame (WebKit.WebView web_view);
124 public unowned WebKit.WebFrame find_frame (string name);
125 public unowned WebKit.WebDataSource get_data_source ();
126 public Gtk.PolicyType get_horizontal_scrollbar_policy ();
127 public WebKit.LoadStatus get_load_status ();
128 public unowned string get_name ();
129 public unowned WebKit.WebFrame get_parent ();
130 public unowned WebKit.WebDataSource get_provisional_data_source ();
131 public unowned WebKit.SecurityOrigin get_security_origin ();
132 public unowned string get_title ();
133 public unowned string get_uri ();
134 public Gtk.PolicyType get_vertical_scrollbar_policy ();
135 public unowned WebKit.WebView get_web_view ();
136 public void load_alternate_string (string content, string base_url, string unreachable_url);
137 public void load_request (WebKit.NetworkRequest request);
138 public void load_string (string content, string mime_type, string encoding, string base_uri);
139 public void load_uri (string uri);
140 public void print ();
141 public Gtk.PrintOperationResult print_full (Gtk.PrintOperation operation, Gtk.PrintOperationAction action) throws GLib.Error;
142 public void reload ();
143 public void stop_loading ();
144 public Gtk.PolicyType horizontal_scrollbar_policy { get; }
145 public WebKit.LoadStatus load_status { get; }
146 public string name { get; }
147 public string title { get; }
148 public string uri { get; }
149 public Gtk.PolicyType vertical_scrollbar_policy { get; }
150 public virtual signal void cleared ();
151 public virtual signal void hovering_over_link (string p0, string p1);
152 public virtual signal void load_committed ();
153 public virtual signal void load_done (bool p0);
154 public virtual signal bool scrollbars_policy_changed ();
155 public virtual signal void title_changed (string p0);
157 [CCode (cheader_filename = "webkit/webkit.h")]
158 public class WebHistoryItem : GLib.Object {
159 [CCode (has_construct_function = false)]
160 public WebHistoryItem ();
161 public unowned string get_alternate_title ();
162 public double get_last_visited_time ();
163 public unowned string get_original_uri ();
164 public unowned string get_title ();
165 public unowned string get_uri ();
166 public void set_alternate_title (string title);
167 [CCode (has_construct_function = false)]
168 public WebHistoryItem.with_data (string uri, string title);
169 public string alternate_title { get; set; }
170 public double last_visited_time { get; }
171 public string original_uri { get; }
172 public string title { get; }
173 public string uri { get; }
175 [CCode (cheader_filename = "webkit/webkit.h")]
176 public class WebInspector : GLib.Object {
177 public unowned string get_inspected_uri ();
178 public unowned WebKit.WebView get_web_view ();
179 public string inspected_uri { get; }
181 public bool javascript_profiling_enabled { get; set; }
182 public WebKit.WebView web_view { get; }
183 public virtual signal bool attach_window ();
184 public virtual signal bool close_window ();
185 public virtual signal bool detach_window ();
186 public virtual signal void finished ();
187 public virtual signal unowned WebKit.WebView inspect_web_view (WebKit.WebView p0);
188 public virtual signal bool show_window ();
190 [CCode (cheader_filename = "webkit/webkit.h")]
191 public class WebNavigationAction : GLib.Object {
192 public int get_button ();
193 public int get_modifier_state ();
194 public unowned string get_original_uri ();
195 public WebKit.WebNavigationReason get_reason ();
196 public unowned string get_target_frame ();
197 public void set_original_uri (string originalUri);
198 public void set_reason (WebKit.WebNavigationReason reason);
199 public int button { get; construct; }
200 public int modifier_state { get; construct; }
201 public string original_uri { get; set construct; }
202 public WebKit.WebNavigationReason reason { get; set construct; }
203 public string target_frame { get; construct; }
205 [CCode (cheader_filename = "webkit/webkit.h")]
206 public class WebPolicyDecision : GLib.Object {
207 public void download ();
208 public void ignore ();
211 [CCode (cheader_filename = "webkit/webkit.h")]
212 public class WebResource : GLib.Object {
213 [CCode (has_construct_function = false)]
214 public WebResource (string data, ssize_t size, string uri, string mime_type, string encoding, string frame_name);
215 public unowned GLib.StringBuilder get_data ();
216 public unowned string get_encoding ();
217 public unowned string get_frame_name ();
218 public unowned string get_mime_type ();
219 public unowned string get_uri ();
220 public string encoding { get; }
221 public string frame_name { get; }
222 public string mime_type { get; }
223 public string uri { get; construct; }
225 [CCode (cheader_filename = "webkit/webkit.h")]
226 public class WebSettings : GLib.Object {
227 [CCode (has_construct_function = false)]
228 public WebSettings ();
229 public WebKit.WebSettings copy ();
230 public unowned string get_user_agent ();
232 public bool auto_load_images { get; set construct; }
234 public bool auto_shrink_images { get; set construct; }
236 public string cursive_font_family { owned get; set construct; }
238 public string default_encoding { owned get; set construct; }
240 public string default_font_family { owned get; set construct; }
242 public int default_font_size { get; set construct; }
244 public int default_monospace_font_size { get; set construct; }
246 public WebKit.EditingBehavior editing_behavior { get; set construct; }
248 public bool enable_caret_browsing { get; set construct; }
250 public bool enable_developer_extras { get; set construct; }
252 public bool enable_html5_database { get; set construct; }
254 public bool enable_html5_local_storage { get; set construct; }
256 public bool enable_offline_web_application_cache { get; set construct; }
258 public bool enable_plugins { get; set construct; }
260 public bool enable_private_browsing { get; set construct; }
262 public bool enable_scripts { get; set construct; }
264 public bool enable_spell_checking { get; set construct; }
266 public bool enable_universal_access_from_file_uris { get; set construct; }
268 public bool enable_xss_auditor { get; set construct; }
270 public bool enforce_96_dpi { get; set construct; }
272 public string fantasy_font_family { owned get; set construct; }
274 public bool javascript_can_open_windows_automatically { get; set construct; }
276 public int minimum_font_size { get; set construct; }
278 public int minimum_logical_font_size { get; set construct; }
280 public string monospace_font_family { owned get; set construct; }
282 public bool print_backgrounds { get; set construct; }
284 public bool resizable_text_areas { get; set construct; }
286 public string sans_serif_font_family { owned get; set construct; }
288 public string serif_font_family { owned get; set construct; }
290 public string spell_checking_languages { owned get; set construct; }
292 public string user_agent { owned get; set construct; }
294 public string user_stylesheet_uri { owned get; set construct; }
296 public float zoom_step { get; set construct; }
298 [CCode (cheader_filename = "webkit/webkit.h")]
299 public class WebView : Gtk.Container, Atk.Implementor, Gtk.Buildable {
300 [CCode (type = "GtkWidget*", has_construct_function = false)]
302 public bool can_copy_clipboard ();
303 public bool can_cut_clipboard ();
304 public bool can_go_back ();
305 public bool can_go_back_or_forward (int steps);
306 public bool can_go_forward ();
307 public bool can_paste_clipboard ();
308 public bool can_redo ();
309 public bool can_show_mime_type (string mime_type);
310 public bool can_undo ();
312 public virtual unowned string choose_file (WebKit.WebFrame frame, string old_file);
313 public void delete_selection ();
314 public void execute_script (string script);
315 public unowned WebKit.WebBackForwardList get_back_forward_list ();
316 public unowned Gtk.TargetList get_copy_target_list ();
317 public unowned string get_custom_encoding ();
318 public bool get_editable ();
319 public unowned string get_encoding ();
320 public unowned WebKit.WebFrame get_focused_frame ();
321 public bool get_full_content_zoom ();
322 public unowned WebKit.WebInspector get_inspector ();
323 public WebKit.LoadStatus get_load_status ();
324 public unowned WebKit.WebFrame get_main_frame ();
325 public unowned Gtk.TargetList get_paste_target_list ();
326 public double get_progress ();
327 public unowned WebKit.WebSettings get_settings ();
328 public unowned string get_title ();
329 public bool get_transparent ();
330 public unowned string get_uri ();
331 public bool get_view_source_mode ();
332 public unowned WebKit.WebWindowFeatures get_window_features ();
333 public float get_zoom_level ();
334 public void go_back ();
335 public void go_back_or_forward (int steps);
336 public void go_forward ();
337 public bool go_to_back_forward_item (WebKit.WebHistoryItem item);
338 public bool has_selection ();
339 public void load_html_string (string content, string base_uri);
340 public void load_request (WebKit.NetworkRequest request);
341 public void load_string (string content, string mime_type, string encoding, string base_uri);
342 public void load_uri (string uri);
343 public uint mark_text_matches (string str, bool case_sensitive, uint limit);
344 public void open (string uri);
345 public void reload ();
346 public void reload_bypass_cache ();
347 public bool search_text (string text, bool case_sensitive, bool forward, bool wrap);
348 public void set_custom_encoding (string encoding);
349 public void set_editable (bool flag);
350 public void set_full_content_zoom (bool full_content_zoom);
351 public void set_highlight_text_matches (bool highlight);
352 public void set_maintains_back_forward_list (bool flag);
353 public void set_settings (WebKit.WebSettings settings);
354 public void set_transparent (bool flag);
355 public void set_view_source_mode (bool view_source_mode);
356 public void set_zoom_level (float zoom_level);
357 public void stop_loading ();
358 public void unmark_text_matches ();
359 public void zoom_in ();
360 public void zoom_out ();
361 public Gtk.TargetList copy_target_list { get; }
362 public string custom_encoding { get; set; }
363 public bool editable { get; set; }
364 public string encoding { get; }
365 public bool full_content_zoom { get; set; }
366 public WebKit.LoadStatus load_status { get; }
367 public Gtk.TargetList paste_target_list { get; }
368 public double progress { get; }
369 public WebKit.WebSettings settings { get; set; }
370 public string title { get; }
371 public bool transparent { get; set; }
372 public string uri { get; }
374 public WebKit.WebInspector web_inspector { owned get; }
376 public WebKit.WebWindowFeatures window_features { owned get; set; }
377 public float zoom_level { get; set; }
378 public virtual signal bool close_web_view ();
379 public virtual signal bool console_message (string message, int line_number, string source_id);
381 public virtual signal void copy_clipboard ();
382 public virtual signal unowned Gtk.Widget create_plugin_widget (string p0, string p1, GLib.HashTable p2);
383 public virtual signal unowned WebKit.WebView create_web_view (WebKit.WebFrame web_frame);
385 public virtual signal void cut_clipboard ();
386 public virtual signal void database_quota_exceeded (GLib.Object p0, GLib.Object p1);
387 public virtual signal bool download_requested (GLib.Object p0);
388 public virtual signal void hovering_over_link (string? p0, string p1);
389 public virtual signal void icon_loaded ();
390 public virtual signal void load_committed (WebKit.WebFrame p0);
391 public virtual signal bool load_error (WebKit.WebFrame p0, string p1, void* p2);
392 public virtual signal void load_finished (WebKit.WebFrame p0);
393 public virtual signal void load_progress_changed (int p0);
394 public virtual signal void load_started (WebKit.WebFrame p0);
395 public virtual signal bool mime_type_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, string p2, WebKit.WebPolicyDecision p3);
397 public virtual signal bool move_cursor (Gtk.MovementStep step, int count);
398 public virtual signal bool navigation_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, WebKit.WebNavigationAction p2, WebKit.WebPolicyDecision p3);
399 public virtual signal WebKit.NavigationResponse navigation_requested (WebKit.WebFrame frame, WebKit.NetworkRequest request);
400 public virtual signal bool new_window_policy_decision_requested (WebKit.WebFrame p0, WebKit.NetworkRequest p1, WebKit.WebNavigationAction p2, WebKit.WebPolicyDecision p3);
402 public virtual signal void paste_clipboard ();
403 public virtual signal void populate_popup (Gtk.Menu p0);
404 public virtual signal bool print_requested (WebKit.WebFrame p0);
406 public virtual signal void redo ();
407 public virtual signal void resource_request_starting (WebKit.WebFrame p0, WebKit.WebResource p1, WebKit.NetworkRequest p2, WebKit.NetworkResponse p3);
408 public virtual signal bool script_alert (WebKit.WebFrame frame, string alert_message);
409 public virtual signal bool script_confirm (WebKit.WebFrame frame, string confirm_message, void* did_confirm);
410 public virtual signal bool script_prompt (WebKit.WebFrame frame, string message, string default_value, void* value);
412 public virtual signal void select_all ();
413 public virtual signal void selection_changed ();
414 public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
415 public virtual signal void status_bar_text_changed (string p0);
416 public virtual signal void title_changed (WebKit.WebFrame p0, string p1);
418 public virtual signal void undo ();
419 public virtual signal bool web_view_ready ();
420 public virtual signal void window_object_cleared (WebKit.WebFrame frame, void* context, void* window_object);
422 [CCode (cheader_filename = "webkit/webkit.h")]
423 public class WebWindowFeatures : GLib.Object {
424 [CCode (has_construct_function = false)]
425 public WebWindowFeatures ();
426 public bool equal (WebKit.WebWindowFeatures features2);
428 public bool fullscreen { get; set construct; }
430 public int height { get; set construct; }
432 public bool locationbar_visible { get; set construct; }
434 public bool menubar_visible { get; set construct; }
436 public bool scrollbar_visible { get; set construct; }
438 public bool statusbar_visible { get; set construct; }
440 public bool toolbar_visible { get; set construct; }
442 public int width { get; set construct; }
444 public int x { get; set construct; }
446 public int y { get; set construct; }
448 [CCode (cprefix = "WEBKIT_DOWNLOAD_ERROR_", cheader_filename = "webkit/webkit.h")]
449 public enum DownloadError {
454 [CCode (cprefix = "WEBKIT_DOWNLOAD_STATUS_", cheader_filename = "webkit/webkit.h")]
455 public enum DownloadStatus {
462 [CCode (cprefix = "WEBKIT_EDITING_BEHAVIOR_", cheader_filename = "webkit/webkit.h")]
463 public enum EditingBehavior {
467 [CCode (cprefix = "WEBKIT_LOAD_", cheader_filename = "webkit/webkit.h")]
468 public enum LoadStatus {
472 FIRST_VISUALLY_NON_EMPTY_LAYOUT
474 [CCode (cprefix = "WEBKIT_NAVIGATION_RESPONSE_", cheader_filename = "webkit/webkit.h")]
475 public enum NavigationResponse {
480 [CCode (cprefix = "WEBKIT_NETWORK_ERROR_", cheader_filename = "webkit/webkit.h")]
481 public enum NetworkError {
488 [CCode (cprefix = "WEBKIT_PLUGIN_ERROR_", cheader_filename = "webkit/webkit.h")]
489 public enum PluginError {
494 CONNECTION_CANCELLED,
497 [CCode (cprefix = "WEBKIT_POLICY_ERROR_", cheader_filename = "webkit/webkit.h")]
498 public enum PolicyError {
500 CANNOT_SHOW_MIME_TYPE,
502 FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
503 CANNOT_USE_RESTRICTED_PORT
505 [CCode (cprefix = "WEBKIT_WEB_NAVIGATION_REASON_", cheader_filename = "webkit/webkit.h")]
506 public enum WebNavigationReason {
514 [CCode (cprefix = "WEBKIT_WEB_VIEW_TARGET_INFO_", cheader_filename = "webkit/webkit.h")]
515 public enum WebViewTargetInfo {
522 [CCode (cheader_filename = "webkit/webkit.h")]
523 public const int MAJOR_VERSION;
524 [CCode (cheader_filename = "webkit/webkit.h")]
525 public const int MICRO_VERSION;
526 [CCode (cheader_filename = "webkit/webkit.h")]
527 public const int MINOR_VERSION;
528 [CCode (cheader_filename = "webkit/webkit.h")]
529 public const int SOUP_AUTH_DIALOG_H;
530 [CCode (cheader_filename = "webkit/webkit.h")]
531 public const int USER_AGENT_MAJOR_VERSION;
532 [CCode (cheader_filename = "webkit/webkit.h")]
533 public const int USER_AGENT_MINOR_VERSION;
534 [CCode (cheader_filename = "webkit/webkit.h")]
535 public static bool check_version (uint major, uint minor, uint micro);
536 [CCode (cheader_filename = "webkit/webkit.h")]
537 public static unowned Soup.Session get_default_session ();
538 [CCode (cheader_filename = "webkit/webkit.h")]
539 public static uint64 get_default_web_database_quota ();
540 [CCode (cheader_filename = "webkit/webkit.h")]
541 public static unowned string get_web_database_directory_path ();
542 [CCode (cheader_filename = "webkit/webkit.h")]
543 public static uint major_version ();
544 [CCode (cheader_filename = "webkit/webkit.h")]
545 public static uint micro_version ();
546 [CCode (cheader_filename = "webkit/webkit.h")]
547 public static uint minor_version ();
548 [CCode (cheader_filename = "webkit/webkit.h")]
549 public static GLib.Quark network_error_quark ();
550 [CCode (cheader_filename = "webkit/webkit.h")]
551 public static GLib.Quark plugin_error_quark ();
552 [CCode (cheader_filename = "webkit/webkit.h")]
553 public static GLib.Quark policy_error_quark ();
554 [CCode (cheader_filename = "webkit/webkit.h")]
555 public static void remove_all_web_databases ();
556 [CCode (cheader_filename = "webkit/webkit.h")]
557 public static void set_default_web_database_quota (uint64 defaultQuota);
558 [CCode (cheader_filename = "webkit/webkit.h")]
559 public static void set_web_database_directory_path (string path);