"items" : [
{
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,0,1",
+ "* pack" : "attach,0,0",
"Gtk.Justification justify" : "Gtk.Justification.RIGHT",
"label" : "Component Name",
"x_options" : 4,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,0,1",
+ "* pack" : "attach,1,0",
"id" : "name",
"xtype" : "Entry"
},
{
- "$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,1,2",
+ "* pack" : "attach,0,1",
"Gtk.Justification justify" : "Gtk.Justification.RIGHT",
"label" : "Title",
"x_options" : 4,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,1,2",
+ "* pack" : "attach,1,1",
"id" : "title",
"xtype" : "Entry"
},
"$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,2,3",
+ "* pack" : "attach,0,2",
"label" : "Region",
"tooltip_text" : "center, north, south, east, west",
"x_options" : 4,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,2,3",
+ "* pack" : "attach,1,2",
"id" : "region",
"xtype" : "Entry"
},
"$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,3,4",
+ "* pack" : "attach,0,3",
"label" : "Parent Name",
"x_options" : 4,
"xalign" : 0.90000000000000002,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,3,4",
+ "* pack" : "attach,1,3",
"id" : "parent",
"xtype" : "Entry"
},
"$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,4,5",
+ "* pack" : "attach,0,4",
"label" : "Permission Name",
"x_options" : 4,
"xalign" : 0.90000000000000002,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,4,5",
+ "* pack" : "attach,1,4",
"id" : "permname",
"xtype" : "Entry"
},
"$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,5,6",
+ "* pack" : "attach,0,6",
"label" : "Order (for tabs)",
"x_options" : 4,
"xalign" : 0.90000000000000002,
{
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,1,2,5,6",
+ "* pack" : "attach,1,6",
"id" : "modOrder",
"xtype" : "Entry"
},
"$ justify" : "Gtk.Justification.RIGHT",
"$ visible" : true,
"$ xns" : "Gtk",
- "* pack" : "attach_defaults,0,1,6,7",
+ "* pack" : "attach,0,7",
"label" : "Module to build (Vala only)",
"x_options" : 4,
"xalign" : 0.90000000000000002,
{
"$ xns" : "Gtk",
"* init" : "this.el.add_attribute(_this.dbcellrenderer.el , \"markup\", 1 );",
- "* pack" : "attach_defaults,1,2,6,7",
+ "* pack" : "attach,1,7",
"id" : "build_module",
"items" : [
{
],
"n_columns" : 2,
"n_rows" : 3,
- "xtype" : "Table"
+ "xtype" : "Grid"
}
],
"xtype" : "Box"
" //}",
"",
" if (!isNew) {",
- " try {",
- " this.updateFileFromEntry();",
- " } catch( JsRender.Error.RENAME_FILE_EXISTS er) {",
- " Xcls_StandardErrorDialog.singleton().show(",
- " this.el,",
- " \"The name you used already exists \"",
- " );",
- " return;",
- " ",
- " }",
+ " ",
+ " this.updateFileFromEntry();",
" ",
" ",
" _this.file.save();",
" ); ",
" return;",
" }",
- " ",
- " var f = JsRender.JsRender.factory(",
- " _this.file.project.xtype, ",
- " _this.file.project, ",
- " dir + \"/\" + fn + \".bjs\");",
+ " try {",
+ "\t\t var f = JsRender.JsRender.factory(",
+ "\t\t _this.file.project.xtype, ",
+ "\t\t _this.file.project, ",
+ "\t\t dir + \"/\" + fn + \".bjs\");",
"",
- " _this.file = f;",
+ "\t\t _this.file = f;",
" ",
- "",
+ "\t\t} catch (JsRender.Error e) {",
+ "\t\t Xcls_StandardErrorDialog.singleton().show(",
+ " this.el,",
+ " \"Error creating file? \"",
+ " );",
+ " return;",
+ "\t\t\t ",
+ "\t\t}",
" ",
" this.updateFileFromEntry();",
" _this.file.save();",
},
"title" : "New Component",
"xtype" : "Dialog",
- "| void show" : [
+ "| void show" : [
"(JsRender.JsRender c) ",
"{",
" this.project = c.project;",
" ",
"}"
],
- "| void updateFileFromEntry" : [
+ "| void updateFileFromEntry" : [
"() {",
"",
" _this.file.title = _this.title.el.get_text();",
" _this.file.modOrder = _this.modOrder.el.get_text();",
" ",
" if (_this.file.name.length > 0 && _this.file.name != _this.name.el.get_text()) {",
- " _this.file.renameTo(_this.name.el.get_text());",
+ " try {",
+ " \t_this.file.renameTo(_this.name.el.get_text());",
+ " \t} catch (JsRender.Error e) {",
+ " \t\treturn;",
+ " \t}",
" }",
" // store the module...",
" _this.file.build_module = \"\"; ",
this.el.modal = true;
var child_0 = new Xcls_Box2( _this );
child_0.ref();
- this.el.get_content_area().add( child_0.el );
+ this.el.get_content_area().add( child_0.el );
var child_1 = new Xcls_Button20( _this );
child_1.ref();
this.el.add_action_widget ( child_1.el , 0 );
//}
if (!isNew) {
- try {
- this.updateFileFromEntry();
- } catch( JsRender.Error.RENAME_FILE_EXISTS er) {
- Xcls_StandardErrorDialog.singleton().show(
- this.el,
- "The name you used already exists "
- );
- return;
-
- }
+
+ this.updateFileFromEntry();
_this.file.save();
);
return;
}
-
- var f = JsRender.JsRender.factory(
- _this.file.project.xtype,
- _this.file.project,
- dir + "/" + fn + ".bjs");
+ try {
+ var f = JsRender.JsRender.factory(
+ _this.file.project.xtype,
+ _this.file.project,
+ dir + "/" + fn + ".bjs");
- _this.file = f;
+ _this.file = f;
-
+ } catch (JsRender.Error e) {
+ Xcls_StandardErrorDialog.singleton().show(
+ this.el,
+ "Error creating file? "
+ );
+ return;
+
+ }
this.updateFileFromEntry();
_this.file.save();
_this.file.modOrder = _this.modOrder.el.get_text();
if (_this.file.name.length > 0 && _this.file.name != _this.name.el.get_text()) {
- _this.file.renameTo(_this.name.el.get_text());
+ try {
+ _this.file.renameTo(_this.name.el.get_text());
+ } catch (JsRender.Error e) {
+ return;
+ }
}
// store the module...
_this.file.build_module = "";
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_Table3( _this );
+ var child_0 = new Xcls_Grid3( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
}
// user defined functions
}
- public class Xcls_Table3 : Object
+ public class Xcls_Grid3 : Object
{
- public Gtk.Table el;
+ public Gtk.Grid el;
private Xcls_DialogNewComponent _this;
// my vars (def)
// ctor
- public Xcls_Table3(Xcls_DialogNewComponent _owner )
+ public Xcls_Grid3(Xcls_DialogNewComponent _owner )
{
_this = _owner;
- this.el = new Gtk.Table( 3, 2, true );
+ this.el = new Gtk.Grid();
// my vars (dec)
// set gobject values
var child_0 = new Xcls_Label4( _this );
child_0.ref();
- this.el.attach_defaults ( child_0.el , 0,1,0,1 );
+ this.el.attach ( child_0.el , 0,0 );
var child_1 = new Xcls_name( _this );
child_1.ref();
- this.el.attach_defaults ( child_1.el , 1,2,0,1 );
+ this.el.attach ( child_1.el , 1,0 );
var child_2 = new Xcls_Label6( _this );
child_2.ref();
- this.el.attach_defaults ( child_2.el , 0,1,1,2 );
+ this.el.attach ( child_2.el , 0,1 );
var child_3 = new Xcls_title( _this );
child_3.ref();
- this.el.attach_defaults ( child_3.el , 1,2,1,2 );
+ this.el.attach ( child_3.el , 1,1 );
var child_4 = new Xcls_Label8( _this );
child_4.ref();
- this.el.attach_defaults ( child_4.el , 0,1,2,3 );
+ this.el.attach ( child_4.el , 0,2 );
var child_5 = new Xcls_region( _this );
child_5.ref();
- this.el.attach_defaults ( child_5.el , 1,2,2,3 );
+ this.el.attach ( child_5.el , 1,2 );
var child_6 = new Xcls_Label10( _this );
child_6.ref();
- this.el.attach_defaults ( child_6.el , 0,1,3,4 );
+ this.el.attach ( child_6.el , 0,3 );
var child_7 = new Xcls_parent( _this );
child_7.ref();
- this.el.attach_defaults ( child_7.el , 1,2,3,4 );
+ this.el.attach ( child_7.el , 1,3 );
var child_8 = new Xcls_Label12( _this );
child_8.ref();
- this.el.attach_defaults ( child_8.el , 0,1,4,5 );
+ this.el.attach ( child_8.el , 0,4 );
var child_9 = new Xcls_permname( _this );
child_9.ref();
- this.el.attach_defaults ( child_9.el , 1,2,4,5 );
+ this.el.attach ( child_9.el , 1,4 );
var child_10 = new Xcls_Label14( _this );
child_10.ref();
- this.el.attach_defaults ( child_10.el , 0,1,5,6 );
+ this.el.attach ( child_10.el , 0,6 );
var child_11 = new Xcls_modOrder( _this );
child_11.ref();
- this.el.attach_defaults ( child_11.el , 1,2,5,6 );
+ this.el.attach ( child_11.el , 1,6 );
var child_12 = new Xcls_Label16( _this );
child_12.ref();
- this.el.attach_defaults ( child_12.el , 0,1,6,7 );
+ this.el.attach ( child_12.el , 0,7 );
var child_13 = new Xcls_build_module( _this );
child_13.ref();
- this.el.attach_defaults ( child_13.el , 1,2,6,7 );
+ this.el.attach ( child_13.el , 1,7 );
}
// user defined functions
"\tGtk.TextIter beg, st,en;",
"\t ",
"\tthis.buffer.el.get_start_iter(out beg);",
- "\tthis.searchcontext.forward(beg, out st, out en);",
+ "\tbool has_wrapped_around;",
+ "\tthis.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);",
"\tthis.last_search_end = 0;",
"\t",
"\treturn this.searchcontext.get_occurrences_count();",
Gtk.TextIter beg, st,en;
this.buffer.el.get_start_iter(out beg);
- this.searchcontext.forward(beg, out st, out en);
+ bool has_wrapped_around;
+ this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);
this.last_search_end = 0;
return this.searchcontext.get_occurrences_count();
"\t",
"\ts.set_search_text(txt);",
"\tGtk.TextIter beg, st,en;",
- "\t ",
+ "\tbool has_wrapped_around;",
"\tthis.buffer.el.get_start_iter(out beg);",
- "\tthis.searchcontext.forward(beg, out st, out en);",
+ "\tthis.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);",
"\tthis.last_search_end = 0;",
"\t",
"\treturn this.searchcontext.get_occurrences_count();",
"\t}",
"\tthis.notebook.el.page = 1;",
"\tGtk.TextIter beg, st,en;",
- "\t",
+ "\tbool has_wrapped_around;",
"\tvar buf = this.sourceview.el.get_buffer();",
"\tbuf.get_iter_at_offset(out beg, this.last_search_end);",
- "\tif (!this.searchcontext.forward(beg, out st, out en)) {",
+ "\tif (!this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around)) {",
"\t\tthis.last_search_end = 0;",
"\t\treturn;",
"\t}",
}
this.notebook.el.page = 1;
Gtk.TextIter beg, st,en;
-
+ bool has_wrapped_around;
var buf = this.sourceview.el.get_buffer();
buf.get_iter_at_offset(out beg, this.last_search_end);
- if (!this.searchcontext.forward(beg, out st, out en)) {
+ if (!this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around)) {
this.last_search_end = 0;
return;
}
s.set_search_text(txt);
Gtk.TextIter beg, st,en;
-
+ bool has_wrapped_around;
this.buffer.el.get_start_iter(out beg);
- this.searchcontext.forward(beg, out st, out en);
+ this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);
this.last_search_end = 0;
return this.searchcontext.get_occurrences_count();
"\t\t);",
" //} catch (Gda.ConnectionError ce) { ",
" // _this.database_ERROR.el.label = ce.message; ",
- " } catch(Gda.ConnectionError ue) {",
+ " } catch(GLib.Error ue) {",
" _this.database_ERROR.el.label = ue.message;",
" return;",
- " } catch(Gda.ConfigError ue) {",
- " _this.database_ERROR.el.label = ue.message;",
- " return;",
- " }",
+ " } ",
" _this.database_ERROR.el.label = \"Connection Succeeded\";",
" cnc.close();",
"}"
);
//} catch (Gda.ConnectionError ce) {
// _this.database_ERROR.el.label = ce.message;
- } catch(Gda.ConnectionError ue) {
+ } catch(GLib.Error ue) {
_this.database_ERROR.el.label = ue.message;
return;
- } catch(Gda.ConfigError ue) {
- _this.database_ERROR.el.label = ue.message;
- return;
- }
+ }
_this.database_ERROR.el.label = "Connection Succeeded";
cnc.close();
});
"{",
" this.css = new Gtk.CssProvider();",
"\ttry {",
- "\t\tthis.css.load_from_data(\"#compile-erros-view { font-size: 10px;}\");",
+ "\t\tthis.css.load_from_data(\"#compile-erros-view { font-size: 12px;}\");",
"\t} catch (Error e) {}",
"\tthis.el.get_style_context().add_provider(this.css,",
"\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
{
this.css = new Gtk.CssProvider();
try {
- this.css.load_from_data("#compile-erros-view { font-size: 10px;}");
+ this.css.load_from_data("#compile-erros-view { font-size: 12px;}");
} catch (Error e) {}
this.el.get_style_context().add_provider(this.css,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
" ",
" ",
" // pref : 3 = ontop - 0 = after, 1 = before",
- " int pref = in_pref < 0 ? Gtk.TreeViewDropPosition.INTO_OR_AFTER : in_pref;",
+ " int pref = in_pref < 0 ? (int)Gtk.TreeViewDropPosition.INTO_OR_AFTER : in_pref;",
" ",
" var last = \"\";",
" ",
public string lastEventSource;
public string dragData;
public bool button_is_pressed;
- public bool key_is_pressed;
public Gtk.CssProvider css;
+ public bool key_is_pressed;
public int drag_x;
public int drag_y;
public string[] dropList;
// pref : 3 = ontop - 0 = after, 1 = before
- int pref = in_pref < 0 ? Gtk.TreeViewDropPosition.INTO_OR_AFTER : in_pref;
+ int pref = in_pref < 0 ? (int)Gtk.TreeViewDropPosition.INTO_OR_AFTER : in_pref;
var last = "";
"\t",
"\ts.set_search_text(txt);",
"\tGtk.TextIter beg, st,en;",
- "\t ",
+ "\tbool has_wrapped_around;",
"\tthis.buffer.el.get_start_iter(out beg);",
- "\tthis.searchcontext.forward(beg, out st, out en);",
+ "\tthis.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);",
"\tthis.last_search_end = 0;",
"\t",
"\treturn this.searchcontext.get_occurrences_count();",
"\t}",
"\tthis.notebook.el.page = 1;",
"\tGtk.TextIter beg, st,en;",
- "\t",
+ "\tbool has_wrapped_around;",
"\tvar buf = this.sourceview.el.get_buffer();",
"\tbuf.get_iter_at_offset(out beg, this.last_search_end);",
- "\tif (!this.searchcontext.forward(beg, out st, out en)) {",
+ "\tif (!this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around)) {",
"\t\tthis.last_search_end = 0;",
"\t\treturn;",
"\t}",
}
this.notebook.el.page = 1;
Gtk.TextIter beg, st,en;
-
+ bool has_wrapped_around;
var buf = this.sourceview.el.get_buffer();
buf.get_iter_at_offset(out beg, this.last_search_end);
- if (!this.searchcontext.forward(beg, out st, out en)) {
+ if (!this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around)) {
this.last_search_end = 0;
return;
}
s.set_search_text(txt);
Gtk.TextIter beg, st,en;
-
+ bool has_wrapped_around;
this.buffer.el.get_start_iter(out beg);
- this.searchcontext.forward(beg, out st, out en);
+ this.searchcontext.forward2(beg, out st, out en, out has_wrapped_around);
this.last_search_end = 0;
return this.searchcontext.get_occurrences_count();
JsRender/JsonGen.vala \
JsRender/JsRender.vala \
JsRender/Lang.vala \
- JsRender/NodeProp.vala \
+ JsRender/NodeProp.vala \
JsRender/NodeToGtk.vala \
JsRender/NodeToJs.vala \
JsRender/NodeToVala.vala \
- JsRender/NodeToGlade.vala \
+ JsRender/NodeToGlade.vala \
JsRender/Node.vala \
JsRender/Roo.vala
# Project/Flutter.vala
BUIDERPROJECT = Project/Gtk.vala \
- Project/Project.vala \
+ Project/Project.vala \
Project/Roo.vala \
Project/GtkValaSettings.vala
-
+# removed -X -lm
-roobuilder_VALAFLAGS = --thread -X -lm --target-glib=2.32 --vapidir=$(srcdir)/vapi -g $(roobuilder_PKGS)
+roobuilder_VALAFLAGS =--target-glib=2.32 --vapidir=$(srcdir)/vapi -g $(roobuilder_PKGS)
roobuilder_LDADD = $(ROOBUILDER_LIBS) $(LIBVALA_LIBS) $(GDA_LIBS) $(WEBKIT_LIBS) $(VTE_LIBS) $(JAVASCRIPTCOREGTK_LIBS)
for (var i =0; i < max;i++) {
var m = (Vala.TokenType)i;
var s = m.to_string();
- var ss = s.slice(1,-1);
+ var ss = s.slice(1,-1);
if (s[0] == '`' && GLib.Regex.match_simple("^[a-z]+$", ss) &&
complete_string != ss && ss.index_of(complete_string,0) == 0 ) {
- ret.append(new SourceCompletionItem (ss, ss, null, "vala : " + ss));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = ss;
+ sci.text = ss;
+ sci.info = "vala : " + ss;
+ ret.append(sci);
}
}
var miter = ((Project.Gtk)this.project).gir_cache.map_iterator();
var ss = miter.get_key();
if (complete_string != ss && ss.index_of(complete_string,0) == 0 ) {
- ret.append(new SourceCompletionItem (ss, ss, null, "vala namespace : " + ss));
+
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = ss;
+ sci.text = ss;
+ sci.info = "vala namespace: " + ss;
+ ret.append(sci);
}
}
if (complete_string != "_this" && "_this".index_of(complete_string,0) == 0 ) { // should we ignore exact matches... ???
- ret.append(new SourceCompletionItem ("_this - the top level element", "_this", null, "Top level element"));
+
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = "_this - the top level element";
+ sci.text = "_this";
+ sci.info = "Reference to the container object instance of this file";
+ ret.append(sci);
}
// basic types..
continue;
}
// got a starting match..
- ret.append(new SourceCompletionItem (
- prevbits + scls,
- prevbits + scls,
- null,
- scls));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = prevbits + scls;
+ sci.text = prevbits + scls;
+ sci.info = scls;
+
+ ret.append(sci);
}
// methods....
citer = cls.methods.map_iterator();
continue;
}
// got a starting match..
- ret.append(new SourceCompletionItem (
- prevbits + scls + citer.get_value().sig ,
- prevbits + scls,
- null,
- scls));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = prevbits + scls + citer.get_value().sig;
+ sci.text = prevbits + scls;
+ sci.info = scls;
+ ret.append(sci);
}
// enums....
continue;
}
// got a starting match..
- ret.append(new SourceCompletionItem (
- prevbits + scls + citer.get_value().sig ,
- prevbits + scls,
- null,
- scls));
+
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = prevbits + scls + citer.get_value().sig;
+ sci.text = prevbits + scls;
+ sci.info = scls;
+ ret.append(sci);
}
}
// got a matching property...
// return type?
- ret.append(new SourceCompletionItem (
- cprop.name + cprop.sig + " : ("+ cprop.propertyof + ")",
- prevbits + cprop.name + "(",
- null,
- cprop.doctxt));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = cprop.name + cprop.sig + " : ("+ cprop.propertyof + ")";
+ sci.text = prevbits + cprop.name + "(";
+ sci.info = cprop.doctxt;
+
+ ret.append(sci);
}
// get the properties / methods and subclasses.. of cls..
continue;
}
// got a matching property...
-
- ret.append(new SourceCompletionItem (
- cprop.name + " : " + cprop.type + " ("+ cprop.propertyof + ")",
- prevbits + cprop.name,
- null,
- cprop.doctxt));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = cprop.name + " : " + cprop.type + " ("+ cprop.propertyof + ")";
+ sci.text = prevbits + cprop.name;
+ sci.info = cprop.doctxt;
+ ret.append(sci);
}
// offer up this / Roo / javascript keywords... / look for var string = .. in the code..
for(var i = 0; i < JsRender.Lang.match_strings.size ; i++) {
var str = JsRender.Lang.match_strings.get(i);
- if (complete_string != str && str.index_of(complete_string,0) == 0 ) { // should we ignore exact matches... ???
- ret.append(new SourceCompletionItem (str, str, null, "javascript : " + str));
+ if (complete_string != str && str.index_of(complete_string,0) == 0 ) {
+ // should we ignore exact matches... ???
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = str;
+ sci.text = str;
+ sci.info = "javascript: " + str;
+
+ ret.append(sci);
}
}
- if (complete_string != "Roo" && "Roo".index_of(complete_string,0) == 0 ) { // should we ignore exact matches... ???
- ret.append(new SourceCompletionItem ("Roo - A Roo class", "Roo", null, "Roo library"));
+ if (complete_string != "Roo" && "Roo".index_of(complete_string,0) == 0 ) {
+ // should we ignore exact matches... ???
+
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = "Roo - A Roo class";
+ sci.text = "Roo";
+ sci.info = "Roo Library";
+
+ ret.append(sci);
}
- if (complete_string != "_this" && "_this".index_of(complete_string,0) == 0 ) { // should we ignore exact matches... ???
- ret.append(new SourceCompletionItem ("_this - the top level element", "_this", null, "Top level element"));
+ if (complete_string != "_this" && "_this".index_of(complete_string,0) == 0 ) {
+ // should we ignore exact matches... ???
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = "_this - Reference to the global pointer to the files main class instance";
+ sci.text = "_this";
+ sci.info = "Reference to the global pointer to the files main class instance";
+ ret.append(sci);
}
return ret;
}
if (parts[i].length > 0 && scls.index_of(look,0) != 0) {
continue;
}
+
// got a starting match..
- ret.append(new SourceCompletionItem (
- scls,
- scls,
- null,
- scls));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = scls;
+ sci.text = scls;
+ sci.info = scls;
+ ret.append(sci);
}
return ret;
}
}
// got a matching property...
// return type?
- ret.append(new SourceCompletionItem (
- prop.name + prop.sig + " : ("+ prop.propertyof + ")",
- prevbits + prop.name + "(",
- null,
- prop.doctxt));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = prop.name + prop.sig + " : ("+ prop.propertyof + ")";
+ sci.text = prevbits + prop.name + "(";
+ sci.info = prop.doctxt;
+ ret.append(sci);
}
// get the properties / methods and subclasses.. of cls..
continue;
}
// got a matching property...
-
- ret.append(new SourceCompletionItem (
- prop.name + " : " + prop.type + " ("+ prop.propertyof + ")",
- prevbits + prop.name,
- null,
- prop.doctxt));
+ var sci = SourceCompletionItem.new2();
+ //string label, string text, Pixbuf? icon, string? info)
+ sci.label = prop.name + " : " + prop.type + " ("+ prop.propertyof + ")";
+ sci.text = prevbits + prop.name;
+ sci.info = prop.doctxt;
+ ret.append(sci);
}
";PASSWORD=" + this.project.get_string_member("DBPASSWORD"),
Gda.ConnectionOptions.NONE
);
- } catch(Gda.ConfigError e) {
+ } catch(GLib.Error e) {
GLib.warning("%s\n", e.message);
this.cnc = null;
this.DBTYPE = "";
- } catch(Gda.ConnectionError e) {
- GLib.warning("%s\n", e.message);
- this.cnc = null;
- this.DBTYPE = "";
- }
+ }
}
";PASSWORD=" + dbpass,
Gda.ConnectionOptions.NONE
);
- } catch(Gda.ConfigError e) {
+ } catch(GLib.Error e) {
this.cnc = null;
this.DBTYPE = "";
- } catch(Gda.ConnectionError e) {
- this.cnc = null;
- this.DBTYPE = "";
- }
-
-
+ }
+
}
+++ /dev/null
-/* webkit2gtk-4.0.vapi generated by vapigen, do not modify. */
-
-[CCode (cprefix = "WebKit", gir_namespace = "WebKit2", gir_version = "3.0", lower_case_cprefix = "webkit_")]
-namespace WebKit {
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_authentication_request_get_type ()")]
- public class AuthenticationRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected AuthenticationRequest ();
- public void authenticate (WebKit.Credential? credential);
- public bool can_save_credentials ();
- public void cancel ();
- public unowned string get_host ();
- public uint get_port ();
- public WebKit.Credential get_proposed_credential ();
- public unowned string get_realm ();
- public WebKit.AuthenticationScheme get_scheme ();
- public bool is_for_proxy ();
- public bool is_retry ();
- public signal void cancelled ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")]
- public class BackForwardList : GLib.Object {
- [CCode (has_construct_function = false)]
- protected BackForwardList ();
- public unowned WebKit.BackForwardListItem get_back_item ();
- public GLib.List<weak WebKit.BackForwardListItem> get_back_list ();
- public GLib.List<weak WebKit.BackForwardListItem> get_back_list_with_limit (uint limit);
- public unowned WebKit.BackForwardListItem get_current_item ();
- public unowned WebKit.BackForwardListItem get_forward_item ();
- public GLib.List<weak WebKit.BackForwardListItem> get_forward_list ();
- public GLib.List<weak WebKit.BackForwardListItem> get_forward_list_with_limit (uint limit);
- public uint get_length ();
- public unowned WebKit.BackForwardListItem get_nth_item (int index);
- public signal void changed (WebKit.BackForwardListItem? item_added, void* items_removed);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_item_get_type ()")]
- public class BackForwardListItem : GLib.InitiallyUnowned {
- [CCode (has_construct_function = false)]
- protected BackForwardListItem ();
- public unowned string get_original_uri ();
- public unowned string get_title ();
- public unowned string get_uri ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")]
- public class ContextMenu : GLib.Object {
- [CCode (has_construct_function = false)]
- public ContextMenu ();
- public void append (WebKit.ContextMenuItem item);
- public unowned WebKit.ContextMenuItem first ();
- public unowned WebKit.ContextMenuItem get_item_at_position (uint position);
- public unowned GLib.List<WebKit.ContextMenuItem> get_items ();
- public uint get_n_items ();
- 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 ();
- [CCode (has_construct_function = false)]
- public ContextMenu.with_items (GLib.List<WebKit.ContextMenuItem> items);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")]
- public class ContextMenuItem : GLib.InitiallyUnowned {
- [CCode (has_construct_function = false)]
- public ContextMenuItem (Gtk.Action action);
- [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);
- public unowned Gtk.Action get_action ();
- 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 = "webkit2/webkit2.h", type_id = "webkit_cookie_manager_get_type ()")]
- public class CookieManager : GLib.Object {
- [CCode (has_construct_function = false)]
- protected CookieManager ();
- public void delete_all_cookies ();
- public void delete_cookies_for_domain (string domain);
- public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable) throws GLib.Error;
- [CCode (array_length = false, array_null_terminated = true)]
- public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable) throws GLib.Error;
- public void set_accept_policy (WebKit.CookieAcceptPolicy policy);
- public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage);
- public signal void changed ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_credential_get_type ()")]
- [Compact]
- public class Credential {
- [CCode (has_construct_function = false)]
- public Credential (string username, string password, WebKit.CredentialPersistence persistence);
- public WebKit.Credential copy ();
- public void free ();
- public unowned string get_password ();
- public WebKit.CredentialPersistence get_persistence ();
- public unowned string get_username ();
- public bool has_password ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_download_get_type ()")]
- public class Download : GLib.Object {
- [CCode (has_construct_function = false)]
- protected Download ();
- public void cancel ();
- public unowned string get_destination ();
- public double get_elapsed_time ();
- public double get_estimated_progress ();
- public uint64 get_received_data_length ();
- public unowned WebKit.URIRequest get_request ();
- public unowned WebKit.URIResponse get_response ();
- public unowned WebKit.WebView get_web_view ();
- public void set_destination (string uri);
- public string destination { get; }
- public double estimated_progress { get; }
- public WebKit.URIResponse response { get; }
- public signal void created_destination (string destination);
- public virtual signal bool decide_destination (string suggested_filename);
- public signal void failed (void* error);
- public signal void finished ();
- public signal void received_data (uint64 data_length);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")]
- public class FaviconDatabase : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FaviconDatabase ();
- public void clear ();
- public async Cairo.Surface get_favicon (string page_uri, GLib.Cancellable? cancellable) throws GLib.Error;
- public string get_favicon_uri (string page_uri);
- public signal void favicon_changed (string page_uri, string favicon_uri);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")]
- public class FileChooserRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FileChooserRequest ();
- public void cancel ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_mime_types ();
- public unowned Gtk.FileFilter get_mime_types_filter ();
- public bool get_select_multiple ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_selected_files ();
- public void select_files ([CCode (array_length = false, array_null_terminated = true)] string[] files);
- [NoAccessorMethod]
- public Gtk.FileFilter filter { owned get; }
- [CCode (array_length = false, array_null_terminated = true)]
- public string[] mime_types { get; }
- public bool select_multiple { get; }
- [CCode (array_length = false, array_null_terminated = true)]
- public string[] selected_files { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_find_controller_get_type ()")]
- public class FindController : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FindController ();
- public void count_matches (string search_text, uint32 find_options, uint max_match_count);
- public uint get_max_match_count ();
- public uint32 get_options ();
- public unowned string get_search_text ();
- public unowned WebKit.WebView get_web_view ();
- public void search (string search_text, uint32 find_options, uint max_match_count);
- public void search_finish ();
- public void search_next ();
- public void search_previous ();
- public uint max_match_count { get; }
- public WebKit.FindOptions options { get; }
- [NoAccessorMethod]
- public string text { owned get; }
- public WebKit.WebView web_view { get; construct; }
- public signal void counted_matches (uint match_count);
- public signal void failed_to_find_text ();
- public signal void found_text (uint match_count);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_form_submission_request_get_type ()")]
- public class FormSubmissionRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FormSubmissionRequest ();
- public unowned GLib.HashTable<void*,void*> get_text_fields ();
- public void submit ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")]
- public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
- [CCode (has_construct_function = false)]
- protected GeolocationPermissionRequest ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")]
- public 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 ();
- 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 = "webkit2/webkit2.h", ref_function = "webkit_javascript_result_ref", type_id = "webkit_javascript_result_get_type ()", unref_function = "webkit_javascript_result_unref")]
- [Compact]
- public class JavascriptResult {
- public WebKit.JavascriptResult @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_mime_info_ref", type_id = "webkit_mime_info_get_type ()", unref_function = "webkit_mime_info_unref")]
- [Compact]
- public class MimeInfo {
- public unowned string get_description ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_extensions ();
- public unowned string get_mime_type ();
- public WebKit.MimeInfo @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_navigation_action_get_type ()")]
- [Compact]
- public class NavigationAction {
- public WebKit.NavigationAction copy ();
- public void free ();
- public uint get_modifiers ();
- public uint get_mouse_button ();
- public WebKit.NavigationType get_navigation_type ();
- public unowned WebKit.URIRequest get_request ();
- public bool is_user_gesture ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_navigation_policy_decision_get_type ()")]
- public class NavigationPolicyDecision : WebKit.PolicyDecision {
- [CCode (has_construct_function = false)]
- protected NavigationPolicyDecision ();
- public unowned string get_frame_name ();
- public uint get_modifiers ();
- public uint get_mouse_button ();
- public WebKit.NavigationType get_navigation_type ();
- public unowned WebKit.URIRequest get_request ();
- public string frame_name { get; }
- public uint modifiers { get; }
- public uint mouse_button { get; }
- public WebKit.NavigationType navigation_type { get; }
- public WebKit.URIRequest request { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_plugin_get_type ()")]
- public class Plugin : GLib.Object {
- [CCode (has_construct_function = false)]
- protected Plugin ();
- public unowned string get_description ();
- public unowned GLib.List<WebKit.MimeInfo> get_mime_info_list ();
- public unowned string get_name ();
- public unowned string get_path ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_policy_decision_get_type ()")]
- public abstract class PolicyDecision : GLib.Object {
- [CCode (has_construct_function = false)]
- protected PolicyDecision ();
- public void download ();
- public void ignore ();
- public void use ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")]
- public class PrintOperation : GLib.Object {
- [CCode (has_construct_function = false)]
- public PrintOperation (WebKit.WebView web_view);
- public unowned Gtk.PageSetup get_page_setup ();
- public unowned Gtk.PrintSettings get_print_settings ();
- public void print ();
- public WebKit.PrintOperationResponse run_dialog (Gtk.Window? parent);
- public void set_page_setup (Gtk.PageSetup page_setup);
- public void set_print_settings (Gtk.PrintSettings print_settings);
- public Gtk.PageSetup page_setup { get; set; }
- public Gtk.PrintSettings print_settings { get; set; }
- [NoAccessorMethod]
- public WebKit.WebView web_view { owned get; construct; }
- public signal void failed (void* error);
- public signal void finished ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_response_policy_decision_get_type ()")]
- public class ResponsePolicyDecision : WebKit.PolicyDecision {
- [CCode (has_construct_function = false)]
- protected ResponsePolicyDecision ();
- public unowned WebKit.URIRequest get_request ();
- public unowned WebKit.URIResponse get_response ();
- public bool is_mime_type_supported ();
- public WebKit.URIRequest request { get; }
- public WebKit.URIResponse response { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_script_dialog_get_type ()")]
- [Compact]
- public class ScriptDialog {
- public void confirm_set_confirmed (bool confirmed);
- public WebKit.ScriptDialogType get_dialog_type ();
- public unowned string get_message ();
- public unowned string prompt_get_default_text ();
- public void prompt_set_text (string text);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_security_manager_get_type ()")]
- public class SecurityManager : GLib.Object {
- [CCode (has_construct_function = false)]
- protected SecurityManager ();
- public void register_uri_scheme_as_cors_enabled (string scheme);
- public void register_uri_scheme_as_display_isolated (string scheme);
- public void register_uri_scheme_as_empty_document (string scheme);
- public void register_uri_scheme_as_local (string scheme);
- public void register_uri_scheme_as_no_access (string scheme);
- public void register_uri_scheme_as_secure (string scheme);
- public bool uri_scheme_is_cors_enabled (string scheme);
- public bool uri_scheme_is_display_isolated (string scheme);
- public bool uri_scheme_is_empty_document (string scheme);
- public bool uri_scheme_is_local (string scheme);
- public bool uri_scheme_is_no_access (string scheme);
- public bool uri_scheme_is_secure (string scheme);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_settings_get_type ()")]
- public class Settings : GLib.Object {
- [CCode (has_construct_function = false)]
- public Settings ();
- public bool get_allow_modal_dialogs ();
- public bool get_auto_load_images ();
- public unowned string get_cursive_font_family ();
- public unowned string get_default_charset ();
- public unowned string get_default_font_family ();
- public uint32 get_default_font_size ();
- public uint32 get_default_monospace_font_size ();
- public bool get_draw_compositing_indicators ();
- public bool get_enable_accelerated_2d_canvas ();
- public bool get_enable_caret_browsing ();
- public bool get_enable_developer_extras ();
- public bool get_enable_dns_prefetching ();
- public bool get_enable_frame_flattening ();
- public bool get_enable_fullscreen ();
- public bool get_enable_html5_database ();
- public bool get_enable_html5_local_storage ();
- public bool get_enable_hyperlink_auditing ();
- public bool get_enable_java ();
- public bool get_enable_javascript ();
- public bool get_enable_media_stream ();
- public bool get_enable_mediasource ();
- public bool get_enable_offline_web_application_cache ();
- public bool get_enable_page_cache ();
- public bool get_enable_plugins ();
- public bool get_enable_private_browsing ();
- public bool get_enable_resizable_text_areas ();
- public bool get_enable_site_specific_quirks ();
- public bool get_enable_smooth_scrolling ();
- public bool get_enable_spatial_navigation ();
- public bool get_enable_tabs_to_links ();
- public bool get_enable_webaudio ();
- public bool get_enable_webgl ();
- public bool get_enable_write_console_messages_to_stdout ();
- public bool get_enable_xss_auditor ();
- public unowned string get_fantasy_font_family ();
- public bool get_javascript_can_access_clipboard ();
- public bool get_javascript_can_open_windows_automatically ();
- public bool get_load_icons_ignoring_image_load_setting ();
- public bool get_media_playback_allows_inline ();
- public bool get_media_playback_requires_user_gesture ();
- public uint32 get_minimum_font_size ();
- public unowned string get_monospace_font_family ();
- public unowned string get_pictograph_font_family ();
- public bool get_print_backgrounds ();
- public unowned string get_sans_serif_font_family ();
- public unowned string get_serif_font_family ();
- public unowned string get_user_agent ();
- public bool get_zoom_text_only ();
- public void set_allow_modal_dialogs (bool allowed);
- public void set_auto_load_images (bool enabled);
- public void set_cursive_font_family (string cursive_font_family);
- public void set_default_charset (string default_charset);
- public void set_default_font_family (string default_font_family);
- public void set_default_font_size (uint32 font_size);
- public void set_default_monospace_font_size (uint32 font_size);
- public void set_draw_compositing_indicators (bool enabled);
- public void set_enable_accelerated_2d_canvas (bool enabled);
- public void set_enable_caret_browsing (bool enabled);
- public void set_enable_developer_extras (bool enabled);
- public void set_enable_dns_prefetching (bool enabled);
- public void set_enable_frame_flattening (bool enabled);
- public void set_enable_fullscreen (bool enabled);
- public void set_enable_html5_database (bool enabled);
- public void set_enable_html5_local_storage (bool enabled);
- public void set_enable_hyperlink_auditing (bool enabled);
- public void set_enable_java (bool enabled);
- public void set_enable_javascript (bool enabled);
- public void set_enable_media_stream (bool enabled);
- public void set_enable_mediasource (bool enabled);
- public void set_enable_offline_web_application_cache (bool enabled);
- public void set_enable_page_cache (bool enabled);
- public void set_enable_plugins (bool enabled);
- public void set_enable_private_browsing (bool enabled);
- public void set_enable_resizable_text_areas (bool enabled);
- public void set_enable_site_specific_quirks (bool enabled);
- public void set_enable_smooth_scrolling (bool enabled);
- public void set_enable_spatial_navigation (bool enabled);
- public void set_enable_tabs_to_links (bool enabled);
- public void set_enable_webaudio (bool enabled);
- public void set_enable_webgl (bool enabled);
- public void set_enable_write_console_messages_to_stdout (bool enabled);
- public void set_enable_xss_auditor (bool enabled);
- public void set_fantasy_font_family (string fantasy_font_family);
- public void set_javascript_can_access_clipboard (bool enabled);
- public void set_javascript_can_open_windows_automatically (bool enabled);
- public void set_load_icons_ignoring_image_load_setting (bool enabled);
- public void set_media_playback_allows_inline (bool enabled);
- public void set_media_playback_requires_user_gesture (bool enabled);
- public void set_minimum_font_size (uint32 font_size);
- public void set_monospace_font_family (string monospace_font_family);
- public void set_pictograph_font_family (string pictograph_font_family);
- public void set_print_backgrounds (bool print_backgrounds);
- public void set_sans_serif_font_family (string sans_serif_font_family);
- public void set_serif_font_family (string serif_font_family);
- public void set_user_agent (string? user_agent);
- public void set_user_agent_with_application_details (string? application_name, string? application_version);
- public void set_zoom_text_only (bool zoom_text_only);
- public bool allow_modal_dialogs { get; set construct; }
- public bool auto_load_images { get; set construct; }
- public string cursive_font_family { get; set construct; }
- public string default_charset { get; set construct; }
- public string default_font_family { get; set construct; }
- public uint default_font_size { get; set construct; }
- public uint default_monospace_font_size { get; set construct; }
- public bool draw_compositing_indicators { get; set construct; }
- public bool enable_accelerated_2d_canvas { get; set construct; }
- public bool enable_caret_browsing { get; set construct; }
- public bool enable_developer_extras { get; set construct; }
- public bool enable_dns_prefetching { get; set construct; }
- public bool enable_frame_flattening { get; set construct; }
- public bool enable_fullscreen { get; set construct; }
- public bool enable_html5_database { get; set construct; }
- public bool enable_html5_local_storage { get; set construct; }
- public bool enable_hyperlink_auditing { get; set construct; }
- public bool enable_java { get; set construct; }
- public bool enable_javascript { get; set construct; }
- public bool enable_media_stream { get; set construct; }
- public bool enable_mediasource { get; set construct; }
- public bool enable_offline_web_application_cache { get; set construct; }
- public bool enable_page_cache { get; set construct; }
- public bool enable_plugins { get; set construct; }
- public bool enable_private_browsing { get; set construct; }
- public bool enable_resizable_text_areas { get; set construct; }
- public bool enable_site_specific_quirks { get; set construct; }
- public bool enable_smooth_scrolling { get; set construct; }
- public bool enable_spatial_navigation { get; set construct; }
- public bool enable_tabs_to_links { get; set construct; }
- public bool enable_webaudio { get; set construct; }
- public bool enable_webgl { get; set construct; }
- public bool enable_write_console_messages_to_stdout { get; set construct; }
- public bool enable_xss_auditor { get; set construct; }
- public string fantasy_font_family { get; set construct; }
- public bool javascript_can_access_clipboard { get; set construct; }
- public bool javascript_can_open_windows_automatically { get; set construct; }
- public bool load_icons_ignoring_image_load_setting { get; set construct; }
- public bool media_playback_allows_inline { get; set construct; }
- public bool media_playback_requires_user_gesture { get; set construct; }
- public uint minimum_font_size { get; set construct; }
- public string monospace_font_family { get; set construct; }
- public string pictograph_font_family { get; set construct; }
- public bool print_backgrounds { get; set construct; }
- public string sans_serif_font_family { get; set construct; }
- public string serif_font_family { get; set construct; }
- public string user_agent { get; set construct; }
- public bool zoom_text_only { get; set construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")]
- public class URIRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- public URIRequest (string uri);
- public unowned Soup.MessageHeaders get_http_headers ();
- public unowned string get_uri ();
- public void set_uri (string uri);
- public string uri { get; set construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")]
- public class URIResponse : GLib.Object {
- [CCode (has_construct_function = false)]
- protected URIResponse ();
- public uint64 get_content_length ();
- 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; }
- public string mime_type { get; }
- public uint status_code { get; }
- public string suggested_filename { get; }
- public string uri { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")]
- public class URISchemeRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected URISchemeRequest ();
- public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
- public void finish_error (GLib.Error error);
- public unowned string get_path ();
- public unowned string get_scheme ();
- public unowned string get_uri ();
- public unowned WebKit.WebView get_web_view ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_manager_get_type ()")]
- public class UserContentManager : GLib.Object {
- [CCode (has_construct_function = false)]
- public UserContentManager ();
- public void add_style_sheet (WebKit.UserStyleSheet stylesheet);
- public void remove_all_style_sheets ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_style_sheet_ref", type_id = "webkit_user_style_sheet_get_type ()", unref_function = "webkit_user_style_sheet_unref")]
- [Compact]
- public class UserStyleSheet {
- [CCode (has_construct_function = false)]
- public UserStyleSheet (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserStyleLevel level, [CCode (array_length = false, array_null_terminated = true)] string[]? whitelist, [CCode (array_length = false, array_null_terminated = true)] string[]? blacklist);
- public WebKit.UserStyleSheet @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")]
- public class WebContext : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WebContext ();
- public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host);
- public void clear_cache ();
- public WebKit.Download download_uri (string uri);
- public WebKit.CacheModel get_cache_model ();
- public unowned WebKit.CookieManager get_cookie_manager ();
- public static unowned WebKit.WebContext get_default ();
- public unowned WebKit.FaviconDatabase get_favicon_database ();
- public unowned string get_favicon_database_directory ();
- public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable) throws GLib.Error;
- public WebKit.ProcessModel get_process_model ();
- public unowned WebKit.SecurityManager get_security_manager ();
- public bool get_spell_checking_enabled ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_spell_checking_languages ();
- public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
- public void prefetch_dns (string hostname);
- public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
- public void set_additional_plugins_directory (string directory);
- public void set_cache_model (WebKit.CacheModel cache_model);
- public void set_disk_cache_directory (string directory);
- public void set_favicon_database_directory (string? path);
- public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages);
- public void set_process_model (WebKit.ProcessModel process_model);
- public void set_spell_checking_enabled (bool enabled);
- public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated = true)] string[] languages);
- public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
- public void set_web_extensions_directory (string directory);
- public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
- public signal void download_started (WebKit.Download download);
- public signal void initialize_web_extensions ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
- public class WebInspector : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WebInspector ();
- public void close ();
- public uint get_attached_height ();
- public unowned string get_inspected_uri ();
- public unowned WebKit.WebViewBase get_web_view ();
- public bool is_attached ();
- public void show ();
- public uint attached_height { get; }
- public string inspected_uri { get; }
- [HasEmitter]
- public signal bool attach ();
- public signal bool bring_to_front ();
- public signal void closed ();
- [HasEmitter]
- public signal bool detach ();
- public signal bool open_window ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")]
- public class WebResource : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WebResource ();
- public async uint8[] get_data (GLib.Cancellable? cancellable) throws GLib.Error;
- public unowned WebKit.URIResponse get_response ();
- public unowned string get_uri ();
- public WebKit.URIResponse response { get; }
- public string uri { get; }
- public signal void failed (void* error);
- public signal void finished ();
- public signal void received_data (uint64 data_length);
- public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")]
- public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable {
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView ();
- public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable) throws GLib.Error;
- public bool can_go_back ();
- public bool can_go_forward ();
- public bool can_show_mime_type (string mime_type);
- public WebKit.Download download_uri (string uri);
- public void execute_editing_command (string command);
- public unowned WebKit.BackForwardList get_back_forward_list ();
- public unowned WebKit.WebContext get_context ();
- public unowned string get_custom_charset ();
- public double get_estimated_load_progress ();
- public unowned Cairo.Surface get_favicon ();
- public unowned WebKit.FindController get_find_controller ();
- public unowned WebKit.WebInspector get_inspector ();
- public unowned WebKit.WebResource get_main_resource ();
- public uint64 get_page_id ();
- public unowned WebKit.Settings get_settings ();
- public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable) throws GLib.Error;
- public unowned string get_title ();
- public bool get_tls_info (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
- public unowned string get_uri ();
- public unowned WebKit.UserContentManager get_user_content_manager ();
- public unowned WebKit.WindowProperties get_window_properties ();
- public double get_zoom_level ();
- public void go_back ();
- public void go_forward ();
- public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item);
- public void load_alternate_html (string content, string content_uri, string? base_uri);
- public void load_bytes (GLib.Bytes bytes, string? mime_type, string? encoding, string? base_uri);
- public void load_html (string content, string? base_uri);
- public void load_plain_text (string plain_text);
- public void load_request (WebKit.URIRequest request);
- public void load_uri (string uri);
- public Gtk.Widget new_with_related_view ();
- public void reload ();
- public void reload_bypass_cache ();
- public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable) throws GLib.Error;
- public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable) throws GLib.Error;
- public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
- public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
- public void set_custom_charset (string? charset);
- public void set_settings (WebKit.Settings settings);
- public void set_zoom_level (double zoom_level);
- public void stop_loading ();
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_context (WebKit.WebContext context);
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_settings (WebKit.Settings settings);
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_user_content_manager (WebKit.UserContentManager user_content_manager);
- public double estimated_load_progress { get; }
- public void* favicon { get; }
- [NoAccessorMethod]
- public bool is_loading { get; }
- public WebKit.WebView related_view { construct; }
- public WebKit.Settings settings { set construct; }
- public string title { get; }
- public string uri { get; }
- public WebKit.UserContentManager user_content_manager { get; construct; }
- [NoAccessorMethod]
- public WebKit.WebContext web_context { owned get; construct; }
- public double zoom_level { get; set; }
- public virtual signal bool authenticate (WebKit.AuthenticationRequest request);
- public virtual signal void close ();
- public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result);
- public virtual signal void context_menu_dismissed ();
- public signal Gtk.Widget create (WebKit.NavigationAction navigation_action);
- public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type);
- public virtual signal bool enter_fullscreen ();
- public virtual signal void insecure_content_detected (WebKit.InsecureContentEvent event);
- public virtual signal bool leave_fullscreen ();
- public virtual signal void load_changed (WebKit.LoadEvent load_event);
- public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, void* error);
- public virtual signal bool load_failed_with_tls_errors (GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors, string host);
- public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers);
- public virtual signal bool permission_request (WebKit.PermissionRequest permission_request);
- public virtual signal bool print (WebKit.PrintOperation print_operation);
- public virtual signal void ready_to_show ();
- public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request);
- public virtual signal void run_as_modal ();
- public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
- public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
- public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
- public virtual signal bool web_process_crashed ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
- public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
- [CCode (has_construct_function = false)]
- protected WebViewBase ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
- public class WindowProperties : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WindowProperties ();
- public bool get_fullscreen ();
- public Gdk.Rectangle get_geometry ();
- public bool get_locationbar_visible ();
- public bool get_menubar_visible ();
- public bool get_resizable ();
- public bool get_scrollbars_visible ();
- public bool get_statusbar_visible ();
- public bool get_toolbar_visible ();
- public bool fullscreen { get; construct; }
- public Cairo.RectangleInt geometry { get; construct; }
- public bool locationbar_visible { get; construct; }
- public bool menubar_visible { get; construct; }
- public bool resizable { get; construct; }
- public bool scrollbars_visible { get; construct; }
- public bool statusbar_visible { get; construct; }
- public bool toolbar_visible { get; construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")]
- public interface PermissionRequest : GLib.Object {
- public abstract void allow ();
- public abstract void deny ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTHENTICATION_SCHEME_", type_id = "webkit_authentication_scheme_get_type ()")]
- public enum AuthenticationScheme {
- DEFAULT,
- HTTP_BASIC,
- HTTP_DIGEST,
- HTML_FORM,
- NTLM,
- NEGOTIATE,
- CLIENT_CERTIFICATE_REQUESTED,
- SERVER_TRUST_EVALUATION_REQUESTED,
- UNKNOWN
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_", type_id = "webkit_cache_model_get_type ()")]
- public enum CacheModel {
- DOCUMENT_VIEWER,
- WEB_BROWSER,
- DOCUMENT_BROWSER
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", type_id = "webkit_context_menu_action_get_type ()")]
- 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,
- CUSTOM
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = "webkit_cookie_accept_policy_get_type ()")]
- public enum CookieAcceptPolicy {
- ALWAYS,
- NEVER,
- NO_THIRD_PARTY
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_", type_id = "webkit_cookie_persistent_storage_get_type ()")]
- public enum CookiePersistentStorage {
- TEXT,
- SQLITE
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CREDENTIAL_PERSISTENCE_", type_id = "webkit_credential_persistence_get_type ()")]
- public enum CredentialPersistence {
- NONE,
- FOR_SESSION,
- PERMANENT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")]
- [Flags]
- public enum FindOptions {
- NONE,
- CASE_INSENSITIVE,
- AT_WORD_STARTS,
- TREAT_MEDIAL_CAPITAL_AS_WORD_START,
- BACKWARDS,
- WRAP_AROUND
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")]
- [Flags]
- public enum HitTestResultContext {
- DOCUMENT,
- LINK,
- IMAGE,
- MEDIA,
- EDITABLE,
- SCROLLBAR
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = "webkit_insecure_content_event_get_type ()")]
- public enum InsecureContentEvent {
- RUN,
- DISPLAYED
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_", type_id = "webkit_load_event_get_type ()")]
- public enum LoadEvent {
- STARTED,
- REDIRECTED,
- COMMITTED,
- FINISHED
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_", type_id = "webkit_navigation_type_get_type ()")]
- public enum NavigationType {
- LINK_CLICKED,
- FORM_SUBMITTED,
- BACK_FORWARD,
- RELOAD,
- FORM_RESUBMITTED,
- OTHER
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_", type_id = "webkit_policy_decision_type_get_type ()")]
- public enum PolicyDecisionType {
- NAVIGATION_ACTION,
- NEW_WINDOW_ACTION,
- RESPONSE
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_", type_id = "webkit_print_operation_response_get_type ()")]
- public enum PrintOperationResponse {
- PRINT,
- CANCEL
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_", type_id = "webkit_process_model_get_type ()")]
- public enum ProcessModel {
- SHARED_SECONDARY_PROCESS,
- MULTIPLE_SECONDARY_PROCESSES
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SAVE_MODE_", type_id = "webkit_save_mode_get_type ()")]
- public enum SaveMode {
- MHTML
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_", type_id = "webkit_script_dialog_type_get_type ()")]
- public enum ScriptDialogType {
- ALERT,
- CONFIRM,
- PROMPT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")]
- [Flags]
- public enum SnapshotOptions {
- NONE,
- INCLUDE_SELECTION_HIGHLIGHTING
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_REGION_", type_id = "webkit_snapshot_region_get_type ()")]
- public enum SnapshotRegion {
- VISIBLE,
- FULL_DOCUMENT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_TLS_ERRORS_POLICY_", type_id = "webkit_tls_errors_policy_get_type ()")]
- public enum TLSErrorsPolicy {
- IGNORE,
- FAIL
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_INJECT_", type_id = "webkit_user_content_injected_frames_get_type ()")]
- public enum UserContentInjectedFrames {
- ALL_FRAMES,
- TOP_FRAME
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_STYLE_LEVEL_", type_id = "webkit_user_style_level_get_type ()")]
- public enum UserStyleLevel {
- USER,
- AUTHOR
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]
- public errordomain DownloadError {
- NETWORK,
- CANCELLED_BY_USER,
- DESTINATION;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FAVICON_DATABASE_ERROR_")]
- public errordomain FaviconDatabaseError {
- NOT_INITIALIZED,
- FAVICON_NOT_FOUND,
- FAVICON_UNKNOWN;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")]
- public errordomain JavascriptError {
- FAILED;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")]
- public errordomain NetworkError {
- FAILED,
- TRANSPORT,
- UNKNOWN_PROTOCOL,
- CANCELLED,
- FILE_DOES_NOT_EXIST;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")]
- public errordomain PluginError {
- FAILED,
- CANNOT_FIND_PLUGIN,
- CANNOT_LOAD_PLUGIN,
- JAVA_UNAVAILABLE,
- CONNECTION_CANCELLED,
- WILL_HANDLE_LOAD;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")]
- public errordomain PolicyError {
- FAILED,
- CANNOT_SHOW_MIME_TYPE,
- CANNOT_SHOW_URI,
- FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
- CANNOT_USE_RESTRICTED_PORT;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")]
- public errordomain PrintError {
- GENERAL,
- PRINTER_NOT_FOUND,
- INVALID_PAGE_RANGE;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_ERROR_FAILED_TO_")]
- public errordomain SnapshotError {
- CREATE;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
- public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
- public const string EDITING_COMMAND_COPY;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")]
- public const string EDITING_COMMAND_CUT;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")]
- public const string EDITING_COMMAND_PASTE;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_REDO")]
- public const string EDITING_COMMAND_REDO;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_SELECT_ALL")]
- public const string EDITING_COMMAND_SELECT_ALL;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_UNDO")]
- public const string EDITING_COMMAND_UNDO;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MAJOR_VERSION")]
- public const int MAJOR_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MICRO_VERSION")]
- public const int MICRO_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MINOR_VERSION")]
- public const int MINOR_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_major_version ();
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_micro_version ();
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_minor_version ();
-}
+++ /dev/null
-/* webkit2gtk-4.0.vapi generated by vapigen, do not modify. */
-
-[CCode (cprefix = "WebKit", gir_namespace = "WebKit2", gir_version = "4.0", lower_case_cprefix = "webkit_")]
-namespace WebKit {
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_authentication_request_get_type ()")]
- public class AuthenticationRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected AuthenticationRequest ();
- public void authenticate (WebKit.Credential? credential);
- public bool can_save_credentials ();
- public void cancel ();
- public unowned string get_host ();
- public uint get_port ();
- public WebKit.Credential get_proposed_credential ();
- public unowned string get_realm ();
- public WebKit.AuthenticationScheme get_scheme ();
- public bool is_for_proxy ();
- public bool is_retry ();
- public signal void cancelled ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")]
- public class BackForwardList : GLib.Object {
- [CCode (has_construct_function = false)]
- protected BackForwardList ();
- public unowned WebKit.BackForwardListItem get_back_item ();
- public GLib.List<weak WebKit.BackForwardListItem> get_back_list ();
- public GLib.List<weak WebKit.BackForwardListItem> get_back_list_with_limit (uint limit);
- public unowned WebKit.BackForwardListItem get_current_item ();
- public unowned WebKit.BackForwardListItem get_forward_item ();
- public GLib.List<weak WebKit.BackForwardListItem> get_forward_list ();
- public GLib.List<weak WebKit.BackForwardListItem> get_forward_list_with_limit (uint limit);
- public uint get_length ();
- public unowned WebKit.BackForwardListItem get_nth_item (int index);
- public signal void changed (WebKit.BackForwardListItem? item_added, void* items_removed);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_item_get_type ()")]
- public class BackForwardListItem : GLib.InitiallyUnowned {
- [CCode (has_construct_function = false)]
- protected BackForwardListItem ();
- public unowned string get_original_uri ();
- public unowned string get_title ();
- public unowned string get_uri ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")]
- public class ColorChooserRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected ColorChooserRequest ();
- public void cancel ();
- public void finish ();
- public Gdk.Rectangle get_element_rectangle ();
- public Gdk.RGBA get_rgba ();
- public void set_rgba (Gdk.RGBA rgba);
- public Gdk.RGBA rgba { get; set construct; }
- public signal void finished ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")]
- public class ContextMenu : GLib.Object {
- [CCode (has_construct_function = false)]
- public ContextMenu ();
- public void append (WebKit.ContextMenuItem item);
- public unowned WebKit.ContextMenuItem first ();
- public unowned WebKit.ContextMenuItem get_item_at_position (uint position);
- public unowned GLib.List<WebKit.ContextMenuItem> get_items ();
- public uint get_n_items ();
- 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 ();
- 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 = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")]
- public class ContextMenuItem : GLib.InitiallyUnowned {
- [CCode (has_construct_function = false)]
- public ContextMenuItem (Gtk.Action action);
- [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);
- public unowned Gtk.Action get_action ();
- 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 = "webkit2/webkit2.h", type_id = "webkit_cookie_manager_get_type ()")]
- public class CookieManager : GLib.Object {
- [CCode (has_construct_function = false)]
- protected CookieManager ();
- public void delete_all_cookies ();
- public void delete_cookies_for_domain (string domain);
- public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable) throws GLib.Error;
- [CCode (array_length = false, array_null_terminated = true)]
- public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable) throws GLib.Error;
- public void set_accept_policy (WebKit.CookieAcceptPolicy policy);
- public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage);
- public signal void changed ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_credential_get_type ()")]
- [Compact]
- public class Credential {
- [CCode (has_construct_function = false)]
- public Credential (string username, string password, WebKit.CredentialPersistence persistence);
- public WebKit.Credential copy ();
- public void free ();
- public unowned string get_password ();
- public WebKit.CredentialPersistence get_persistence ();
- public unowned string get_username ();
- public bool has_password ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_download_get_type ()")]
- public class Download : GLib.Object {
- [CCode (has_construct_function = false)]
- protected Download ();
- public void cancel ();
- public bool get_allow_overwrite ();
- public unowned string get_destination ();
- public double get_elapsed_time ();
- public double get_estimated_progress ();
- public uint64 get_received_data_length ();
- public unowned WebKit.URIRequest get_request ();
- public unowned WebKit.URIResponse get_response ();
- public unowned WebKit.WebView get_web_view ();
- public void set_allow_overwrite (bool allowed);
- public void set_destination (string uri);
- public bool allow_overwrite { get; set; }
- public string destination { get; }
- public double estimated_progress { get; }
- public WebKit.URIResponse response { get; }
- public signal void created_destination (string destination);
- public virtual signal bool decide_destination (string suggested_filename);
- public signal void failed (void* error);
- public signal void finished ();
- public signal void received_data (uint64 data_length);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")]
- public class FaviconDatabase : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FaviconDatabase ();
- public void clear ();
- public async Cairo.Surface get_favicon (string page_uri, GLib.Cancellable? cancellable) throws GLib.Error;
- public string get_favicon_uri (string page_uri);
- public signal void favicon_changed (string page_uri, string favicon_uri);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")]
- public class FileChooserRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FileChooserRequest ();
- public void cancel ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_mime_types ();
- public unowned Gtk.FileFilter get_mime_types_filter ();
- public bool get_select_multiple ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_selected_files ();
- public void select_files ([CCode (array_length = false, array_null_terminated = true)] string[] files);
- [NoAccessorMethod]
- public Gtk.FileFilter filter { owned get; }
- [CCode (array_length = false, array_null_terminated = true)]
- public string[] mime_types { get; }
- public bool select_multiple { get; }
- [CCode (array_length = false, array_null_terminated = true)]
- public string[] selected_files { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_find_controller_get_type ()")]
- public class FindController : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FindController ();
- public void count_matches (string search_text, uint32 find_options, uint max_match_count);
- public uint get_max_match_count ();
- public uint32 get_options ();
- public unowned string get_search_text ();
- public unowned WebKit.WebView get_web_view ();
- public void search (string search_text, uint32 find_options, uint max_match_count);
- public void search_finish ();
- public void search_next ();
- public void search_previous ();
- public uint max_match_count { get; }
- public WebKit.FindOptions options { get; }
- [NoAccessorMethod]
- public string text { owned get; }
- public WebKit.WebView web_view { get; construct; }
- public signal void counted_matches (uint match_count);
- public signal void failed_to_find_text ();
- public signal void found_text (uint match_count);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_form_submission_request_get_type ()")]
- public class FormSubmissionRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected FormSubmissionRequest ();
- public unowned GLib.HashTable<void*,void*> get_text_fields ();
- public void submit ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")]
- public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
- [CCode (has_construct_function = false)]
- protected GeolocationPermissionRequest ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")]
- public 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 ();
- 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 = "webkit2/webkit2.h", ref_function = "webkit_javascript_result_ref", type_id = "webkit_javascript_result_get_type ()", unref_function = "webkit_javascript_result_unref")]
- [Compact]
- public class JavascriptResult {
- public WebKit.JavascriptResult @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_mime_info_ref", type_id = "webkit_mime_info_get_type ()", unref_function = "webkit_mime_info_unref")]
- [Compact]
- public class MimeInfo {
- public unowned string get_description ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_extensions ();
- public unowned string get_mime_type ();
- public WebKit.MimeInfo @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_navigation_action_get_type ()")]
- [Compact]
- public class NavigationAction {
- public WebKit.NavigationAction copy ();
- public void free ();
- public uint get_modifiers ();
- public uint get_mouse_button ();
- public WebKit.NavigationType get_navigation_type ();
- public unowned WebKit.URIRequest get_request ();
- public bool is_user_gesture ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_navigation_policy_decision_get_type ()")]
- public class NavigationPolicyDecision : WebKit.PolicyDecision {
- [CCode (has_construct_function = false)]
- protected NavigationPolicyDecision ();
- public unowned string get_frame_name ();
- [Deprecated (since = "2.6")]
- public uint get_modifiers ();
- [Deprecated (since = "2.6")]
- public uint get_mouse_button ();
- public unowned WebKit.NavigationAction get_navigation_action ();
- [Deprecated (since = "2.6")]
- public WebKit.NavigationType get_navigation_type ();
- [Deprecated (since = "2.6")]
- public unowned WebKit.URIRequest get_request ();
- public string frame_name { get; }
- [Deprecated (since = "2.6")]
- public uint modifiers { get; }
- [Deprecated (since = "2.6")]
- public uint mouse_button { get; }
- public WebKit.NavigationAction navigation_action { get; }
- [Deprecated (since = "2.6")]
- public WebKit.NavigationType navigation_type { get; }
- [Deprecated (since = "2.6")]
- public WebKit.URIRequest request { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_get_type ()")]
- public class Notification : GLib.Object {
- [CCode (has_construct_function = false)]
- protected Notification ();
- public void close ();
- public unowned string get_body ();
- public uint64 get_id ();
- public unowned string get_title ();
- public string body { get; }
- public uint64 id { get; }
- public string title { get; }
- public signal void closed ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_permission_request_get_type ()")]
- public class NotificationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
- [CCode (has_construct_function = false)]
- protected NotificationPermissionRequest ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_plugin_get_type ()")]
- public class Plugin : GLib.Object {
- [CCode (has_construct_function = false)]
- protected Plugin ();
- public unowned string get_description ();
- public unowned GLib.List<WebKit.MimeInfo> get_mime_info_list ();
- public unowned string get_name ();
- public unowned string get_path ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_policy_decision_get_type ()")]
- public abstract class PolicyDecision : GLib.Object {
- [CCode (has_construct_function = false)]
- protected PolicyDecision ();
- public void download ();
- public void ignore ();
- public void use ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")]
- public class PrintOperation : GLib.Object {
- [CCode (has_construct_function = false)]
- public PrintOperation (WebKit.WebView web_view);
- public unowned Gtk.PageSetup get_page_setup ();
- public unowned Gtk.PrintSettings get_print_settings ();
- public void print ();
- public WebKit.PrintOperationResponse run_dialog (Gtk.Window? parent);
- public void set_page_setup (Gtk.PageSetup page_setup);
- public void set_print_settings (Gtk.PrintSettings print_settings);
- public Gtk.PageSetup page_setup { get; set; }
- public Gtk.PrintSettings print_settings { get; set; }
- [NoAccessorMethod]
- public WebKit.WebView web_view { owned get; construct; }
- public signal void failed (void* error);
- public signal void finished ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_response_policy_decision_get_type ()")]
- public class ResponsePolicyDecision : WebKit.PolicyDecision {
- [CCode (has_construct_function = false)]
- protected ResponsePolicyDecision ();
- public unowned WebKit.URIRequest get_request ();
- public unowned WebKit.URIResponse get_response ();
- public bool is_mime_type_supported ();
- public WebKit.URIRequest request { get; }
- public WebKit.URIResponse response { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_script_dialog_get_type ()")]
- [Compact]
- public class ScriptDialog {
- public void confirm_set_confirmed (bool confirmed);
- public WebKit.ScriptDialogType get_dialog_type ();
- public unowned string get_message ();
- public unowned string prompt_get_default_text ();
- public void prompt_set_text (string text);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_security_manager_get_type ()")]
- public class SecurityManager : GLib.Object {
- [CCode (has_construct_function = false)]
- protected SecurityManager ();
- public void register_uri_scheme_as_cors_enabled (string scheme);
- public void register_uri_scheme_as_display_isolated (string scheme);
- public void register_uri_scheme_as_empty_document (string scheme);
- public void register_uri_scheme_as_local (string scheme);
- public void register_uri_scheme_as_no_access (string scheme);
- public void register_uri_scheme_as_secure (string scheme);
- public bool uri_scheme_is_cors_enabled (string scheme);
- public bool uri_scheme_is_display_isolated (string scheme);
- public bool uri_scheme_is_empty_document (string scheme);
- public bool uri_scheme_is_local (string scheme);
- public bool uri_scheme_is_no_access (string scheme);
- public bool uri_scheme_is_secure (string scheme);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_settings_get_type ()")]
- public class Settings : GLib.Object {
- [CCode (has_construct_function = false)]
- public Settings ();
- public bool get_allow_modal_dialogs ();
- public bool get_auto_load_images ();
- public unowned string get_cursive_font_family ();
- public unowned string get_default_charset ();
- public unowned string get_default_font_family ();
- public uint32 get_default_font_size ();
- public uint32 get_default_monospace_font_size ();
- public bool get_draw_compositing_indicators ();
- public bool get_enable_accelerated_2d_canvas ();
- public bool get_enable_caret_browsing ();
- public bool get_enable_developer_extras ();
- public bool get_enable_dns_prefetching ();
- public bool get_enable_frame_flattening ();
- public bool get_enable_fullscreen ();
- public bool get_enable_html5_database ();
- public bool get_enable_html5_local_storage ();
- public bool get_enable_hyperlink_auditing ();
- public bool get_enable_java ();
- public bool get_enable_javascript ();
- public bool get_enable_media_stream ();
- public bool get_enable_mediasource ();
- public bool get_enable_offline_web_application_cache ();
- public bool get_enable_page_cache ();
- public bool get_enable_plugins ();
- public bool get_enable_private_browsing ();
- public bool get_enable_resizable_text_areas ();
- public bool get_enable_site_specific_quirks ();
- public bool get_enable_smooth_scrolling ();
- public bool get_enable_spatial_navigation ();
- public bool get_enable_tabs_to_links ();
- public bool get_enable_webaudio ();
- public bool get_enable_webgl ();
- public bool get_enable_write_console_messages_to_stdout ();
- public bool get_enable_xss_auditor ();
- public unowned string get_fantasy_font_family ();
- public bool get_javascript_can_access_clipboard ();
- public bool get_javascript_can_open_windows_automatically ();
- public bool get_load_icons_ignoring_image_load_setting ();
- public bool get_media_playback_allows_inline ();
- public bool get_media_playback_requires_user_gesture ();
- public uint32 get_minimum_font_size ();
- public unowned string get_monospace_font_family ();
- public unowned string get_pictograph_font_family ();
- public bool get_print_backgrounds ();
- public unowned string get_sans_serif_font_family ();
- public unowned string get_serif_font_family ();
- public unowned string get_user_agent ();
- public bool get_zoom_text_only ();
- public void set_allow_modal_dialogs (bool allowed);
- public void set_auto_load_images (bool enabled);
- public void set_cursive_font_family (string cursive_font_family);
- public void set_default_charset (string default_charset);
- public void set_default_font_family (string default_font_family);
- public void set_default_font_size (uint32 font_size);
- public void set_default_monospace_font_size (uint32 font_size);
- public void set_draw_compositing_indicators (bool enabled);
- public void set_enable_accelerated_2d_canvas (bool enabled);
- public void set_enable_caret_browsing (bool enabled);
- public void set_enable_developer_extras (bool enabled);
- public void set_enable_dns_prefetching (bool enabled);
- public void set_enable_frame_flattening (bool enabled);
- public void set_enable_fullscreen (bool enabled);
- public void set_enable_html5_database (bool enabled);
- public void set_enable_html5_local_storage (bool enabled);
- public void set_enable_hyperlink_auditing (bool enabled);
- public void set_enable_java (bool enabled);
- public void set_enable_javascript (bool enabled);
- public void set_enable_media_stream (bool enabled);
- public void set_enable_mediasource (bool enabled);
- public void set_enable_offline_web_application_cache (bool enabled);
- public void set_enable_page_cache (bool enabled);
- public void set_enable_plugins (bool enabled);
- public void set_enable_private_browsing (bool enabled);
- public void set_enable_resizable_text_areas (bool enabled);
- public void set_enable_site_specific_quirks (bool enabled);
- public void set_enable_smooth_scrolling (bool enabled);
- public void set_enable_spatial_navigation (bool enabled);
- public void set_enable_tabs_to_links (bool enabled);
- public void set_enable_webaudio (bool enabled);
- public void set_enable_webgl (bool enabled);
- public void set_enable_write_console_messages_to_stdout (bool enabled);
- public void set_enable_xss_auditor (bool enabled);
- public void set_fantasy_font_family (string fantasy_font_family);
- public void set_javascript_can_access_clipboard (bool enabled);
- public void set_javascript_can_open_windows_automatically (bool enabled);
- public void set_load_icons_ignoring_image_load_setting (bool enabled);
- public void set_media_playback_allows_inline (bool enabled);
- public void set_media_playback_requires_user_gesture (bool enabled);
- public void set_minimum_font_size (uint32 font_size);
- public void set_monospace_font_family (string monospace_font_family);
- public void set_pictograph_font_family (string pictograph_font_family);
- public void set_print_backgrounds (bool print_backgrounds);
- public void set_sans_serif_font_family (string sans_serif_font_family);
- public void set_serif_font_family (string serif_font_family);
- public void set_user_agent (string? user_agent);
- public void set_user_agent_with_application_details (string? application_name, string? application_version);
- public void set_zoom_text_only (bool zoom_text_only);
- public bool allow_modal_dialogs { get; set construct; }
- public bool auto_load_images { get; set construct; }
- public string cursive_font_family { get; set construct; }
- public string default_charset { get; set construct; }
- public string default_font_family { get; set construct; }
- public uint default_font_size { get; set construct; }
- public uint default_monospace_font_size { get; set construct; }
- public bool draw_compositing_indicators { get; set construct; }
- public bool enable_accelerated_2d_canvas { get; set construct; }
- public bool enable_caret_browsing { get; set construct; }
- public bool enable_developer_extras { get; set construct; }
- public bool enable_dns_prefetching { get; set construct; }
- public bool enable_frame_flattening { get; set construct; }
- public bool enable_fullscreen { get; set construct; }
- public bool enable_html5_database { get; set construct; }
- public bool enable_html5_local_storage { get; set construct; }
- public bool enable_hyperlink_auditing { get; set construct; }
- public bool enable_java { get; set construct; }
- public bool enable_javascript { get; set construct; }
- public bool enable_media_stream { get; set construct; }
- public bool enable_mediasource { get; set construct; }
- public bool enable_offline_web_application_cache { get; set construct; }
- public bool enable_page_cache { get; set construct; }
- public bool enable_plugins { get; set construct; }
- public bool enable_private_browsing { get; set construct; }
- public bool enable_resizable_text_areas { get; set construct; }
- public bool enable_site_specific_quirks { get; set construct; }
- public bool enable_smooth_scrolling { get; set construct; }
- public bool enable_spatial_navigation { get; set construct; }
- public bool enable_tabs_to_links { get; set construct; }
- public bool enable_webaudio { get; set construct; }
- public bool enable_webgl { get; set construct; }
- public bool enable_write_console_messages_to_stdout { get; set construct; }
- public bool enable_xss_auditor { get; set construct; }
- public string fantasy_font_family { get; set construct; }
- public bool javascript_can_access_clipboard { get; set construct; }
- public bool javascript_can_open_windows_automatically { get; set construct; }
- public bool load_icons_ignoring_image_load_setting { get; set construct; }
- public bool media_playback_allows_inline { get; set construct; }
- public bool media_playback_requires_user_gesture { get; set construct; }
- public uint minimum_font_size { get; set construct; }
- public string monospace_font_family { get; set construct; }
- public string pictograph_font_family { get; set construct; }
- public bool print_backgrounds { get; set construct; }
- public string sans_serif_font_family { get; set construct; }
- public string serif_font_family { get; set construct; }
- public string user_agent { get; set construct; }
- public bool zoom_text_only { get; set construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")]
- public class URIRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- public URIRequest (string uri);
- public unowned Soup.MessageHeaders get_http_headers ();
- public unowned string get_uri ();
- public void set_uri (string uri);
- public string uri { get; set construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")]
- public class URIResponse : GLib.Object {
- [CCode (has_construct_function = false)]
- protected URIResponse ();
- public uint64 get_content_length ();
- 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; }
- 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 = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")]
- public class URISchemeRequest : GLib.Object {
- [CCode (has_construct_function = false)]
- protected URISchemeRequest ();
- public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
- public void finish_error (GLib.Error error);
- public unowned string get_path ();
- public unowned string get_scheme ();
- public unowned string get_uri ();
- public unowned WebKit.WebView get_web_view ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_manager_get_type ()")]
- public class UserContentManager : GLib.Object {
- [CCode (has_construct_function = false)]
- public UserContentManager ();
- public void add_script (WebKit.UserScript script);
- public void add_style_sheet (WebKit.UserStyleSheet stylesheet);
- public bool register_script_message_handler (string name);
- public void remove_all_scripts ();
- public void remove_all_style_sheets ();
- public void unregister_script_message_handler (string name);
- public signal void script_message_received (WebKit.JavascriptResult js_result);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_media_permission_request_get_type ()")]
- public class UserMediaPermissionRequest : GLib.Object, WebKit.PermissionRequest {
- [CCode (has_construct_function = false)]
- protected UserMediaPermissionRequest ();
- [NoAccessorMethod]
- public bool is_for_audio_device { get; }
- [NoAccessorMethod]
- public bool is_for_video_device { get; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_script_ref", type_id = "webkit_user_script_get_type ()", unref_function = "webkit_user_script_unref")]
- [Compact]
- public class UserScript {
- [CCode (has_construct_function = false)]
- public UserScript (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserScriptInjectionTime injection_time, [CCode (array_length = false, array_null_terminated = true)] string[]? whitelist, [CCode (array_length = false, array_null_terminated = true)] string[]? blacklist);
- public WebKit.UserScript @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_style_sheet_ref", type_id = "webkit_user_style_sheet_get_type ()", unref_function = "webkit_user_style_sheet_unref")]
- [Compact]
- public class UserStyleSheet {
- [CCode (has_construct_function = false)]
- public UserStyleSheet (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserStyleLevel level, [CCode (array_length = false, array_null_terminated = true)] string[]? whitelist, [CCode (array_length = false, array_null_terminated = true)] string[]? blacklist);
- public WebKit.UserStyleSheet @ref ();
- public void unref ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")]
- public class WebContext : GLib.Object {
- [CCode (has_construct_function = false)]
- public WebContext ();
- public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host);
- public void clear_cache ();
- public WebKit.Download download_uri (string uri);
- public WebKit.CacheModel get_cache_model ();
- public unowned WebKit.CookieManager get_cookie_manager ();
- public static unowned WebKit.WebContext get_default ();
- public unowned WebKit.FaviconDatabase get_favicon_database ();
- public unowned string get_favicon_database_directory ();
- public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable) throws GLib.Error;
- public WebKit.ProcessModel get_process_model ();
- public unowned WebKit.SecurityManager get_security_manager ();
- public bool get_spell_checking_enabled ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[] get_spell_checking_languages ();
- public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
- public void prefetch_dns (string hostname);
- public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
- public void set_additional_plugins_directory (string directory);
- public void set_cache_model (WebKit.CacheModel cache_model);
- public void set_disk_cache_directory (string directory);
- public void set_favicon_database_directory (string? path);
- public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages);
- public void set_process_model (WebKit.ProcessModel process_model);
- public void set_spell_checking_enabled (bool enabled);
- public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated = true)] string[] languages);
- public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
- public void set_web_extensions_directory (string directory);
- public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
- [NoAccessorMethod]
- public string local_storage_directory { owned get; construct; }
- public virtual signal void download_started (WebKit.Download download);
- public virtual signal void initialize_web_extensions ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
- public class WebInspector : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WebInspector ();
- public void close ();
- public uint get_attached_height ();
- public bool get_can_attach ();
- public unowned string get_inspected_uri ();
- public unowned WebKit.WebViewBase get_web_view ();
- public bool is_attached ();
- public void show ();
- public uint attached_height { get; }
- public bool can_attach { get; }
- public string inspected_uri { get; }
- [HasEmitter]
- public signal bool attach ();
- public signal bool bring_to_front ();
- public signal void closed ();
- [HasEmitter]
- public signal bool detach ();
- public signal bool open_window ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")]
- public class WebResource : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WebResource ();
- public async uint8[] get_data (GLib.Cancellable? cancellable) throws GLib.Error;
- public unowned WebKit.URIResponse get_response ();
- public unowned string get_uri ();
- public WebKit.URIResponse response { get; }
- public string uri { get; }
- public signal void failed (void* error);
- public signal void failed_with_tls_errors (GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
- public signal void finished ();
- public signal void received_data (uint64 data_length);
- public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")]
- public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable {
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView ();
- public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable) throws GLib.Error;
- public bool can_go_back ();
- public bool can_go_forward ();
- public bool can_show_mime_type (string mime_type);
- public WebKit.Download download_uri (string uri);
- public void execute_editing_command (string command);
- public unowned WebKit.BackForwardList get_back_forward_list ();
- public Gdk.RGBA get_background_color ();
- public unowned WebKit.WebContext get_context ();
- public unowned string get_custom_charset ();
- public double get_estimated_load_progress ();
- public unowned Cairo.Surface get_favicon ();
- public unowned WebKit.FindController get_find_controller ();
- public unowned WebKit.WebInspector get_inspector ();
- public unowned WebKit.WebResource get_main_resource ();
- public uint64 get_page_id ();
- public unowned WebKit.Settings get_settings ();
- public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable) throws GLib.Error;
- public unowned string get_title ();
- public bool get_tls_info (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
- public unowned string get_uri ();
- public unowned WebKit.UserContentManager get_user_content_manager ();
- public unowned WebKit.WindowProperties get_window_properties ();
- public double get_zoom_level ();
- public void go_back ();
- public void go_forward ();
- public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item);
- public bool is_editable ();
- public void load_alternate_html (string content, string content_uri, string? base_uri);
- public void load_bytes (GLib.Bytes bytes, string? mime_type, string? encoding, string? base_uri);
- public void load_html (string content, string? base_uri);
- public void load_plain_text (string plain_text);
- public void load_request (WebKit.URIRequest request);
- public void load_uri (string uri);
- public Gtk.Widget new_with_related_view ();
- public void reload ();
- public void reload_bypass_cache ();
- public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable) throws GLib.Error;
- public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable) throws GLib.Error;
- public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
- public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
- public void set_background_color (Gdk.RGBA rgba);
- public void set_custom_charset (string? charset);
- public void set_editable (bool editable);
- public void set_settings (WebKit.Settings settings);
- public void set_zoom_level (double zoom_level);
- public void stop_loading ();
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_context (WebKit.WebContext context);
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_settings (WebKit.Settings settings);
- [CCode (has_construct_function = false, type = "GtkWidget*")]
- public WebView.with_user_content_manager (WebKit.UserContentManager user_content_manager);
- [NoAccessorMethod]
- public bool editable { get; set; }
- public double estimated_load_progress { get; }
- public void* favicon { get; }
- [NoAccessorMethod]
- public bool is_loading { get; }
- [NoAccessorMethod]
- public bool is_playing_audio { get; }
- public WebKit.WebView related_view { construct; }
- public WebKit.Settings settings { set construct; }
- public string title { get; }
- public string uri { get; }
- public WebKit.UserContentManager user_content_manager { get; construct; }
- [NoAccessorMethod]
- public WebKit.WebContext web_context { owned get; construct; }
- public double zoom_level { get; set; }
- public virtual signal bool authenticate (WebKit.AuthenticationRequest request);
- public virtual signal void close ();
- public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result);
- public virtual signal void context_menu_dismissed ();
- public signal Gtk.Widget create (WebKit.NavigationAction navigation_action);
- public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type);
- public virtual signal bool enter_fullscreen ();
- public virtual signal void insecure_content_detected (WebKit.InsecureContentEvent event);
- public virtual signal bool leave_fullscreen ();
- public virtual signal void load_changed (WebKit.LoadEvent load_event);
- public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, void* error);
- public virtual signal bool load_failed_with_tls_errors (string failing_uri, GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
- public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers);
- public virtual signal bool permission_request (WebKit.PermissionRequest permission_request);
- public virtual signal bool print (WebKit.PrintOperation print_operation);
- public virtual signal void ready_to_show ();
- public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request);
- public virtual signal void run_as_modal ();
- public virtual signal bool run_color_chooser (WebKit.ColorChooserRequest request);
- public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
- public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
- public virtual signal bool show_notification (WebKit.Notification notification);
- public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
- public virtual signal bool web_process_crashed ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
- public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
- [CCode (has_construct_function = false)]
- protected WebViewBase ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
- public class WindowProperties : GLib.Object {
- [CCode (has_construct_function = false)]
- protected WindowProperties ();
- public bool get_fullscreen ();
- public Gdk.Rectangle get_geometry ();
- public bool get_locationbar_visible ();
- public bool get_menubar_visible ();
- public bool get_resizable ();
- public bool get_scrollbars_visible ();
- public bool get_statusbar_visible ();
- public bool get_toolbar_visible ();
- public bool fullscreen { get; construct; }
- public Cairo.RectangleInt geometry { get; construct; }
- public bool locationbar_visible { get; construct; }
- public bool menubar_visible { get; construct; }
- public bool resizable { get; construct; }
- public bool scrollbars_visible { get; construct; }
- public bool statusbar_visible { get; construct; }
- public bool toolbar_visible { get; construct; }
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")]
- public interface PermissionRequest : GLib.Object {
- public abstract void allow ();
- public abstract void deny ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTHENTICATION_SCHEME_", type_id = "webkit_authentication_scheme_get_type ()")]
- public enum AuthenticationScheme {
- DEFAULT,
- HTTP_BASIC,
- HTTP_DIGEST,
- HTML_FORM,
- NTLM,
- NEGOTIATE,
- CLIENT_CERTIFICATE_REQUESTED,
- SERVER_TRUST_EVALUATION_REQUESTED,
- UNKNOWN
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_", type_id = "webkit_cache_model_get_type ()")]
- public enum CacheModel {
- DOCUMENT_VIEWER,
- WEB_BROWSER,
- DOCUMENT_BROWSER
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", type_id = "webkit_context_menu_action_get_type ()")]
- 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,
- CUSTOM
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = "webkit_cookie_accept_policy_get_type ()")]
- public enum CookieAcceptPolicy {
- ALWAYS,
- NEVER,
- NO_THIRD_PARTY
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_", type_id = "webkit_cookie_persistent_storage_get_type ()")]
- public enum CookiePersistentStorage {
- TEXT,
- SQLITE
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CREDENTIAL_PERSISTENCE_", type_id = "webkit_credential_persistence_get_type ()")]
- public enum CredentialPersistence {
- NONE,
- FOR_SESSION,
- PERMANENT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")]
- [Flags]
- public enum FindOptions {
- NONE,
- CASE_INSENSITIVE,
- AT_WORD_STARTS,
- TREAT_MEDIAL_CAPITAL_AS_WORD_START,
- BACKWARDS,
- WRAP_AROUND
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")]
- [Flags]
- public enum HitTestResultContext {
- DOCUMENT,
- LINK,
- IMAGE,
- MEDIA,
- EDITABLE,
- SCROLLBAR,
- SELECTION
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = "webkit_insecure_content_event_get_type ()")]
- public enum InsecureContentEvent {
- RUN,
- DISPLAYED
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_", type_id = "webkit_load_event_get_type ()")]
- public enum LoadEvent {
- STARTED,
- REDIRECTED,
- COMMITTED,
- FINISHED
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_", type_id = "webkit_navigation_type_get_type ()")]
- public enum NavigationType {
- LINK_CLICKED,
- FORM_SUBMITTED,
- BACK_FORWARD,
- RELOAD,
- FORM_RESUBMITTED,
- OTHER
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_", type_id = "webkit_policy_decision_type_get_type ()")]
- public enum PolicyDecisionType {
- NAVIGATION_ACTION,
- NEW_WINDOW_ACTION,
- RESPONSE
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_", type_id = "webkit_print_operation_response_get_type ()")]
- public enum PrintOperationResponse {
- PRINT,
- CANCEL
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_", type_id = "webkit_process_model_get_type ()")]
- public enum ProcessModel {
- SHARED_SECONDARY_PROCESS,
- MULTIPLE_SECONDARY_PROCESSES
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SAVE_MODE_", type_id = "webkit_save_mode_get_type ()")]
- public enum SaveMode {
- MHTML
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_", type_id = "webkit_script_dialog_type_get_type ()")]
- public enum ScriptDialogType {
- ALERT,
- CONFIRM,
- PROMPT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")]
- [Flags]
- public enum SnapshotOptions {
- NONE,
- INCLUDE_SELECTION_HIGHLIGHTING,
- TRANSPARENT_BACKGROUND
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_REGION_", type_id = "webkit_snapshot_region_get_type ()")]
- public enum SnapshotRegion {
- VISIBLE,
- FULL_DOCUMENT
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_TLS_ERRORS_POLICY_", type_id = "webkit_tls_errors_policy_get_type ()")]
- public enum TLSErrorsPolicy {
- IGNORE,
- FAIL
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_INJECT_", type_id = "webkit_user_content_injected_frames_get_type ()")]
- public enum UserContentInjectedFrames {
- ALL_FRAMES,
- TOP_FRAME
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_", type_id = "webkit_user_script_injection_time_get_type ()")]
- public enum UserScriptInjectionTime {
- START,
- END
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_STYLE_LEVEL_", type_id = "webkit_user_style_level_get_type ()")]
- public enum UserStyleLevel {
- USER,
- AUTHOR
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]
- public errordomain DownloadError {
- NETWORK,
- CANCELLED_BY_USER,
- DESTINATION;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FAVICON_DATABASE_ERROR_")]
- public errordomain FaviconDatabaseError {
- NOT_INITIALIZED,
- FAVICON_NOT_FOUND,
- FAVICON_UNKNOWN;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")]
- public errordomain JavascriptError {
- FAILED;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")]
- public errordomain NetworkError {
- FAILED,
- TRANSPORT,
- UNKNOWN_PROTOCOL,
- CANCELLED,
- FILE_DOES_NOT_EXIST;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")]
- public errordomain PluginError {
- FAILED,
- CANNOT_FIND_PLUGIN,
- CANNOT_LOAD_PLUGIN,
- JAVA_UNAVAILABLE,
- CONNECTION_CANCELLED,
- WILL_HANDLE_LOAD;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")]
- public errordomain PolicyError {
- FAILED,
- CANNOT_SHOW_MIME_TYPE,
- CANNOT_SHOW_URI,
- FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
- CANNOT_USE_RESTRICTED_PORT;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")]
- public errordomain PrintError {
- GENERAL,
- PRINTER_NOT_FOUND,
- INVALID_PAGE_RANGE;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_ERROR_FAILED_TO_")]
- public errordomain SnapshotError {
- CREATE;
- public static GLib.Quark quark ();
- }
- [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
- public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
- public const string EDITING_COMMAND_COPY;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")]
- public const string EDITING_COMMAND_CUT;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")]
- public const string EDITING_COMMAND_PASTE;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_REDO")]
- public const string EDITING_COMMAND_REDO;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_SELECT_ALL")]
- public const string EDITING_COMMAND_SELECT_ALL;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_UNDO")]
- public const string EDITING_COMMAND_UNDO;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MAJOR_VERSION")]
- public const int MAJOR_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MICRO_VERSION")]
- public const int MICRO_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MINOR_VERSION")]
- public const int MINOR_VERSION;
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_major_version ();
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_micro_version ();
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static uint get_minor_version ();
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static bool user_media_permission_is_for_audio_device (WebKit.UserMediaPermissionRequest request);
- [CCode (cheader_filename = "webkit2/webkit2.h")]
- public static bool user_media_permission_is_for_video_device (WebKit.UserMediaPermissionRequest request);
-}