no more submodule
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct ApplicationInfo : IEquatable<ApplicationInfo> {
|
||||
|
||||
|
||||
public static WebKit.ApplicationInfo Zero = new WebKit.ApplicationInfo ();
|
||||
|
||||
public static WebKit.ApplicationInfo New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.ApplicationInfo.Zero;
|
||||
return (WebKit.ApplicationInfo) Marshal.PtrToStructure (raw, typeof (WebKit.ApplicationInfo));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_application_info_new();
|
||||
static d_webkit_application_info_new webkit_application_info_new = FuncLoader.LoadFunction<d_webkit_application_info_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_new"));
|
||||
|
||||
public static ApplicationInfo New()
|
||||
{
|
||||
ApplicationInfo result = ApplicationInfo.New (webkit_application_info_new());
|
||||
return result;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_application_info_get_type();
|
||||
static d_webkit_application_info_get_type webkit_application_info_get_type = FuncLoader.LoadFunction<d_webkit_application_info_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_application_info_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_application_info_get_name(IntPtr raw);
|
||||
static d_webkit_application_info_get_name webkit_application_info_get_name = FuncLoader.LoadFunction<d_webkit_application_info_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_get_name"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_application_info_set_name(IntPtr raw, IntPtr name);
|
||||
static d_webkit_application_info_set_name webkit_application_info_set_name = FuncLoader.LoadFunction<d_webkit_application_info_set_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_set_name"));
|
||||
|
||||
public string Name {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_application_info_get_name(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
|
||||
webkit_application_info_set_name(this_as_native, native_value);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
GLib.Marshaller.Free (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_application_info_get_version(IntPtr raw, out ulong major, out ulong minor, out ulong micro);
|
||||
static d_webkit_application_info_get_version webkit_application_info_get_version = FuncLoader.LoadFunction<d_webkit_application_info_get_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_get_version"));
|
||||
|
||||
public void GetVersion(out ulong major, out ulong minor, out ulong micro) {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_application_info_get_version(this_as_native, out major, out minor, out micro);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_application_info_ref(IntPtr raw);
|
||||
static d_webkit_application_info_ref webkit_application_info_ref = FuncLoader.LoadFunction<d_webkit_application_info_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_ref"));
|
||||
|
||||
public WebKit.ApplicationInfo Ref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_application_info_ref(this_as_native);
|
||||
WebKit.ApplicationInfo ret = WebKit.ApplicationInfo.New (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_application_info_set_version(IntPtr raw, ulong major, ulong minor, ulong micro);
|
||||
static d_webkit_application_info_set_version webkit_application_info_set_version = FuncLoader.LoadFunction<d_webkit_application_info_set_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_set_version"));
|
||||
|
||||
public void SetVersion(ulong major, ulong minor, ulong micro) {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_application_info_set_version(this_as_native, major, minor, micro);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_application_info_unref(IntPtr raw);
|
||||
static d_webkit_application_info_unref webkit_application_info_unref = FuncLoader.LoadFunction<d_webkit_application_info_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_application_info_unref"));
|
||||
|
||||
public void Unref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ApplicationInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_application_info_unref(this_as_native);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.ApplicationInfo target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (ApplicationInfo other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is ApplicationInfo && Equals ((ApplicationInfo) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.ApplicationInfo boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.ApplicationInfo.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.ApplicationInfo (GLib.Value val)
|
||||
{
|
||||
return (WebKit.ApplicationInfo) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void AttachEventHandler(object o, AttachEventArgs args);
|
||||
|
||||
public class AttachEventArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void AuthenticateHandler(object o, AuthenticateArgs args);
|
||||
|
||||
public class AuthenticateArgs : GLib.SignalArgs {
|
||||
public WebKit.AuthenticationRequest Request{
|
||||
get {
|
||||
return (WebKit.AuthenticationRequest) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void AuthenticatedHandler(object o, AuthenticatedArgs args);
|
||||
|
||||
public class AuthenticatedArgs : GLib.SignalArgs {
|
||||
public WebKit.Credential Credential{
|
||||
get {
|
||||
return (WebKit.Credential) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,379 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class AuthenticationRequest : GLib.Object {
|
||||
|
||||
public AuthenticationRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected AuthenticationRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Signal("authenticated")]
|
||||
public event WebKit.AuthenticatedHandler Authenticated {
|
||||
add {
|
||||
this.AddSignalHandler ("authenticated", value, typeof (WebKit.AuthenticatedArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("authenticated", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("cancelled")]
|
||||
public event System.EventHandler Cancelled {
|
||||
add {
|
||||
this.AddSignalHandler ("cancelled", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("cancelled", value);
|
||||
}
|
||||
}
|
||||
|
||||
static AuthenticatedNativeDelegate Authenticated_cb_delegate;
|
||||
static AuthenticatedNativeDelegate AuthenticatedVMCallback {
|
||||
get {
|
||||
if (Authenticated_cb_delegate == null)
|
||||
Authenticated_cb_delegate = new AuthenticatedNativeDelegate (Authenticated_cb);
|
||||
return Authenticated_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideAuthenticated (GLib.GType gtype)
|
||||
{
|
||||
OverrideAuthenticated (gtype, AuthenticatedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideAuthenticated (GLib.GType gtype, AuthenticatedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "authenticated", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void AuthenticatedNativeDelegate (IntPtr inst, IntPtr credential);
|
||||
|
||||
static void Authenticated_cb (IntPtr inst, IntPtr credential)
|
||||
{
|
||||
try {
|
||||
AuthenticationRequest __obj = GLib.Object.GetObject (inst, false) as AuthenticationRequest;
|
||||
__obj.OnAuthenticated (WebKit.Credential.New (credential));
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.AuthenticationRequest), ConnectionMethod="OverrideAuthenticated")]
|
||||
protected virtual void OnAuthenticated (WebKit.Credential credential)
|
||||
{
|
||||
InternalAuthenticated (credential);
|
||||
}
|
||||
|
||||
private void InternalAuthenticated (WebKit.Credential credential)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (credential);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static CancelledNativeDelegate Cancelled_cb_delegate;
|
||||
static CancelledNativeDelegate CancelledVMCallback {
|
||||
get {
|
||||
if (Cancelled_cb_delegate == null)
|
||||
Cancelled_cb_delegate = new CancelledNativeDelegate (Cancelled_cb);
|
||||
return Cancelled_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCancelled (GLib.GType gtype)
|
||||
{
|
||||
OverrideCancelled (gtype, CancelledVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCancelled (GLib.GType gtype, CancelledNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "cancelled", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void CancelledNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Cancelled_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
AuthenticationRequest __obj = GLib.Object.GetObject (inst, false) as AuthenticationRequest;
|
||||
__obj.OnCancelled ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.AuthenticationRequest), ConnectionMethod="OverrideCancelled")]
|
||||
protected virtual void OnCancelled ()
|
||||
{
|
||||
InternalCancelled ();
|
||||
}
|
||||
|
||||
private void InternalCancelled ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_request_get_type();
|
||||
static d_webkit_authentication_request_get_type webkit_authentication_request_get_type = FuncLoader.LoadFunction<d_webkit_authentication_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_authentication_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_authentication_request_authenticate(IntPtr raw, IntPtr credential);
|
||||
static d_webkit_authentication_request_authenticate webkit_authentication_request_authenticate = FuncLoader.LoadFunction<d_webkit_authentication_request_authenticate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_authenticate"));
|
||||
|
||||
public void Authenticate(WebKit.Credential credential) {
|
||||
IntPtr native_credential = GLib.Marshaller.StructureToPtrAlloc (credential);
|
||||
webkit_authentication_request_authenticate(Handle, native_credential);
|
||||
Marshal.FreeHGlobal (native_credential);
|
||||
}
|
||||
|
||||
public void Authenticate() {
|
||||
Authenticate (WebKit.Credential.Zero);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_authentication_request_can_save_credentials(IntPtr raw);
|
||||
static d_webkit_authentication_request_can_save_credentials webkit_authentication_request_can_save_credentials = FuncLoader.LoadFunction<d_webkit_authentication_request_can_save_credentials>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_can_save_credentials"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_authentication_request_set_can_save_credentials(IntPtr raw, bool enabled);
|
||||
static d_webkit_authentication_request_set_can_save_credentials webkit_authentication_request_set_can_save_credentials = FuncLoader.LoadFunction<d_webkit_authentication_request_set_can_save_credentials>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_set_can_save_credentials"));
|
||||
|
||||
public bool CanSaveCredentials {
|
||||
get {
|
||||
bool raw_ret = webkit_authentication_request_can_save_credentials(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
webkit_authentication_request_set_can_save_credentials(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_authentication_request_cancel(IntPtr raw);
|
||||
static d_webkit_authentication_request_cancel webkit_authentication_request_cancel = FuncLoader.LoadFunction<d_webkit_authentication_request_cancel>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_cancel"));
|
||||
|
||||
public void Cancel() {
|
||||
webkit_authentication_request_cancel(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_request_get_host(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_host webkit_authentication_request_get_host = FuncLoader.LoadFunction<d_webkit_authentication_request_get_host>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_host"));
|
||||
|
||||
public string Host {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_authentication_request_get_host(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_authentication_request_get_port(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_port webkit_authentication_request_get_port = FuncLoader.LoadFunction<d_webkit_authentication_request_get_port>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_port"));
|
||||
|
||||
public uint Port {
|
||||
get {
|
||||
uint raw_ret = webkit_authentication_request_get_port(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_request_get_proposed_credential(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_proposed_credential webkit_authentication_request_get_proposed_credential = FuncLoader.LoadFunction<d_webkit_authentication_request_get_proposed_credential>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_proposed_credential"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_authentication_request_set_proposed_credential(IntPtr raw, IntPtr value);
|
||||
static d_webkit_authentication_request_set_proposed_credential webkit_authentication_request_set_proposed_credential = FuncLoader.LoadFunction<d_webkit_authentication_request_set_proposed_credential>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_set_proposed_credential"));
|
||||
|
||||
public WebKit.Credential ProposedCredential {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_authentication_request_get_proposed_credential(Handle);
|
||||
WebKit.Credential ret = WebKit.Credential.New (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
|
||||
webkit_authentication_request_set_proposed_credential(Handle, native_value);
|
||||
Marshal.FreeHGlobal (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_request_get_realm(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_realm webkit_authentication_request_get_realm = FuncLoader.LoadFunction<d_webkit_authentication_request_get_realm>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_realm"));
|
||||
|
||||
public string Realm {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_authentication_request_get_realm(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_authentication_request_get_scheme(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_scheme webkit_authentication_request_get_scheme = FuncLoader.LoadFunction<d_webkit_authentication_request_get_scheme>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_scheme"));
|
||||
|
||||
public WebKit.AuthenticationScheme Scheme {
|
||||
get {
|
||||
int raw_ret = webkit_authentication_request_get_scheme(Handle);
|
||||
WebKit.AuthenticationScheme ret = (WebKit.AuthenticationScheme) raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_request_get_security_origin(IntPtr raw);
|
||||
static d_webkit_authentication_request_get_security_origin webkit_authentication_request_get_security_origin = FuncLoader.LoadFunction<d_webkit_authentication_request_get_security_origin>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_get_security_origin"));
|
||||
|
||||
public WebKit.SecurityOrigin SecurityOrigin {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_authentication_request_get_security_origin(Handle);
|
||||
WebKit.SecurityOrigin ret = WebKit.SecurityOrigin.New (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_authentication_request_is_for_proxy(IntPtr raw);
|
||||
static d_webkit_authentication_request_is_for_proxy webkit_authentication_request_is_for_proxy = FuncLoader.LoadFunction<d_webkit_authentication_request_is_for_proxy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_is_for_proxy"));
|
||||
|
||||
public bool IsForProxy {
|
||||
get {
|
||||
bool raw_ret = webkit_authentication_request_is_for_proxy(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_authentication_request_is_retry(IntPtr raw);
|
||||
static d_webkit_authentication_request_is_retry webkit_authentication_request_is_retry = FuncLoader.LoadFunction<d_webkit_authentication_request_is_retry>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_request_is_retry"));
|
||||
|
||||
public bool IsRetry {
|
||||
get {
|
||||
bool raw_ret = webkit_authentication_request_is_retry(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static AuthenticationRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.AuthenticationSchemeGType))]
|
||||
public enum AuthenticationScheme {
|
||||
|
||||
Default = 1,
|
||||
HttpBasic = 2,
|
||||
HttpDigest = 3,
|
||||
HtmlForm = 4,
|
||||
Ntlm = 5,
|
||||
Negotiate = 6,
|
||||
ClientCertificateRequested = 7,
|
||||
ServerTrustEvaluationRequested = 8,
|
||||
Unknown = 100,
|
||||
}
|
||||
|
||||
internal class AuthenticationSchemeGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_authentication_scheme_get_type();
|
||||
static d_webkit_authentication_scheme_get_type webkit_authentication_scheme_get_type = FuncLoader.LoadFunction<d_webkit_authentication_scheme_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_authentication_scheme_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_authentication_scheme_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.AutomationBrowsingContextPresentationGType))]
|
||||
public enum AutomationBrowsingContextPresentation {
|
||||
|
||||
Window = 0,
|
||||
Tab = 1,
|
||||
}
|
||||
|
||||
internal class AutomationBrowsingContextPresentationGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_automation_browsing_context_presentation_get_type();
|
||||
static d_webkit_automation_browsing_context_presentation_get_type webkit_automation_browsing_context_presentation_get_type = FuncLoader.LoadFunction<d_webkit_automation_browsing_context_presentation_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_automation_browsing_context_presentation_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_automation_browsing_context_presentation_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class AutomationSession : GLib.Object {
|
||||
|
||||
public AutomationSession (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected AutomationSession() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_automation_session_get_id(IntPtr raw);
|
||||
static d_webkit_automation_session_get_id webkit_automation_session_get_id = FuncLoader.LoadFunction<d_webkit_automation_session_get_id>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_automation_session_get_id"));
|
||||
|
||||
[GLib.Property ("id")]
|
||||
public string Id {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_automation_session_get_id(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("create-web-view")]
|
||||
public event WebKit.CreateWebViewHandler CreateWebView {
|
||||
add {
|
||||
this.AddSignalHandler ("create-web-view", value, typeof (WebKit.CreateWebViewArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("create-web-view", value);
|
||||
}
|
||||
}
|
||||
|
||||
static CreateWebViewNativeDelegate CreateWebView_cb_delegate;
|
||||
static CreateWebViewNativeDelegate CreateWebViewVMCallback {
|
||||
get {
|
||||
if (CreateWebView_cb_delegate == null)
|
||||
CreateWebView_cb_delegate = new CreateWebViewNativeDelegate (CreateWebView_cb);
|
||||
return CreateWebView_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCreateWebView (GLib.GType gtype)
|
||||
{
|
||||
OverrideCreateWebView (gtype, CreateWebViewVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCreateWebView (GLib.GType gtype, CreateWebViewNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "create-web-view", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr CreateWebViewNativeDelegate (IntPtr inst);
|
||||
|
||||
static IntPtr CreateWebView_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
AutomationSession __obj = GLib.Object.GetObject (inst, false) as AutomationSession;
|
||||
WebKit.WebView __result;
|
||||
__result = __obj.OnCreateWebView ();
|
||||
return __result == null ? IntPtr.Zero : __result.Handle;
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, true);
|
||||
// NOTREACHED: above call does not return.
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.AutomationSession), ConnectionMethod="OverrideCreateWebView")]
|
||||
protected virtual WebKit.WebView OnCreateWebView ()
|
||||
{
|
||||
return InternalCreateWebView ();
|
||||
}
|
||||
|
||||
private WebKit.WebView InternalCreateWebView ()
|
||||
{
|
||||
GLib.Value ret = new GLib.Value (GLib.GType.Object);
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
WebKit.WebView result = (WebKit.WebView) ret;
|
||||
ret.Dispose ();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_automation_session_get_type();
|
||||
static d_webkit_automation_session_get_type webkit_automation_session_get_type = FuncLoader.LoadFunction<d_webkit_automation_session_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_automation_session_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_automation_session_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_automation_session_get_application_info(IntPtr raw);
|
||||
static d_webkit_automation_session_get_application_info webkit_automation_session_get_application_info = FuncLoader.LoadFunction<d_webkit_automation_session_get_application_info>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_automation_session_get_application_info"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_automation_session_set_application_info(IntPtr raw, IntPtr value);
|
||||
static d_webkit_automation_session_set_application_info webkit_automation_session_set_application_info = FuncLoader.LoadFunction<d_webkit_automation_session_set_application_info>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_automation_session_set_application_info"));
|
||||
|
||||
public WebKit.ApplicationInfo ApplicationInfo {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_automation_session_get_application_info(Handle);
|
||||
WebKit.ApplicationInfo ret = WebKit.ApplicationInfo.New (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
|
||||
webkit_automation_session_set_application_info(Handle, native_value);
|
||||
Marshal.FreeHGlobal (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static AutomationSession ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void AutomationStartedHandler(object o, AutomationStartedArgs args);
|
||||
|
||||
public class AutomationStartedArgs : GLib.SignalArgs {
|
||||
public WebKit.AutomationSession Session{
|
||||
get {
|
||||
return (WebKit.AutomationSession) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.AutoplayPolicyGType))]
|
||||
public enum AutoplayPolicy {
|
||||
|
||||
Allow = 0,
|
||||
AllowWithoutSound = 1,
|
||||
Deny = 2,
|
||||
}
|
||||
|
||||
internal class AutoplayPolicyGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_autoplay_policy_get_type();
|
||||
static d_webkit_autoplay_policy_get_type webkit_autoplay_policy_get_type = FuncLoader.LoadFunction<d_webkit_autoplay_policy_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_autoplay_policy_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_autoplay_policy_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class BackForwardList : GLib.Object {
|
||||
|
||||
public BackForwardList (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected BackForwardList() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Signal("changed")]
|
||||
public event WebKit.ChangedHandler Changed {
|
||||
add {
|
||||
this.AddSignalHandler ("changed", value, typeof (WebKit.ChangedArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("changed", value);
|
||||
}
|
||||
}
|
||||
|
||||
static ChangedNativeDelegate Changed_cb_delegate;
|
||||
static ChangedNativeDelegate ChangedVMCallback {
|
||||
get {
|
||||
if (Changed_cb_delegate == null)
|
||||
Changed_cb_delegate = new ChangedNativeDelegate (Changed_cb);
|
||||
return Changed_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideChanged (GLib.GType gtype)
|
||||
{
|
||||
OverrideChanged (gtype, ChangedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideChanged (GLib.GType gtype, ChangedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "changed", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ChangedNativeDelegate (IntPtr inst, IntPtr item_added, IntPtr items_removed);
|
||||
|
||||
static void Changed_cb (IntPtr inst, IntPtr item_added, IntPtr items_removed)
|
||||
{
|
||||
try {
|
||||
BackForwardList __obj = GLib.Object.GetObject (inst, false) as BackForwardList;
|
||||
__obj.OnChanged (GLib.Object.GetObject(item_added) as WebKit.BackForwardListItem, items_removed);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.BackForwardList), ConnectionMethod="OverrideChanged")]
|
||||
protected virtual void OnChanged (WebKit.BackForwardListItem item_added, IntPtr items_removed)
|
||||
{
|
||||
InternalChanged (item_added, items_removed);
|
||||
}
|
||||
|
||||
private void InternalChanged (WebKit.BackForwardListItem item_added, IntPtr items_removed)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
|
||||
GLib.Value[] vals = new GLib.Value [3];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (item_added);
|
||||
inst_and_params.Append (vals [1]);
|
||||
vals [2] = new GLib.Value (items_removed);
|
||||
inst_and_params.Append (vals [2]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_type();
|
||||
static d_webkit_back_forward_list_get_type webkit_back_forward_list_get_type = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_back_item(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_back_item webkit_back_forward_list_get_back_item = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_back_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_back_item"));
|
||||
|
||||
public WebKit.BackForwardListItem BackItem {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_back_item(Handle);
|
||||
WebKit.BackForwardListItem ret = GLib.Object.GetObject(raw_ret) as WebKit.BackForwardListItem;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_back_list(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_back_list webkit_back_forward_list_get_back_list = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_back_list>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_back_list"));
|
||||
|
||||
public WebKit.BackForwardListItem[] BackList {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_back_list(Handle);
|
||||
WebKit.BackForwardListItem[] ret = GLib.Marshaller.ListPtrToArray<WebKit.BackForwardListItem, WebKit.BackForwardListItem> (raw_ret, false, true);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_back_list_with_limit(IntPtr raw, uint limit);
|
||||
static d_webkit_back_forward_list_get_back_list_with_limit webkit_back_forward_list_get_back_list_with_limit = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_back_list_with_limit>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_back_list_with_limit"));
|
||||
|
||||
public WebKit.BackForwardListItem[] GetBackListWithLimit(uint limit) {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_back_list_with_limit(Handle, limit);
|
||||
WebKit.BackForwardListItem[] ret = GLib.Marshaller.ListPtrToArray<WebKit.BackForwardListItem, WebKit.BackForwardListItem> (raw_ret, false, true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_current_item(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_current_item webkit_back_forward_list_get_current_item = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_current_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_current_item"));
|
||||
|
||||
public WebKit.BackForwardListItem CurrentItem {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_current_item(Handle);
|
||||
WebKit.BackForwardListItem ret = GLib.Object.GetObject(raw_ret) as WebKit.BackForwardListItem;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_forward_item(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_forward_item webkit_back_forward_list_get_forward_item = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_forward_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_forward_item"));
|
||||
|
||||
public WebKit.BackForwardListItem ForwardItem {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_forward_item(Handle);
|
||||
WebKit.BackForwardListItem ret = GLib.Object.GetObject(raw_ret) as WebKit.BackForwardListItem;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_forward_list(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_forward_list webkit_back_forward_list_get_forward_list = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_forward_list>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_forward_list"));
|
||||
|
||||
public WebKit.BackForwardListItem[] ForwardList {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_forward_list(Handle);
|
||||
WebKit.BackForwardListItem[] ret = GLib.Marshaller.ListPtrToArray<WebKit.BackForwardListItem, WebKit.BackForwardListItem> (raw_ret, false, true);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_forward_list_with_limit(IntPtr raw, uint limit);
|
||||
static d_webkit_back_forward_list_get_forward_list_with_limit webkit_back_forward_list_get_forward_list_with_limit = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_forward_list_with_limit>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_forward_list_with_limit"));
|
||||
|
||||
public WebKit.BackForwardListItem[] GetForwardListWithLimit(uint limit) {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_forward_list_with_limit(Handle, limit);
|
||||
WebKit.BackForwardListItem[] ret = GLib.Marshaller.ListPtrToArray<WebKit.BackForwardListItem, WebKit.BackForwardListItem> (raw_ret, false, true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_back_forward_list_get_length(IntPtr raw);
|
||||
static d_webkit_back_forward_list_get_length webkit_back_forward_list_get_length = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_length>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_length"));
|
||||
|
||||
public uint Length {
|
||||
get {
|
||||
uint raw_ret = webkit_back_forward_list_get_length(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_get_nth_item(IntPtr raw, int index);
|
||||
static d_webkit_back_forward_list_get_nth_item webkit_back_forward_list_get_nth_item = FuncLoader.LoadFunction<d_webkit_back_forward_list_get_nth_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_get_nth_item"));
|
||||
|
||||
public WebKit.BackForwardListItem GetNthItem(int index) {
|
||||
IntPtr raw_ret = webkit_back_forward_list_get_nth_item(Handle, index);
|
||||
WebKit.BackForwardListItem ret = GLib.Object.GetObject(raw_ret) as WebKit.BackForwardListItem;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
static BackForwardList ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class BackForwardListItem : GLib.InitiallyUnowned {
|
||||
|
||||
public BackForwardListItem (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected BackForwardListItem() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_item_get_type();
|
||||
static d_webkit_back_forward_list_item_get_type webkit_back_forward_list_item_get_type = FuncLoader.LoadFunction<d_webkit_back_forward_list_item_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_item_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_item_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_item_get_original_uri(IntPtr raw);
|
||||
static d_webkit_back_forward_list_item_get_original_uri webkit_back_forward_list_item_get_original_uri = FuncLoader.LoadFunction<d_webkit_back_forward_list_item_get_original_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_item_get_original_uri"));
|
||||
|
||||
public string OriginalUri {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_item_get_original_uri(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_item_get_title(IntPtr raw);
|
||||
static d_webkit_back_forward_list_item_get_title webkit_back_forward_list_item_get_title = FuncLoader.LoadFunction<d_webkit_back_forward_list_item_get_title>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_item_get_title"));
|
||||
|
||||
public string Title {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_item_get_title(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_back_forward_list_item_get_uri(IntPtr raw);
|
||||
static d_webkit_back_forward_list_item_get_uri webkit_back_forward_list_item_get_uri = FuncLoader.LoadFunction<d_webkit_back_forward_list_item_get_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_back_forward_list_item_get_uri"));
|
||||
|
||||
public string Uri {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_back_forward_list_item_get_uri(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static BackForwardListItem ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void BringToFrontHandler(object o, BringToFrontArgs args);
|
||||
|
||||
public class BringToFrontArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.CacheModelGType))]
|
||||
public enum CacheModel {
|
||||
|
||||
DocumentViewer = 0,
|
||||
WebBrowser = 1,
|
||||
DocumentBrowser = 2,
|
||||
}
|
||||
|
||||
internal class CacheModelGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cache_model_get_type();
|
||||
static d_webkit_cache_model_get_type webkit_cache_model_get_type = FuncLoader.LoadFunction<d_webkit_cache_model_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cache_model_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_cache_model_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void ChangedHandler(object o, ChangedArgs args);
|
||||
|
||||
public class ChangedArgs : GLib.SignalArgs {
|
||||
public WebKit.BackForwardListItem ItemAdded{
|
||||
get {
|
||||
return (WebKit.BackForwardListItem) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public IntPtr ItemsRemoved{
|
||||
get {
|
||||
return (IntPtr) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class ColorChooserRequest : GLib.Object {
|
||||
|
||||
public ColorChooserRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected ColorChooserRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_color_chooser_request_get_rgba(IntPtr raw, IntPtr rgba);
|
||||
static d_webkit_color_chooser_request_get_rgba webkit_color_chooser_request_get_rgba = FuncLoader.LoadFunction<d_webkit_color_chooser_request_get_rgba>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_get_rgba"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_color_chooser_request_set_rgba(IntPtr raw, IntPtr value);
|
||||
static d_webkit_color_chooser_request_set_rgba webkit_color_chooser_request_set_rgba = FuncLoader.LoadFunction<d_webkit_color_chooser_request_set_rgba>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_set_rgba"));
|
||||
|
||||
[GLib.Property ("rgba")]
|
||||
public Gdk.RGBA Rgba {
|
||||
get {
|
||||
Gdk.RGBA rgba;
|
||||
IntPtr native_rgba = Marshal.AllocHGlobal (Marshal.SizeOf<Gdk.RGBA>());
|
||||
webkit_color_chooser_request_get_rgba(Handle, native_rgba);
|
||||
rgba = Gdk.RGBA.New (native_rgba);
|
||||
Marshal.FreeHGlobal (native_rgba);
|
||||
return rgba;
|
||||
}
|
||||
set {
|
||||
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
|
||||
webkit_color_chooser_request_set_rgba(Handle, native_value);
|
||||
Marshal.FreeHGlobal (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("finished")]
|
||||
public event System.EventHandler Finished {
|
||||
add {
|
||||
this.AddSignalHandler ("finished", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("finished", value);
|
||||
}
|
||||
}
|
||||
|
||||
static FinishedNativeDelegate Finished_cb_delegate;
|
||||
static FinishedNativeDelegate FinishedVMCallback {
|
||||
get {
|
||||
if (Finished_cb_delegate == null)
|
||||
Finished_cb_delegate = new FinishedNativeDelegate (Finished_cb);
|
||||
return Finished_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFinished (GLib.GType gtype)
|
||||
{
|
||||
OverrideFinished (gtype, FinishedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFinished (GLib.GType gtype, FinishedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "finished", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FinishedNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Finished_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
ColorChooserRequest __obj = GLib.Object.GetObject (inst, false) as ColorChooserRequest;
|
||||
__obj.OnFinished ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.ColorChooserRequest), ConnectionMethod="OverrideFinished")]
|
||||
protected virtual void OnFinished ()
|
||||
{
|
||||
InternalFinished ();
|
||||
}
|
||||
|
||||
private void InternalFinished ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_color_chooser_request_get_type();
|
||||
static d_webkit_color_chooser_request_get_type webkit_color_chooser_request_get_type = FuncLoader.LoadFunction<d_webkit_color_chooser_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_color_chooser_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_color_chooser_request_cancel(IntPtr raw);
|
||||
static d_webkit_color_chooser_request_cancel webkit_color_chooser_request_cancel = FuncLoader.LoadFunction<d_webkit_color_chooser_request_cancel>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_cancel"));
|
||||
|
||||
public void Cancel() {
|
||||
webkit_color_chooser_request_cancel(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_color_chooser_request_finish(IntPtr raw);
|
||||
static d_webkit_color_chooser_request_finish webkit_color_chooser_request_finish = FuncLoader.LoadFunction<d_webkit_color_chooser_request_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_finish"));
|
||||
|
||||
public void Finish() {
|
||||
webkit_color_chooser_request_finish(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_color_chooser_request_get_element_rectangle(IntPtr raw, IntPtr rect);
|
||||
static d_webkit_color_chooser_request_get_element_rectangle webkit_color_chooser_request_get_element_rectangle = FuncLoader.LoadFunction<d_webkit_color_chooser_request_get_element_rectangle>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_color_chooser_request_get_element_rectangle"));
|
||||
|
||||
public Gdk.Rectangle ElementRectangle {
|
||||
get {
|
||||
Gdk.Rectangle rect;
|
||||
IntPtr native_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Gdk.Rectangle>());
|
||||
webkit_color_chooser_request_get_element_rectangle(Handle, native_rect);
|
||||
rect = (Gdk.Rectangle) Marshal.PtrToStructure (native_rect, typeof (Gdk.Rectangle));
|
||||
Marshal.FreeHGlobal (native_rect);
|
||||
return rect;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static ColorChooserRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CommittedHandler(object o, CommittedArgs args);
|
||||
|
||||
public class CommittedArgs : GLib.SignalArgs {
|
||||
public string Text{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class Constants {
|
||||
|
||||
public const string EDITING_COMMAND_COPY = @"Copy";
|
||||
public const string EDITING_COMMAND_CREATE_LINK = @"CreateLink";
|
||||
public const string EDITING_COMMAND_CUT = @"Cut";
|
||||
public const string EDITING_COMMAND_INSERT_IMAGE = @"InsertImage";
|
||||
public const string EDITING_COMMAND_PASTE = @"Paste";
|
||||
public const string EDITING_COMMAND_PASTE_AS_PLAIN_TEXT = @"PasteAsPlainText";
|
||||
public const string EDITING_COMMAND_REDO = @"Redo";
|
||||
public const string EDITING_COMMAND_SELECT_ALL = @"SelectAll";
|
||||
public const string EDITING_COMMAND_UNDO = @"Undo";
|
||||
public const int MAJOR_VERSION = 2;
|
||||
public const int MICRO_VERSION = 0;
|
||||
public const int MINOR_VERSION = 32;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,257 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class ContextMenu : GLib.Object {
|
||||
|
||||
public ContextMenu (IntPtr raw) : base(raw) {}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_new();
|
||||
static d_webkit_context_menu_new webkit_context_menu_new = FuncLoader.LoadFunction<d_webkit_context_menu_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_new"));
|
||||
|
||||
public ContextMenu () : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenu)) {
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
return;
|
||||
}
|
||||
Raw = webkit_context_menu_new();
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_new_with_items(IntPtr items);
|
||||
static d_webkit_context_menu_new_with_items webkit_context_menu_new_with_items = FuncLoader.LoadFunction<d_webkit_context_menu_new_with_items>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_new_with_items"));
|
||||
|
||||
public ContextMenu (GLib.List items) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenu)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
Raw = webkit_context_menu_new_with_items(items == null ? IntPtr.Zero : items.Handle);
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_get_type();
|
||||
static d_webkit_context_menu_get_type webkit_context_menu_get_type = FuncLoader.LoadFunction<d_webkit_context_menu_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_append(IntPtr raw, IntPtr item);
|
||||
static d_webkit_context_menu_append webkit_context_menu_append = FuncLoader.LoadFunction<d_webkit_context_menu_append>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_append"));
|
||||
|
||||
public void Append(WebKit.ContextMenuItem item) {
|
||||
webkit_context_menu_append(Handle, item == null ? IntPtr.Zero : item.Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_first(IntPtr raw);
|
||||
static d_webkit_context_menu_first webkit_context_menu_first = FuncLoader.LoadFunction<d_webkit_context_menu_first>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_first"));
|
||||
|
||||
public WebKit.ContextMenuItem First() {
|
||||
IntPtr raw_ret = webkit_context_menu_first(Handle);
|
||||
WebKit.ContextMenuItem ret = GLib.Object.GetObject(raw_ret) as WebKit.ContextMenuItem;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_get_item_at_position(IntPtr raw, uint position);
|
||||
static d_webkit_context_menu_get_item_at_position webkit_context_menu_get_item_at_position = FuncLoader.LoadFunction<d_webkit_context_menu_get_item_at_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_get_item_at_position"));
|
||||
|
||||
public WebKit.ContextMenuItem GetItemAtPosition(uint position) {
|
||||
IntPtr raw_ret = webkit_context_menu_get_item_at_position(Handle, position);
|
||||
WebKit.ContextMenuItem ret = GLib.Object.GetObject(raw_ret) as WebKit.ContextMenuItem;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_get_items(IntPtr raw);
|
||||
static d_webkit_context_menu_get_items webkit_context_menu_get_items = FuncLoader.LoadFunction<d_webkit_context_menu_get_items>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_get_items"));
|
||||
|
||||
public WebKit.ContextMenuItem[] Items {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_get_items(Handle);
|
||||
WebKit.ContextMenuItem[] ret = GLib.Marshaller.ListPtrToArray<WebKit.ContextMenuItem, WebKit.ContextMenuItem> (raw_ret, false, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_context_menu_get_n_items(IntPtr raw);
|
||||
static d_webkit_context_menu_get_n_items webkit_context_menu_get_n_items = FuncLoader.LoadFunction<d_webkit_context_menu_get_n_items>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_get_n_items"));
|
||||
|
||||
public uint NItems {
|
||||
get {
|
||||
uint raw_ret = webkit_context_menu_get_n_items(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_get_user_data(IntPtr raw);
|
||||
static d_webkit_context_menu_get_user_data webkit_context_menu_get_user_data = FuncLoader.LoadFunction<d_webkit_context_menu_get_user_data>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_get_user_data"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_set_user_data(IntPtr raw, IntPtr user_data);
|
||||
static d_webkit_context_menu_set_user_data webkit_context_menu_set_user_data = FuncLoader.LoadFunction<d_webkit_context_menu_set_user_data>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_set_user_data"));
|
||||
|
||||
public GLib.Variant UserData {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_get_user_data(Handle);
|
||||
GLib.Variant ret = new GLib.Variant(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
webkit_context_menu_set_user_data(Handle, value == null ? IntPtr.Zero : value.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_insert(IntPtr raw, IntPtr item, int position);
|
||||
static d_webkit_context_menu_insert webkit_context_menu_insert = FuncLoader.LoadFunction<d_webkit_context_menu_insert>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_insert"));
|
||||
|
||||
public void Insert(WebKit.ContextMenuItem item, int position) {
|
||||
webkit_context_menu_insert(Handle, item == null ? IntPtr.Zero : item.Handle, position);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_last(IntPtr raw);
|
||||
static d_webkit_context_menu_last webkit_context_menu_last = FuncLoader.LoadFunction<d_webkit_context_menu_last>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_last"));
|
||||
|
||||
public WebKit.ContextMenuItem Last() {
|
||||
IntPtr raw_ret = webkit_context_menu_last(Handle);
|
||||
WebKit.ContextMenuItem ret = GLib.Object.GetObject(raw_ret) as WebKit.ContextMenuItem;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_move_item(IntPtr raw, IntPtr item, int position);
|
||||
static d_webkit_context_menu_move_item webkit_context_menu_move_item = FuncLoader.LoadFunction<d_webkit_context_menu_move_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_move_item"));
|
||||
|
||||
public void MoveItem(WebKit.ContextMenuItem item, int position) {
|
||||
webkit_context_menu_move_item(Handle, item == null ? IntPtr.Zero : item.Handle, position);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_prepend(IntPtr raw, IntPtr item);
|
||||
static d_webkit_context_menu_prepend webkit_context_menu_prepend = FuncLoader.LoadFunction<d_webkit_context_menu_prepend>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_prepend"));
|
||||
|
||||
public void Prepend(WebKit.ContextMenuItem item) {
|
||||
webkit_context_menu_prepend(Handle, item == null ? IntPtr.Zero : item.Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_remove(IntPtr raw, IntPtr item);
|
||||
static d_webkit_context_menu_remove webkit_context_menu_remove = FuncLoader.LoadFunction<d_webkit_context_menu_remove>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_remove"));
|
||||
|
||||
public void Remove(WebKit.ContextMenuItem item) {
|
||||
webkit_context_menu_remove(Handle, item == null ? IntPtr.Zero : item.Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_remove_all(IntPtr raw);
|
||||
static d_webkit_context_menu_remove_all webkit_context_menu_remove_all = FuncLoader.LoadFunction<d_webkit_context_menu_remove_all>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_remove_all"));
|
||||
|
||||
public void RemoveAll() {
|
||||
webkit_context_menu_remove_all(Handle);
|
||||
}
|
||||
|
||||
|
||||
static ContextMenu ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.ContextMenuActionGType))]
|
||||
public enum ContextMenuAction {
|
||||
|
||||
NoAction = 0,
|
||||
OpenLink = 1,
|
||||
OpenLinkInNewWindow = 2,
|
||||
DownloadLinkToDisk = 3,
|
||||
CopyLinkToClipboard = 4,
|
||||
OpenImageInNewWindow = 5,
|
||||
DownloadImageToDisk = 6,
|
||||
CopyImageToClipboard = 7,
|
||||
CopyImageUrlToClipboard = 8,
|
||||
OpenFrameInNewWindow = 9,
|
||||
GoBack = 10,
|
||||
GoForward = 11,
|
||||
Stop = 12,
|
||||
Reload = 13,
|
||||
Copy = 14,
|
||||
Cut = 15,
|
||||
Paste = 16,
|
||||
Delete = 17,
|
||||
SelectAll = 18,
|
||||
InputMethods = 19,
|
||||
Unicode = 20,
|
||||
SpellingGuess = 21,
|
||||
NoGuessesFound = 22,
|
||||
IgnoreSpelling = 23,
|
||||
LearnSpelling = 24,
|
||||
IgnoreGrammar = 25,
|
||||
FontMenu = 26,
|
||||
Bold = 27,
|
||||
Italic = 28,
|
||||
Underline = 29,
|
||||
Outline = 30,
|
||||
InspectElement = 31,
|
||||
OpenVideoInNewWindow = 32,
|
||||
OpenAudioInNewWindow = 33,
|
||||
CopyVideoLinkToClipboard = 34,
|
||||
CopyAudioLinkToClipboard = 35,
|
||||
ToggleMediaControls = 36,
|
||||
ToggleMediaLoop = 37,
|
||||
EnterVideoFullscreen = 38,
|
||||
MediaPlay = 39,
|
||||
MediaPause = 40,
|
||||
MediaMute = 41,
|
||||
DownloadVideoToDisk = 42,
|
||||
DownloadAudioToDisk = 43,
|
||||
InsertEmoji = 44,
|
||||
PasteAsPlainText = 45,
|
||||
Custom = 10000,
|
||||
}
|
||||
|
||||
internal class ContextMenuActionGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_action_get_type();
|
||||
static d_webkit_context_menu_action_get_type webkit_context_menu_action_get_type = FuncLoader.LoadFunction<d_webkit_context_menu_action_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_action_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_context_menu_action_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void ContextMenuHandler(object o, ContextMenuArgs args);
|
||||
|
||||
public class ContextMenuArgs : GLib.SignalArgs {
|
||||
public WebKit.ContextMenu ContextMenu{
|
||||
get {
|
||||
return (WebKit.ContextMenu) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public Gdk.Event Event{
|
||||
get {
|
||||
return (Gdk.Event) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
public WebKit.HitTestResult HitTestResult{
|
||||
get {
|
||||
return (WebKit.HitTestResult) Args [2];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class ContextMenuItem : GLib.InitiallyUnowned {
|
||||
|
||||
public ContextMenuItem (IntPtr raw) : base(raw) {}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new(IntPtr action);
|
||||
static d_webkit_context_menu_item_new webkit_context_menu_item_new = FuncLoader.LoadFunction<d_webkit_context_menu_item_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new"));
|
||||
|
||||
[Obsolete]
|
||||
public ContextMenuItem (Gtk.Action action) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
Raw = webkit_context_menu_item_new(action == null ? IntPtr.Zero : action.Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new_from_gaction(IntPtr action, IntPtr label, IntPtr target);
|
||||
static d_webkit_context_menu_item_new_from_gaction webkit_context_menu_item_new_from_gaction = FuncLoader.LoadFunction<d_webkit_context_menu_item_new_from_gaction>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new_from_gaction"));
|
||||
|
||||
public ContextMenuItem (GLib.IAction action, string label, GLib.Variant target) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
IntPtr native_label = GLib.Marshaller.StringToPtrGStrdup (label);
|
||||
Raw = webkit_context_menu_item_new_from_gaction(action == null ? IntPtr.Zero : ((action is GLib.Object) ? (action as GLib.Object).Handle : (action as GLib.ActionAdapter).Handle), native_label, target == null ? IntPtr.Zero : target.Handle);
|
||||
GLib.Marshaller.Free (native_label);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new_from_stock_action(int action);
|
||||
static d_webkit_context_menu_item_new_from_stock_action webkit_context_menu_item_new_from_stock_action = FuncLoader.LoadFunction<d_webkit_context_menu_item_new_from_stock_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new_from_stock_action"));
|
||||
|
||||
public ContextMenuItem (WebKit.ContextMenuAction action) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
Raw = webkit_context_menu_item_new_from_stock_action((int) action);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new_from_stock_action_with_label(int action, IntPtr label);
|
||||
static d_webkit_context_menu_item_new_from_stock_action_with_label webkit_context_menu_item_new_from_stock_action_with_label = FuncLoader.LoadFunction<d_webkit_context_menu_item_new_from_stock_action_with_label>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new_from_stock_action_with_label"));
|
||||
|
||||
public ContextMenuItem (WebKit.ContextMenuAction action, string label) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
IntPtr native_label = GLib.Marshaller.StringToPtrGStrdup (label);
|
||||
Raw = webkit_context_menu_item_new_from_stock_action_with_label((int) action, native_label);
|
||||
GLib.Marshaller.Free (native_label);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new_separator();
|
||||
static d_webkit_context_menu_item_new_separator webkit_context_menu_item_new_separator = FuncLoader.LoadFunction<d_webkit_context_menu_item_new_separator>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new_separator"));
|
||||
|
||||
public ContextMenuItem () : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
return;
|
||||
}
|
||||
Raw = webkit_context_menu_item_new_separator();
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_new_with_submenu(IntPtr label, IntPtr submenu);
|
||||
static d_webkit_context_menu_item_new_with_submenu webkit_context_menu_item_new_with_submenu = FuncLoader.LoadFunction<d_webkit_context_menu_item_new_with_submenu>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_new_with_submenu"));
|
||||
|
||||
public ContextMenuItem (string label, WebKit.ContextMenu submenu) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (ContextMenuItem)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
IntPtr native_label = GLib.Marshaller.StringToPtrGStrdup (label);
|
||||
Raw = webkit_context_menu_item_new_with_submenu(native_label, submenu == null ? IntPtr.Zero : submenu.Handle);
|
||||
GLib.Marshaller.Free (native_label);
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_get_type();
|
||||
static d_webkit_context_menu_item_get_type webkit_context_menu_item_get_type = FuncLoader.LoadFunction<d_webkit_context_menu_item_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_item_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_get_action(IntPtr raw);
|
||||
static d_webkit_context_menu_item_get_action webkit_context_menu_item_get_action = FuncLoader.LoadFunction<d_webkit_context_menu_item_get_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_get_action"));
|
||||
|
||||
[Obsolete]
|
||||
public Gtk.Action Action {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_item_get_action(Handle);
|
||||
Gtk.Action ret = GLib.Object.GetObject(raw_ret) as Gtk.Action;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_get_gaction(IntPtr raw);
|
||||
static d_webkit_context_menu_item_get_gaction webkit_context_menu_item_get_gaction = FuncLoader.LoadFunction<d_webkit_context_menu_item_get_gaction>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_get_gaction"));
|
||||
|
||||
public GLib.IAction Gaction {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_item_get_gaction(Handle);
|
||||
GLib.IAction ret = GLib.ActionAdapter.GetObject (raw_ret, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_context_menu_item_get_stock_action(IntPtr raw);
|
||||
static d_webkit_context_menu_item_get_stock_action webkit_context_menu_item_get_stock_action = FuncLoader.LoadFunction<d_webkit_context_menu_item_get_stock_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_get_stock_action"));
|
||||
|
||||
public WebKit.ContextMenuAction StockAction {
|
||||
get {
|
||||
int raw_ret = webkit_context_menu_item_get_stock_action(Handle);
|
||||
WebKit.ContextMenuAction ret = (WebKit.ContextMenuAction) raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_context_menu_item_get_submenu(IntPtr raw);
|
||||
static d_webkit_context_menu_item_get_submenu webkit_context_menu_item_get_submenu = FuncLoader.LoadFunction<d_webkit_context_menu_item_get_submenu>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_get_submenu"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_context_menu_item_set_submenu(IntPtr raw, IntPtr submenu);
|
||||
static d_webkit_context_menu_item_set_submenu webkit_context_menu_item_set_submenu = FuncLoader.LoadFunction<d_webkit_context_menu_item_set_submenu>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_set_submenu"));
|
||||
|
||||
public WebKit.ContextMenu Submenu {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_context_menu_item_get_submenu(Handle);
|
||||
WebKit.ContextMenu ret = GLib.Object.GetObject(raw_ret) as WebKit.ContextMenu;
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
webkit_context_menu_item_set_submenu(Handle, value == null ? IntPtr.Zero : value.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_context_menu_item_is_separator(IntPtr raw);
|
||||
static d_webkit_context_menu_item_is_separator webkit_context_menu_item_is_separator = FuncLoader.LoadFunction<d_webkit_context_menu_item_is_separator>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_context_menu_item_is_separator"));
|
||||
|
||||
public bool IsSeparator {
|
||||
get {
|
||||
bool raw_ret = webkit_context_menu_item_is_separator(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static ContextMenuItem ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.CookieAcceptPolicyGType))]
|
||||
public enum CookieAcceptPolicy {
|
||||
|
||||
Always = 0,
|
||||
Never = 1,
|
||||
NoThirdParty = 2,
|
||||
}
|
||||
|
||||
internal class CookieAcceptPolicyGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cookie_accept_policy_get_type();
|
||||
static d_webkit_cookie_accept_policy_get_type webkit_cookie_accept_policy_get_type = FuncLoader.LoadFunction<d_webkit_cookie_accept_policy_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_accept_policy_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_cookie_accept_policy_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,316 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class CookieManager : GLib.Object {
|
||||
|
||||
public CookieManager (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected CookieManager() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Signal("changed")]
|
||||
public event System.EventHandler Changed {
|
||||
add {
|
||||
this.AddSignalHandler ("changed", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("changed", value);
|
||||
}
|
||||
}
|
||||
|
||||
static ChangedNativeDelegate Changed_cb_delegate;
|
||||
static ChangedNativeDelegate ChangedVMCallback {
|
||||
get {
|
||||
if (Changed_cb_delegate == null)
|
||||
Changed_cb_delegate = new ChangedNativeDelegate (Changed_cb);
|
||||
return Changed_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideChanged (GLib.GType gtype)
|
||||
{
|
||||
OverrideChanged (gtype, ChangedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideChanged (GLib.GType gtype, ChangedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "changed", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ChangedNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Changed_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
CookieManager __obj = GLib.Object.GetObject (inst, false) as CookieManager;
|
||||
__obj.OnChanged ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.CookieManager), ConnectionMethod="OverrideChanged")]
|
||||
protected virtual void OnChanged ()
|
||||
{
|
||||
InternalChanged ();
|
||||
}
|
||||
|
||||
private void InternalChanged ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cookie_manager_get_type();
|
||||
static d_webkit_cookie_manager_get_type webkit_cookie_manager_get_type = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_cookie_manager_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_cookie_manager_add_cookie_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_cookie_manager_add_cookie_finish webkit_cookie_manager_add_cookie_finish = FuncLoader.LoadFunction<d_webkit_cookie_manager_add_cookie_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_add_cookie_finish"));
|
||||
|
||||
public unsafe bool AddCookieFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
bool raw_ret = webkit_cookie_manager_add_cookie_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
bool ret = raw_ret;
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_delete_all_cookies(IntPtr raw);
|
||||
static d_webkit_cookie_manager_delete_all_cookies webkit_cookie_manager_delete_all_cookies = FuncLoader.LoadFunction<d_webkit_cookie_manager_delete_all_cookies>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_delete_all_cookies"));
|
||||
|
||||
[Obsolete]
|
||||
public void DeleteAllCookies() {
|
||||
webkit_cookie_manager_delete_all_cookies(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_cookie_manager_delete_cookie_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_cookie_manager_delete_cookie_finish webkit_cookie_manager_delete_cookie_finish = FuncLoader.LoadFunction<d_webkit_cookie_manager_delete_cookie_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_delete_cookie_finish"));
|
||||
|
||||
public unsafe bool DeleteCookieFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
bool raw_ret = webkit_cookie_manager_delete_cookie_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
bool ret = raw_ret;
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_delete_cookies_for_domain(IntPtr raw, IntPtr domain);
|
||||
static d_webkit_cookie_manager_delete_cookies_for_domain webkit_cookie_manager_delete_cookies_for_domain = FuncLoader.LoadFunction<d_webkit_cookie_manager_delete_cookies_for_domain>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_delete_cookies_for_domain"));
|
||||
|
||||
[Obsolete]
|
||||
public void DeleteCookiesForDomain(string domain) {
|
||||
IntPtr native_domain = GLib.Marshaller.StringToPtrGStrdup (domain);
|
||||
webkit_cookie_manager_delete_cookies_for_domain(Handle, native_domain);
|
||||
GLib.Marshaller.Free (native_domain);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_get_accept_policy(IntPtr raw, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
|
||||
static d_webkit_cookie_manager_get_accept_policy webkit_cookie_manager_get_accept_policy = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_accept_policy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_accept_policy"));
|
||||
|
||||
public void GetAcceptPolicy(GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
|
||||
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
|
||||
cb_wrapper.PersistUntilCalled ();
|
||||
webkit_cookie_manager_get_accept_policy(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
}
|
||||
|
||||
public void GetAcceptPolicy() {
|
||||
GetAcceptPolicy (null, null);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_cookie_manager_get_accept_policy_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_cookie_manager_get_accept_policy_finish webkit_cookie_manager_get_accept_policy_finish = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_accept_policy_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_accept_policy_finish"));
|
||||
|
||||
public unsafe WebKit.CookieAcceptPolicy GetAcceptPolicyFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
int raw_ret = webkit_cookie_manager_get_accept_policy_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
WebKit.CookieAcceptPolicy ret = (WebKit.CookieAcceptPolicy) raw_ret;
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_get_cookies(IntPtr raw, IntPtr uri, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
|
||||
static d_webkit_cookie_manager_get_cookies webkit_cookie_manager_get_cookies = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_cookies>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_cookies"));
|
||||
|
||||
public void GetCookies(string uri, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
|
||||
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
|
||||
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
|
||||
cb_wrapper.PersistUntilCalled ();
|
||||
webkit_cookie_manager_get_cookies(Handle, native_uri, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
GLib.Marshaller.Free (native_uri);
|
||||
}
|
||||
|
||||
public void GetCookies(string uri) {
|
||||
GetCookies (uri, null, null);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cookie_manager_get_cookies_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_cookie_manager_get_cookies_finish webkit_cookie_manager_get_cookies_finish = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_cookies_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_cookies_finish"));
|
||||
|
||||
public unsafe GLib.List[] GetCookiesFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
IntPtr raw_ret = webkit_cookie_manager_get_cookies_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
GLib.List[] ret = GLib.Marshaller.ListPtrToArray<GLib.List, GLib.List> (raw_ret, true, true);
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_get_domains_with_cookies(IntPtr raw, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
|
||||
static d_webkit_cookie_manager_get_domains_with_cookies webkit_cookie_manager_get_domains_with_cookies = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_domains_with_cookies>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_domains_with_cookies"));
|
||||
|
||||
[Obsolete]
|
||||
public void GetDomainsWithCookies(GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
|
||||
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
|
||||
cb_wrapper.PersistUntilCalled ();
|
||||
webkit_cookie_manager_get_domains_with_cookies(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
}
|
||||
|
||||
public void GetDomainsWithCookies() {
|
||||
GetDomainsWithCookies (null, null);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cookie_manager_get_domains_with_cookies_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_cookie_manager_get_domains_with_cookies_finish webkit_cookie_manager_get_domains_with_cookies_finish = FuncLoader.LoadFunction<d_webkit_cookie_manager_get_domains_with_cookies_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_get_domains_with_cookies_finish"));
|
||||
|
||||
[Obsolete]
|
||||
public unsafe string[] GetDomainsWithCookiesFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
IntPtr raw_ret = webkit_cookie_manager_get_domains_with_cookies_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, true);
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_set_accept_policy(IntPtr raw, int policy);
|
||||
static d_webkit_cookie_manager_set_accept_policy webkit_cookie_manager_set_accept_policy = FuncLoader.LoadFunction<d_webkit_cookie_manager_set_accept_policy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_set_accept_policy"));
|
||||
|
||||
public void SetAcceptPolicy(WebKit.CookieAcceptPolicy policy) {
|
||||
webkit_cookie_manager_set_accept_policy(Handle, (int) policy);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_cookie_manager_set_persistent_storage(IntPtr raw, IntPtr filename, int storage);
|
||||
static d_webkit_cookie_manager_set_persistent_storage webkit_cookie_manager_set_persistent_storage = FuncLoader.LoadFunction<d_webkit_cookie_manager_set_persistent_storage>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_manager_set_persistent_storage"));
|
||||
|
||||
public void SetPersistentStorage(string filename, WebKit.CookiePersistentStorage storage) {
|
||||
IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
|
||||
webkit_cookie_manager_set_persistent_storage(Handle, native_filename, (int) storage);
|
||||
GLib.Marshaller.Free (native_filename);
|
||||
}
|
||||
|
||||
|
||||
static CookieManager ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.CookiePersistentStorageGType))]
|
||||
public enum CookiePersistentStorage {
|
||||
|
||||
Text = 0,
|
||||
Sqlite = 1,
|
||||
}
|
||||
|
||||
internal class CookiePersistentStorageGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_cookie_persistent_storage_get_type();
|
||||
static d_webkit_cookie_persistent_storage_get_type webkit_cookie_persistent_storage_get_type = FuncLoader.LoadFunction<d_webkit_cookie_persistent_storage_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_cookie_persistent_storage_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_cookie_persistent_storage_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CountedMatchesHandler(object o, CountedMatchesArgs args);
|
||||
|
||||
public class CountedMatchesArgs : GLib.SignalArgs {
|
||||
public uint MatchCount{
|
||||
get {
|
||||
return (uint) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CreateCustomWidgetHandler(object o, CreateCustomWidgetArgs args);
|
||||
|
||||
public class CreateCustomWidgetArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CreateHandler(object o, CreateArgs args);
|
||||
|
||||
public class CreateArgs : GLib.SignalArgs {
|
||||
public WebKit.NavigationAction NavigationAction{
|
||||
get {
|
||||
return (WebKit.NavigationAction) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CreateWebViewHandler(object o, CreateWebViewArgs args);
|
||||
|
||||
public class CreateWebViewArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void CreatedDestinationHandler(object o, CreatedDestinationArgs args);
|
||||
|
||||
public class CreatedDestinationArgs : GLib.SignalArgs {
|
||||
public string Destination{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct Credential : IEquatable<Credential> {
|
||||
|
||||
|
||||
public static WebKit.Credential Zero = new WebKit.Credential ();
|
||||
|
||||
public static WebKit.Credential New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.Credential.Zero;
|
||||
return (WebKit.Credential) Marshal.PtrToStructure (raw, typeof (WebKit.Credential));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_credential_new(IntPtr username, IntPtr password, int persistence);
|
||||
static d_webkit_credential_new webkit_credential_new = FuncLoader.LoadFunction<d_webkit_credential_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_new"));
|
||||
|
||||
public static Credential New(string username, string password, WebKit.CredentialPersistence persistence)
|
||||
{
|
||||
IntPtr native_username = GLib.Marshaller.StringToPtrGStrdup (username);
|
||||
IntPtr native_password = GLib.Marshaller.StringToPtrGStrdup (password);
|
||||
Credential result = Credential.New (webkit_credential_new(native_username, native_password, (int) persistence));
|
||||
GLib.Marshaller.Free (native_username);
|
||||
GLib.Marshaller.Free (native_password);
|
||||
return result;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_credential_get_type();
|
||||
static d_webkit_credential_get_type webkit_credential_get_type = FuncLoader.LoadFunction<d_webkit_credential_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_credential_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_credential_get_password(IntPtr raw);
|
||||
static d_webkit_credential_get_password webkit_credential_get_password = FuncLoader.LoadFunction<d_webkit_credential_get_password>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_get_password"));
|
||||
|
||||
public string Password {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.Credential>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_credential_get_password(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_credential_get_persistence(IntPtr raw);
|
||||
static d_webkit_credential_get_persistence webkit_credential_get_persistence = FuncLoader.LoadFunction<d_webkit_credential_get_persistence>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_get_persistence"));
|
||||
|
||||
public WebKit.CredentialPersistence Persistence {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.Credential>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
int raw_ret = webkit_credential_get_persistence(this_as_native);
|
||||
WebKit.CredentialPersistence ret = (WebKit.CredentialPersistence) raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_credential_get_username(IntPtr raw);
|
||||
static d_webkit_credential_get_username webkit_credential_get_username = FuncLoader.LoadFunction<d_webkit_credential_get_username>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_get_username"));
|
||||
|
||||
public string Username {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.Credential>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_credential_get_username(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_credential_has_password(IntPtr raw);
|
||||
static d_webkit_credential_has_password webkit_credential_has_password = FuncLoader.LoadFunction<d_webkit_credential_has_password>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_has_password"));
|
||||
|
||||
public bool HasPassword {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.Credential>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_credential_has_password(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.Credential target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (Credential other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is Credential && Equals ((Credential) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.Credential boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.Credential.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.Credential (GLib.Value val)
|
||||
{
|
||||
return (WebKit.Credential) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.CredentialPersistenceGType))]
|
||||
public enum CredentialPersistence {
|
||||
|
||||
None = 0,
|
||||
ForSession = 1,
|
||||
Permanent = 2,
|
||||
}
|
||||
|
||||
internal class CredentialPersistenceGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_credential_persistence_get_type();
|
||||
static d_webkit_credential_persistence_get_type webkit_credential_persistence_get_type = FuncLoader.LoadFunction<d_webkit_credential_persistence_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_credential_persistence_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_credential_persistence_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void DecideDestinationHandler(object o, DecideDestinationArgs args);
|
||||
|
||||
public class DecideDestinationArgs : GLib.SignalArgs {
|
||||
public string SuggestedFilename{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void DecidePolicyHandler(object o, DecidePolicyArgs args);
|
||||
|
||||
public class DecidePolicyArgs : GLib.SignalArgs {
|
||||
public WebKit.PolicyDecision Decision{
|
||||
get {
|
||||
return (WebKit.PolicyDecision) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public WebKit.PolicyDecisionType DecisionType{
|
||||
get {
|
||||
return (WebKit.PolicyDecisionType) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void DeleteSurroundingHandler(object o, DeleteSurroundingArgs args);
|
||||
|
||||
public class DeleteSurroundingArgs : GLib.SignalArgs {
|
||||
public int Offset{
|
||||
get {
|
||||
return (int) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public uint NChars{
|
||||
get {
|
||||
return (uint) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void DetachEventHandler(object o, DetachEventArgs args);
|
||||
|
||||
public class DetachEventArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class DeviceInfoPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public DeviceInfoPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected DeviceInfoPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_device_info_permission_request_get_type();
|
||||
static d_webkit_device_info_permission_request_get_type webkit_device_info_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_device_info_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_device_info_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_device_info_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static DeviceInfoPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
553
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Download.cs
Normal file
553
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Download.cs
Normal file
@@ -0,0 +1,553 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class Download : GLib.Object {
|
||||
|
||||
public Download (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected Download() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_download_get_allow_overwrite(IntPtr raw);
|
||||
static d_webkit_download_get_allow_overwrite webkit_download_get_allow_overwrite = FuncLoader.LoadFunction<d_webkit_download_get_allow_overwrite>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_allow_overwrite"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_download_set_allow_overwrite(IntPtr raw, bool allowed);
|
||||
static d_webkit_download_set_allow_overwrite webkit_download_set_allow_overwrite = FuncLoader.LoadFunction<d_webkit_download_set_allow_overwrite>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_set_allow_overwrite"));
|
||||
|
||||
[GLib.Property ("allow-overwrite")]
|
||||
public bool AllowOverwrite {
|
||||
get {
|
||||
bool raw_ret = webkit_download_get_allow_overwrite(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
webkit_download_set_allow_overwrite(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_get_destination(IntPtr raw);
|
||||
static d_webkit_download_get_destination webkit_download_get_destination = FuncLoader.LoadFunction<d_webkit_download_get_destination>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_destination"));
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_download_set_destination(IntPtr raw, IntPtr uri);
|
||||
static d_webkit_download_set_destination webkit_download_set_destination = FuncLoader.LoadFunction<d_webkit_download_set_destination>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_set_destination"));
|
||||
|
||||
[GLib.Property ("destination")]
|
||||
public string Destination {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_download_get_destination(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
|
||||
webkit_download_set_destination(Handle, native_value);
|
||||
GLib.Marshaller.Free (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate double d_webkit_download_get_estimated_progress(IntPtr raw);
|
||||
static d_webkit_download_get_estimated_progress webkit_download_get_estimated_progress = FuncLoader.LoadFunction<d_webkit_download_get_estimated_progress>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_estimated_progress"));
|
||||
|
||||
[GLib.Property ("estimated-progress")]
|
||||
public double EstimatedProgress {
|
||||
get {
|
||||
double raw_ret = webkit_download_get_estimated_progress(Handle);
|
||||
double ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_get_response(IntPtr raw);
|
||||
static d_webkit_download_get_response webkit_download_get_response = FuncLoader.LoadFunction<d_webkit_download_get_response>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_response"));
|
||||
|
||||
[GLib.Property ("response")]
|
||||
public WebKit.URIResponse Response {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_download_get_response(Handle);
|
||||
WebKit.URIResponse ret = GLib.Object.GetObject(raw_ret) as WebKit.URIResponse;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("finished")]
|
||||
public event System.EventHandler Finished {
|
||||
add {
|
||||
this.AddSignalHandler ("finished", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("finished", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("received-data")]
|
||||
public event WebKit.ReceivedDataHandler ReceivedData {
|
||||
add {
|
||||
this.AddSignalHandler ("received-data", value, typeof (WebKit.ReceivedDataArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("received-data", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("failed")]
|
||||
public event WebKit.FailedHandler Failed {
|
||||
add {
|
||||
this.AddSignalHandler ("failed", value, typeof (WebKit.FailedArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("failed", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("decide-destination")]
|
||||
public event WebKit.DecideDestinationHandler DecideDestination {
|
||||
add {
|
||||
this.AddSignalHandler ("decide-destination", value, typeof (WebKit.DecideDestinationArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("decide-destination", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("created-destination")]
|
||||
public event WebKit.CreatedDestinationHandler CreatedDestination {
|
||||
add {
|
||||
this.AddSignalHandler ("created-destination", value, typeof (WebKit.CreatedDestinationArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("created-destination", value);
|
||||
}
|
||||
}
|
||||
|
||||
static CreatedDestinationNativeDelegate CreatedDestination_cb_delegate;
|
||||
static CreatedDestinationNativeDelegate CreatedDestinationVMCallback {
|
||||
get {
|
||||
if (CreatedDestination_cb_delegate == null)
|
||||
CreatedDestination_cb_delegate = new CreatedDestinationNativeDelegate (CreatedDestination_cb);
|
||||
return CreatedDestination_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCreatedDestination (GLib.GType gtype)
|
||||
{
|
||||
OverrideCreatedDestination (gtype, CreatedDestinationVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCreatedDestination (GLib.GType gtype, CreatedDestinationNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "created-destination", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void CreatedDestinationNativeDelegate (IntPtr inst, IntPtr destination);
|
||||
|
||||
static void CreatedDestination_cb (IntPtr inst, IntPtr destination)
|
||||
{
|
||||
try {
|
||||
Download __obj = GLib.Object.GetObject (inst, false) as Download;
|
||||
__obj.OnCreatedDestination (GLib.Marshaller.Utf8PtrToString (destination));
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Download), ConnectionMethod="OverrideCreatedDestination")]
|
||||
protected virtual void OnCreatedDestination (string destination)
|
||||
{
|
||||
InternalCreatedDestination (destination);
|
||||
}
|
||||
|
||||
private void InternalCreatedDestination (string destination)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (destination);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static FailedNativeDelegate Failed_cb_delegate;
|
||||
static FailedNativeDelegate FailedVMCallback {
|
||||
get {
|
||||
if (Failed_cb_delegate == null)
|
||||
Failed_cb_delegate = new FailedNativeDelegate (Failed_cb);
|
||||
return Failed_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFailed (GLib.GType gtype)
|
||||
{
|
||||
OverrideFailed (gtype, FailedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFailed (GLib.GType gtype, FailedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "failed", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FailedNativeDelegate (IntPtr inst, IntPtr error);
|
||||
|
||||
static void Failed_cb (IntPtr inst, IntPtr error)
|
||||
{
|
||||
try {
|
||||
Download __obj = GLib.Object.GetObject (inst, false) as Download;
|
||||
__obj.OnFailed (error);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Download), ConnectionMethod="OverrideFailed")]
|
||||
protected virtual void OnFailed (IntPtr error)
|
||||
{
|
||||
InternalFailed (error);
|
||||
}
|
||||
|
||||
private void InternalFailed (IntPtr error)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (error);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static FinishedNativeDelegate Finished_cb_delegate;
|
||||
static FinishedNativeDelegate FinishedVMCallback {
|
||||
get {
|
||||
if (Finished_cb_delegate == null)
|
||||
Finished_cb_delegate = new FinishedNativeDelegate (Finished_cb);
|
||||
return Finished_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFinished (GLib.GType gtype)
|
||||
{
|
||||
OverrideFinished (gtype, FinishedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFinished (GLib.GType gtype, FinishedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "finished", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FinishedNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Finished_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
Download __obj = GLib.Object.GetObject (inst, false) as Download;
|
||||
__obj.OnFinished ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Download), ConnectionMethod="OverrideFinished")]
|
||||
protected virtual void OnFinished ()
|
||||
{
|
||||
InternalFinished ();
|
||||
}
|
||||
|
||||
private void InternalFinished ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static ReceivedDataNativeDelegate ReceivedData_cb_delegate;
|
||||
static ReceivedDataNativeDelegate ReceivedDataVMCallback {
|
||||
get {
|
||||
if (ReceivedData_cb_delegate == null)
|
||||
ReceivedData_cb_delegate = new ReceivedDataNativeDelegate (ReceivedData_cb);
|
||||
return ReceivedData_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideReceivedData (GLib.GType gtype)
|
||||
{
|
||||
OverrideReceivedData (gtype, ReceivedDataVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideReceivedData (GLib.GType gtype, ReceivedDataNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "received-data", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ReceivedDataNativeDelegate (IntPtr inst, ulong data_length);
|
||||
|
||||
static void ReceivedData_cb (IntPtr inst, ulong data_length)
|
||||
{
|
||||
try {
|
||||
Download __obj = GLib.Object.GetObject (inst, false) as Download;
|
||||
__obj.OnReceivedData (data_length);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Download), ConnectionMethod="OverrideReceivedData")]
|
||||
protected virtual void OnReceivedData (ulong data_length)
|
||||
{
|
||||
InternalReceivedData (data_length);
|
||||
}
|
||||
|
||||
private void InternalReceivedData (ulong data_length)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (data_length);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static DecideDestinationNativeDelegate DecideDestination_cb_delegate;
|
||||
static DecideDestinationNativeDelegate DecideDestinationVMCallback {
|
||||
get {
|
||||
if (DecideDestination_cb_delegate == null)
|
||||
DecideDestination_cb_delegate = new DecideDestinationNativeDelegate (DecideDestination_cb);
|
||||
return DecideDestination_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideDecideDestination (GLib.GType gtype)
|
||||
{
|
||||
OverrideDecideDestination (gtype, DecideDestinationVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideDecideDestination (GLib.GType gtype, DecideDestinationNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("decide_destination"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool DecideDestinationNativeDelegate (IntPtr inst, IntPtr suggested_filename);
|
||||
|
||||
static bool DecideDestination_cb (IntPtr inst, IntPtr suggested_filename)
|
||||
{
|
||||
try {
|
||||
Download __obj = GLib.Object.GetObject (inst, false) as Download;
|
||||
bool __result;
|
||||
__result = __obj.OnDecideDestination (GLib.Marshaller.Utf8PtrToString (suggested_filename));
|
||||
return __result;
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, true);
|
||||
// NOTREACHED: above call does not return.
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Download), ConnectionMethod="OverrideDecideDestination")]
|
||||
protected virtual bool OnDecideDestination (string suggested_filename)
|
||||
{
|
||||
return InternalDecideDestination (suggested_filename);
|
||||
}
|
||||
|
||||
private bool InternalDecideDestination (string suggested_filename)
|
||||
{
|
||||
DecideDestinationNativeDelegate unmanaged = class_abi.BaseOverride<DecideDestinationNativeDelegate>(this.LookupGType(), "decide_destination");
|
||||
if (unmanaged == null) return false;
|
||||
|
||||
IntPtr native_suggested_filename = GLib.Marshaller.StringToPtrGStrdup (suggested_filename);
|
||||
bool __result = unmanaged (this.Handle, native_suggested_filename);
|
||||
GLib.Marshaller.Free (native_suggested_filename);
|
||||
return __result;
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("decide_destination"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // decide_destination
|
||||
, null
|
||||
, "_webkit_reserved0"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, "decide_destination"
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_get_type();
|
||||
static d_webkit_download_get_type webkit_download_get_type = FuncLoader.LoadFunction<d_webkit_download_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_download_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_download_cancel(IntPtr raw);
|
||||
static d_webkit_download_cancel webkit_download_cancel = FuncLoader.LoadFunction<d_webkit_download_cancel>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_cancel"));
|
||||
|
||||
public void Cancel() {
|
||||
webkit_download_cancel(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate double d_webkit_download_get_elapsed_time(IntPtr raw);
|
||||
static d_webkit_download_get_elapsed_time webkit_download_get_elapsed_time = FuncLoader.LoadFunction<d_webkit_download_get_elapsed_time>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_elapsed_time"));
|
||||
|
||||
public double ElapsedTime {
|
||||
get {
|
||||
double raw_ret = webkit_download_get_elapsed_time(Handle);
|
||||
double ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate ulong d_webkit_download_get_received_data_length(IntPtr raw);
|
||||
static d_webkit_download_get_received_data_length webkit_download_get_received_data_length = FuncLoader.LoadFunction<d_webkit_download_get_received_data_length>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_received_data_length"));
|
||||
|
||||
public ulong ReceivedDataLength {
|
||||
get {
|
||||
ulong raw_ret = webkit_download_get_received_data_length(Handle);
|
||||
ulong ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_get_request(IntPtr raw);
|
||||
static d_webkit_download_get_request webkit_download_get_request = FuncLoader.LoadFunction<d_webkit_download_get_request>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_request"));
|
||||
|
||||
public WebKit.URIRequest Request {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_download_get_request(Handle);
|
||||
WebKit.URIRequest ret = GLib.Object.GetObject(raw_ret) as WebKit.URIRequest;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_get_web_view(IntPtr raw);
|
||||
static d_webkit_download_get_web_view webkit_download_get_web_view = FuncLoader.LoadFunction<d_webkit_download_get_web_view>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_get_web_view"));
|
||||
|
||||
public WebKit.WebView WebView {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_download_get_web_view(Handle);
|
||||
WebKit.WebView ret = GLib.Object.GetObject(raw_ret) as WebKit.WebView;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static Download ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.DownloadErrorGType))]
|
||||
public enum DownloadError {
|
||||
|
||||
CancelledByUser = 400,
|
||||
Destination = 401,
|
||||
Network = 499,
|
||||
}
|
||||
|
||||
internal class DownloadErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_download_error_get_type();
|
||||
static d_webkit_download_error_get_type webkit_download_error_get_type = FuncLoader.LoadFunction<d_webkit_download_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_download_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void DownloadStartedHandler(object o, DownloadStartedArgs args);
|
||||
|
||||
public class DownloadStartedArgs : GLib.SignalArgs {
|
||||
public WebKit.Download Download{
|
||||
get {
|
||||
return (WebKit.Download) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class EditorState : GLib.Object {
|
||||
|
||||
public EditorState (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected EditorState() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_editor_state_get_typing_attributes(IntPtr raw);
|
||||
static d_webkit_editor_state_get_typing_attributes webkit_editor_state_get_typing_attributes = FuncLoader.LoadFunction<d_webkit_editor_state_get_typing_attributes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_get_typing_attributes"));
|
||||
|
||||
[GLib.Property ("typing-attributes")]
|
||||
public uint TypingAttributes {
|
||||
get {
|
||||
uint raw_ret = webkit_editor_state_get_typing_attributes(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_editor_state_get_type();
|
||||
static d_webkit_editor_state_get_type webkit_editor_state_get_type = FuncLoader.LoadFunction<d_webkit_editor_state_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_editor_state_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_editor_state_is_copy_available(IntPtr raw);
|
||||
static d_webkit_editor_state_is_copy_available webkit_editor_state_is_copy_available = FuncLoader.LoadFunction<d_webkit_editor_state_is_copy_available>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_is_copy_available"));
|
||||
|
||||
public bool IsCopyAvailable {
|
||||
get {
|
||||
bool raw_ret = webkit_editor_state_is_copy_available(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_editor_state_is_cut_available(IntPtr raw);
|
||||
static d_webkit_editor_state_is_cut_available webkit_editor_state_is_cut_available = FuncLoader.LoadFunction<d_webkit_editor_state_is_cut_available>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_is_cut_available"));
|
||||
|
||||
public bool IsCutAvailable {
|
||||
get {
|
||||
bool raw_ret = webkit_editor_state_is_cut_available(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_editor_state_is_paste_available(IntPtr raw);
|
||||
static d_webkit_editor_state_is_paste_available webkit_editor_state_is_paste_available = FuncLoader.LoadFunction<d_webkit_editor_state_is_paste_available>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_is_paste_available"));
|
||||
|
||||
public bool IsPasteAvailable {
|
||||
get {
|
||||
bool raw_ret = webkit_editor_state_is_paste_available(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_editor_state_is_redo_available(IntPtr raw);
|
||||
static d_webkit_editor_state_is_redo_available webkit_editor_state_is_redo_available = FuncLoader.LoadFunction<d_webkit_editor_state_is_redo_available>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_is_redo_available"));
|
||||
|
||||
public bool IsRedoAvailable {
|
||||
get {
|
||||
bool raw_ret = webkit_editor_state_is_redo_available(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_editor_state_is_undo_available(IntPtr raw);
|
||||
static d_webkit_editor_state_is_undo_available webkit_editor_state_is_undo_available = FuncLoader.LoadFunction<d_webkit_editor_state_is_undo_available>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_state_is_undo_available"));
|
||||
|
||||
public bool IsUndoAvailable {
|
||||
get {
|
||||
bool raw_ret = webkit_editor_state_is_undo_available(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static EditorState ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[Flags]
|
||||
[GLib.GType (typeof (WebKit.EditorTypingAttributesGType))]
|
||||
public enum EditorTypingAttributes {
|
||||
|
||||
None = 2,
|
||||
Bold = 4,
|
||||
Italic = 8,
|
||||
Underline = 16,
|
||||
Strikethrough = 32,
|
||||
}
|
||||
|
||||
internal class EditorTypingAttributesGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_editor_typing_attributes_get_type();
|
||||
static d_webkit_editor_typing_attributes_get_type webkit_editor_typing_attributes_get_type = FuncLoader.LoadFunction<d_webkit_editor_typing_attributes_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_editor_typing_attributes_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_editor_typing_attributes_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void EnterFullscreenHandler(object o, EnterFullscreenArgs args);
|
||||
|
||||
public class EnterFullscreenArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void FailedHandler(object o, FailedArgs args);
|
||||
|
||||
public class FailedArgs : GLib.SignalArgs {
|
||||
public IntPtr Error{
|
||||
get {
|
||||
return (IntPtr) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void FailedWithTlsErrorsHandler(object o, FailedWithTlsErrorsArgs args);
|
||||
|
||||
public class FailedWithTlsErrorsArgs : GLib.SignalArgs {
|
||||
public GLib.TlsCertificate Certificate{
|
||||
get {
|
||||
return (GLib.TlsCertificate) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public GLib.TlsCertificateFlags Errors{
|
||||
get {
|
||||
return (GLib.TlsCertificateFlags) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void FaviconChangedHandler(object o, FaviconChangedArgs args);
|
||||
|
||||
public class FaviconChangedArgs : GLib.SignalArgs {
|
||||
public string PageUri{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public string FaviconUri{
|
||||
get {
|
||||
return (string) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class FaviconDatabase : GLib.Object {
|
||||
|
||||
public FaviconDatabase (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected FaviconDatabase() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Signal("favicon-changed")]
|
||||
public event WebKit.FaviconChangedHandler FaviconChanged {
|
||||
add {
|
||||
this.AddSignalHandler ("favicon-changed", value, typeof (WebKit.FaviconChangedArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("favicon-changed", value);
|
||||
}
|
||||
}
|
||||
|
||||
static FaviconChangedNativeDelegate FaviconChanged_cb_delegate;
|
||||
static FaviconChangedNativeDelegate FaviconChangedVMCallback {
|
||||
get {
|
||||
if (FaviconChanged_cb_delegate == null)
|
||||
FaviconChanged_cb_delegate = new FaviconChangedNativeDelegate (FaviconChanged_cb);
|
||||
return FaviconChanged_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFaviconChanged (GLib.GType gtype)
|
||||
{
|
||||
OverrideFaviconChanged (gtype, FaviconChangedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFaviconChanged (GLib.GType gtype, FaviconChangedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "favicon-changed", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FaviconChangedNativeDelegate (IntPtr inst, IntPtr page_uri, IntPtr favicon_uri);
|
||||
|
||||
static void FaviconChanged_cb (IntPtr inst, IntPtr page_uri, IntPtr favicon_uri)
|
||||
{
|
||||
try {
|
||||
FaviconDatabase __obj = GLib.Object.GetObject (inst, false) as FaviconDatabase;
|
||||
__obj.OnFaviconChanged (GLib.Marshaller.Utf8PtrToString (page_uri), GLib.Marshaller.Utf8PtrToString (favicon_uri));
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.FaviconDatabase), ConnectionMethod="OverrideFaviconChanged")]
|
||||
protected virtual void OnFaviconChanged (string page_uri, string favicon_uri)
|
||||
{
|
||||
InternalFaviconChanged (page_uri, favicon_uri);
|
||||
}
|
||||
|
||||
private void InternalFaviconChanged (string page_uri, string favicon_uri)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
|
||||
GLib.Value[] vals = new GLib.Value [3];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (page_uri);
|
||||
inst_and_params.Append (vals [1]);
|
||||
vals [2] = new GLib.Value (favicon_uri);
|
||||
inst_and_params.Append (vals [2]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_favicon_database_get_type();
|
||||
static d_webkit_favicon_database_get_type webkit_favicon_database_get_type = FuncLoader.LoadFunction<d_webkit_favicon_database_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_favicon_database_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_favicon_database_clear(IntPtr raw);
|
||||
static d_webkit_favicon_database_clear webkit_favicon_database_clear = FuncLoader.LoadFunction<d_webkit_favicon_database_clear>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_clear"));
|
||||
|
||||
public void Clear() {
|
||||
webkit_favicon_database_clear(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_favicon_database_get_favicon(IntPtr raw, IntPtr page_uri, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
|
||||
static d_webkit_favicon_database_get_favicon webkit_favicon_database_get_favicon = FuncLoader.LoadFunction<d_webkit_favicon_database_get_favicon>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_get_favicon"));
|
||||
|
||||
public void GetFavicon(string page_uri, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
|
||||
IntPtr native_page_uri = GLib.Marshaller.StringToPtrGStrdup (page_uri);
|
||||
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
|
||||
cb_wrapper.PersistUntilCalled ();
|
||||
webkit_favicon_database_get_favicon(Handle, native_page_uri, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
GLib.Marshaller.Free (native_page_uri);
|
||||
}
|
||||
|
||||
public void GetFavicon(string page_uri) {
|
||||
GetFavicon (page_uri, null, null);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_favicon_database_get_favicon_finish(IntPtr raw, IntPtr _result, out IntPtr error);
|
||||
static d_webkit_favicon_database_get_favicon_finish webkit_favicon_database_get_favicon_finish = FuncLoader.LoadFunction<d_webkit_favicon_database_get_favicon_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_get_favicon_finish"));
|
||||
|
||||
public unsafe Cairo.Surface GetFaviconFinish(GLib.IAsyncResult _result) {
|
||||
IntPtr error = IntPtr.Zero;
|
||||
IntPtr raw_ret = webkit_favicon_database_get_favicon_finish(Handle, _result == null ? IntPtr.Zero : ((_result is GLib.Object) ? (_result as GLib.Object).Handle : (_result as GLib.AsyncResultAdapter).Handle), out error);
|
||||
Cairo.Surface ret = Cairo.Surface.Lookup (raw_ret, true);
|
||||
if (error != IntPtr.Zero) throw new GLib.GException (error);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_favicon_database_get_favicon_uri(IntPtr raw, IntPtr page_uri);
|
||||
static d_webkit_favicon_database_get_favicon_uri webkit_favicon_database_get_favicon_uri = FuncLoader.LoadFunction<d_webkit_favicon_database_get_favicon_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_get_favicon_uri"));
|
||||
|
||||
public string GetFaviconUri(string page_uri) {
|
||||
IntPtr native_page_uri = GLib.Marshaller.StringToPtrGStrdup (page_uri);
|
||||
IntPtr raw_ret = webkit_favicon_database_get_favicon_uri(Handle, native_page_uri);
|
||||
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
||||
GLib.Marshaller.Free (native_page_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
static FaviconDatabase ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.FaviconDatabaseErrorGType))]
|
||||
public enum FaviconDatabaseError {
|
||||
|
||||
NotInitialized = 0,
|
||||
FaviconNotFound = 1,
|
||||
FaviconUnknown = 2,
|
||||
}
|
||||
|
||||
internal class FaviconDatabaseErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_favicon_database_error_get_type();
|
||||
static d_webkit_favicon_database_error_get_type webkit_favicon_database_error_get_type = FuncLoader.LoadFunction<d_webkit_favicon_database_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_favicon_database_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class FileChooserRequest : GLib.Object {
|
||||
|
||||
public FileChooserRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected FileChooserRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Property ("filter")]
|
||||
public Gtk.FileFilter Filter {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("filter");
|
||||
Gtk.FileFilter ret = (Gtk.FileFilter) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_file_chooser_request_get_select_multiple(IntPtr raw);
|
||||
static d_webkit_file_chooser_request_get_select_multiple webkit_file_chooser_request_get_select_multiple = FuncLoader.LoadFunction<d_webkit_file_chooser_request_get_select_multiple>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_get_select_multiple"));
|
||||
|
||||
[GLib.Property ("select-multiple")]
|
||||
public bool SelectMultiple {
|
||||
get {
|
||||
bool raw_ret = webkit_file_chooser_request_get_select_multiple(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_file_chooser_request_get_type();
|
||||
static d_webkit_file_chooser_request_get_type webkit_file_chooser_request_get_type = FuncLoader.LoadFunction<d_webkit_file_chooser_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_file_chooser_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_file_chooser_request_cancel(IntPtr raw);
|
||||
static d_webkit_file_chooser_request_cancel webkit_file_chooser_request_cancel = FuncLoader.LoadFunction<d_webkit_file_chooser_request_cancel>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_cancel"));
|
||||
|
||||
public void Cancel() {
|
||||
webkit_file_chooser_request_cancel(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_file_chooser_request_get_mime_types(IntPtr raw);
|
||||
static d_webkit_file_chooser_request_get_mime_types webkit_file_chooser_request_get_mime_types = FuncLoader.LoadFunction<d_webkit_file_chooser_request_get_mime_types>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_get_mime_types"));
|
||||
|
||||
public string[] MimeTypes {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_file_chooser_request_get_mime_types(Handle);
|
||||
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_file_chooser_request_get_mime_types_filter(IntPtr raw);
|
||||
static d_webkit_file_chooser_request_get_mime_types_filter webkit_file_chooser_request_get_mime_types_filter = FuncLoader.LoadFunction<d_webkit_file_chooser_request_get_mime_types_filter>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_get_mime_types_filter"));
|
||||
|
||||
public Gtk.FileFilter MimeTypesFilter {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_file_chooser_request_get_mime_types_filter(Handle);
|
||||
Gtk.FileFilter ret = GLib.Object.GetObject(raw_ret) as Gtk.FileFilter;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_file_chooser_request_get_selected_files(IntPtr raw);
|
||||
static d_webkit_file_chooser_request_get_selected_files webkit_file_chooser_request_get_selected_files = FuncLoader.LoadFunction<d_webkit_file_chooser_request_get_selected_files>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_get_selected_files"));
|
||||
|
||||
public string[] SelectedFiles {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_file_chooser_request_get_selected_files(Handle);
|
||||
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_file_chooser_request_select_files(IntPtr raw, IntPtr[] files);
|
||||
static d_webkit_file_chooser_request_select_files webkit_file_chooser_request_select_files = FuncLoader.LoadFunction<d_webkit_file_chooser_request_select_files>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_file_chooser_request_select_files"));
|
||||
|
||||
public void SelectFiles(string[] files) {
|
||||
int cnt_files = files == null ? 0 : files.Length;
|
||||
IntPtr[] native_files = new IntPtr [cnt_files + 1];
|
||||
for (int i = 0; i < cnt_files; i++)
|
||||
native_files [i] = GLib.Marshaller.StringToPtrGStrdup (files[i]);
|
||||
native_files [cnt_files] = IntPtr.Zero;
|
||||
webkit_file_chooser_request_select_files(Handle, native_files);
|
||||
for (int i = 0; i < native_files.Length - 1; i++) {
|
||||
files [i] = GLib.Marshaller.Utf8PtrToString (native_files[i]);
|
||||
GLib.Marshaller.Free (native_files[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static FileChooserRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,399 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class FindController : GLib.Object {
|
||||
|
||||
public FindController (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected FindController() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_find_controller_get_max_match_count(IntPtr raw);
|
||||
static d_webkit_find_controller_get_max_match_count webkit_find_controller_get_max_match_count = FuncLoader.LoadFunction<d_webkit_find_controller_get_max_match_count>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_get_max_match_count"));
|
||||
|
||||
[GLib.Property ("max-match-count")]
|
||||
public uint MaxMatchCount {
|
||||
get {
|
||||
uint raw_ret = webkit_find_controller_get_max_match_count(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_find_controller_get_options(IntPtr raw);
|
||||
static d_webkit_find_controller_get_options webkit_find_controller_get_options = FuncLoader.LoadFunction<d_webkit_find_controller_get_options>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_get_options"));
|
||||
|
||||
[GLib.Property ("options")]
|
||||
public uint Options {
|
||||
get {
|
||||
uint raw_ret = webkit_find_controller_get_options(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("text")]
|
||||
public string Text {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("text");
|
||||
string ret = (string) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_find_controller_get_web_view(IntPtr raw);
|
||||
static d_webkit_find_controller_get_web_view webkit_find_controller_get_web_view = FuncLoader.LoadFunction<d_webkit_find_controller_get_web_view>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_get_web_view"));
|
||||
|
||||
[GLib.Property ("web-view")]
|
||||
public WebKit.WebView WebView {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_find_controller_get_web_view(Handle);
|
||||
WebKit.WebView ret = GLib.Object.GetObject(raw_ret) as WebKit.WebView;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("counted-matches")]
|
||||
public event WebKit.CountedMatchesHandler CountedMatches {
|
||||
add {
|
||||
this.AddSignalHandler ("counted-matches", value, typeof (WebKit.CountedMatchesArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("counted-matches", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("found-text")]
|
||||
public event WebKit.FoundTextHandler FoundText {
|
||||
add {
|
||||
this.AddSignalHandler ("found-text", value, typeof (WebKit.FoundTextArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("found-text", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("failed-to-find-text")]
|
||||
public event System.EventHandler FailedToFindText {
|
||||
add {
|
||||
this.AddSignalHandler ("failed-to-find-text", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("failed-to-find-text", value);
|
||||
}
|
||||
}
|
||||
|
||||
static CountedMatchesNativeDelegate CountedMatches_cb_delegate;
|
||||
static CountedMatchesNativeDelegate CountedMatchesVMCallback {
|
||||
get {
|
||||
if (CountedMatches_cb_delegate == null)
|
||||
CountedMatches_cb_delegate = new CountedMatchesNativeDelegate (CountedMatches_cb);
|
||||
return CountedMatches_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCountedMatches (GLib.GType gtype)
|
||||
{
|
||||
OverrideCountedMatches (gtype, CountedMatchesVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCountedMatches (GLib.GType gtype, CountedMatchesNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "counted-matches", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void CountedMatchesNativeDelegate (IntPtr inst, uint match_count);
|
||||
|
||||
static void CountedMatches_cb (IntPtr inst, uint match_count)
|
||||
{
|
||||
try {
|
||||
FindController __obj = GLib.Object.GetObject (inst, false) as FindController;
|
||||
__obj.OnCountedMatches (match_count);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.FindController), ConnectionMethod="OverrideCountedMatches")]
|
||||
protected virtual void OnCountedMatches (uint match_count)
|
||||
{
|
||||
InternalCountedMatches (match_count);
|
||||
}
|
||||
|
||||
private void InternalCountedMatches (uint match_count)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (match_count);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static FailedToFindTextNativeDelegate FailedToFindText_cb_delegate;
|
||||
static FailedToFindTextNativeDelegate FailedToFindTextVMCallback {
|
||||
get {
|
||||
if (FailedToFindText_cb_delegate == null)
|
||||
FailedToFindText_cb_delegate = new FailedToFindTextNativeDelegate (FailedToFindText_cb);
|
||||
return FailedToFindText_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFailedToFindText (GLib.GType gtype)
|
||||
{
|
||||
OverrideFailedToFindText (gtype, FailedToFindTextVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFailedToFindText (GLib.GType gtype, FailedToFindTextNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "failed-to-find-text", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FailedToFindTextNativeDelegate (IntPtr inst);
|
||||
|
||||
static void FailedToFindText_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
FindController __obj = GLib.Object.GetObject (inst, false) as FindController;
|
||||
__obj.OnFailedToFindText ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.FindController), ConnectionMethod="OverrideFailedToFindText")]
|
||||
protected virtual void OnFailedToFindText ()
|
||||
{
|
||||
InternalFailedToFindText ();
|
||||
}
|
||||
|
||||
private void InternalFailedToFindText ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static FoundTextNativeDelegate FoundText_cb_delegate;
|
||||
static FoundTextNativeDelegate FoundTextVMCallback {
|
||||
get {
|
||||
if (FoundText_cb_delegate == null)
|
||||
FoundText_cb_delegate = new FoundTextNativeDelegate (FoundText_cb);
|
||||
return FoundText_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideFoundText (GLib.GType gtype)
|
||||
{
|
||||
OverrideFoundText (gtype, FoundTextVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideFoundText (GLib.GType gtype, FoundTextNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "found-text", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void FoundTextNativeDelegate (IntPtr inst, uint match_count);
|
||||
|
||||
static void FoundText_cb (IntPtr inst, uint match_count)
|
||||
{
|
||||
try {
|
||||
FindController __obj = GLib.Object.GetObject (inst, false) as FindController;
|
||||
__obj.OnFoundText (match_count);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.FindController), ConnectionMethod="OverrideFoundText")]
|
||||
protected virtual void OnFoundText (uint match_count)
|
||||
{
|
||||
InternalFoundText (match_count);
|
||||
}
|
||||
|
||||
private void InternalFoundText (uint match_count)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (match_count);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_find_controller_get_type();
|
||||
static d_webkit_find_controller_get_type webkit_find_controller_get_type = FuncLoader.LoadFunction<d_webkit_find_controller_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_find_controller_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_find_controller_count_matches(IntPtr raw, IntPtr search_text, uint find_options, uint max_match_count);
|
||||
static d_webkit_find_controller_count_matches webkit_find_controller_count_matches = FuncLoader.LoadFunction<d_webkit_find_controller_count_matches>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_count_matches"));
|
||||
|
||||
public void CountMatches(string search_text, uint find_options, uint max_match_count) {
|
||||
IntPtr native_search_text = GLib.Marshaller.StringToPtrGStrdup (search_text);
|
||||
webkit_find_controller_count_matches(Handle, native_search_text, find_options, max_match_count);
|
||||
GLib.Marshaller.Free (native_search_text);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_find_controller_get_search_text(IntPtr raw);
|
||||
static d_webkit_find_controller_get_search_text webkit_find_controller_get_search_text = FuncLoader.LoadFunction<d_webkit_find_controller_get_search_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_get_search_text"));
|
||||
|
||||
public string SearchText {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_find_controller_get_search_text(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_find_controller_search(IntPtr raw, IntPtr search_text, uint find_options, uint max_match_count);
|
||||
static d_webkit_find_controller_search webkit_find_controller_search = FuncLoader.LoadFunction<d_webkit_find_controller_search>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_search"));
|
||||
|
||||
public void Search(string search_text, uint find_options, uint max_match_count) {
|
||||
IntPtr native_search_text = GLib.Marshaller.StringToPtrGStrdup (search_text);
|
||||
webkit_find_controller_search(Handle, native_search_text, find_options, max_match_count);
|
||||
GLib.Marshaller.Free (native_search_text);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_find_controller_search_finish(IntPtr raw);
|
||||
static d_webkit_find_controller_search_finish webkit_find_controller_search_finish = FuncLoader.LoadFunction<d_webkit_find_controller_search_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_search_finish"));
|
||||
|
||||
public void SearchFinish() {
|
||||
webkit_find_controller_search_finish(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_find_controller_search_next(IntPtr raw);
|
||||
static d_webkit_find_controller_search_next webkit_find_controller_search_next = FuncLoader.LoadFunction<d_webkit_find_controller_search_next>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_search_next"));
|
||||
|
||||
public void SearchNext() {
|
||||
webkit_find_controller_search_next(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_find_controller_search_previous(IntPtr raw);
|
||||
static d_webkit_find_controller_search_previous webkit_find_controller_search_previous = FuncLoader.LoadFunction<d_webkit_find_controller_search_previous>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_controller_search_previous"));
|
||||
|
||||
public void SearchPrevious() {
|
||||
webkit_find_controller_search_previous(Handle);
|
||||
}
|
||||
|
||||
|
||||
static FindController ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[Flags]
|
||||
[GLib.GType (typeof (WebKit.FindOptionsGType))]
|
||||
public enum FindOptions {
|
||||
|
||||
None = 0,
|
||||
CaseInsensitive = 1,
|
||||
AtWordStarts = 2,
|
||||
TreatMedialCapitalAsWordStart = 4,
|
||||
Backwards = 8,
|
||||
WrapAround = 16,
|
||||
}
|
||||
|
||||
internal class FindOptionsGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_find_options_get_type();
|
||||
static d_webkit_find_options_get_type webkit_find_options_get_type = FuncLoader.LoadFunction<d_webkit_find_options_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_find_options_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_find_options_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class FormSubmissionRequest : GLib.Object {
|
||||
|
||||
public FormSubmissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected FormSubmissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_form_submission_request_get_type();
|
||||
static d_webkit_form_submission_request_get_type webkit_form_submission_request_get_type = FuncLoader.LoadFunction<d_webkit_form_submission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_form_submission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_form_submission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate System.IntPtr d_webkit_form_submission_request_get_text_fields(IntPtr raw);
|
||||
static d_webkit_form_submission_request_get_text_fields webkit_form_submission_request_get_text_fields = FuncLoader.LoadFunction<d_webkit_form_submission_request_get_text_fields>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_form_submission_request_get_text_fields"));
|
||||
|
||||
[Obsolete]
|
||||
public IntPtr[] TextFields {
|
||||
get {
|
||||
System.IntPtr raw_ret = webkit_form_submission_request_get_text_fields(Handle);
|
||||
IntPtr[] ret = GLib.Marshaller.SListPtrToArray<IntPtr, IntPtr> (raw_ret, false, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_form_submission_request_submit(IntPtr raw);
|
||||
static d_webkit_form_submission_request_submit webkit_form_submission_request_submit = FuncLoader.LoadFunction<d_webkit_form_submission_request_submit>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_form_submission_request_submit"));
|
||||
|
||||
public void Submit() {
|
||||
webkit_form_submission_request_submit(Handle);
|
||||
}
|
||||
|
||||
|
||||
static FormSubmissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void FoundTextHandler(object o, FoundTextArgs args);
|
||||
|
||||
public class FoundTextArgs : GLib.SignalArgs {
|
||||
public uint MatchCount{
|
||||
get {
|
||||
return (uint) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,269 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class GeolocationManager : GLib.Object {
|
||||
|
||||
public GeolocationManager (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected GeolocationManager() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_geolocation_manager_get_enable_high_accuracy(IntPtr raw);
|
||||
static d_webkit_geolocation_manager_get_enable_high_accuracy webkit_geolocation_manager_get_enable_high_accuracy = FuncLoader.LoadFunction<d_webkit_geolocation_manager_get_enable_high_accuracy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_manager_get_enable_high_accuracy"));
|
||||
|
||||
[GLib.Property ("enable-high-accuracy")]
|
||||
public bool EnableHighAccuracy {
|
||||
get {
|
||||
bool raw_ret = webkit_geolocation_manager_get_enable_high_accuracy(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("start")]
|
||||
public event WebKit.StartHandler Start {
|
||||
add {
|
||||
this.AddSignalHandler ("start", value, typeof (WebKit.StartArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("start", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("stop")]
|
||||
public event System.EventHandler Stop {
|
||||
add {
|
||||
this.AddSignalHandler ("stop", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("stop", value);
|
||||
}
|
||||
}
|
||||
|
||||
static StartNativeDelegate Start_cb_delegate;
|
||||
static StartNativeDelegate StartVMCallback {
|
||||
get {
|
||||
if (Start_cb_delegate == null)
|
||||
Start_cb_delegate = new StartNativeDelegate (Start_cb);
|
||||
return Start_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideStart (GLib.GType gtype)
|
||||
{
|
||||
OverrideStart (gtype, StartVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideStart (GLib.GType gtype, StartNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "start", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool StartNativeDelegate (IntPtr inst);
|
||||
|
||||
static bool Start_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
GeolocationManager __obj = GLib.Object.GetObject (inst, false) as GeolocationManager;
|
||||
bool __result;
|
||||
__result = __obj.OnStart ();
|
||||
return __result;
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, true);
|
||||
// NOTREACHED: above call does not return.
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.GeolocationManager), ConnectionMethod="OverrideStart")]
|
||||
protected virtual bool OnStart ()
|
||||
{
|
||||
return InternalStart ();
|
||||
}
|
||||
|
||||
private bool InternalStart ()
|
||||
{
|
||||
GLib.Value ret = new GLib.Value (GLib.GType.Boolean);
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
bool result = (bool) ret;
|
||||
ret.Dispose ();
|
||||
return result;
|
||||
}
|
||||
|
||||
static StopNativeDelegate Stop_cb_delegate;
|
||||
static StopNativeDelegate StopVMCallback {
|
||||
get {
|
||||
if (Stop_cb_delegate == null)
|
||||
Stop_cb_delegate = new StopNativeDelegate (Stop_cb);
|
||||
return Stop_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideStop (GLib.GType gtype)
|
||||
{
|
||||
OverrideStop (gtype, StopVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideStop (GLib.GType gtype, StopNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "stop", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void StopNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Stop_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
GeolocationManager __obj = GLib.Object.GetObject (inst, false) as GeolocationManager;
|
||||
__obj.OnStop ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.GeolocationManager), ConnectionMethod="OverrideStop")]
|
||||
protected virtual void OnStop ()
|
||||
{
|
||||
InternalStop ();
|
||||
}
|
||||
|
||||
private void InternalStop ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_geolocation_manager_get_type();
|
||||
static d_webkit_geolocation_manager_get_type webkit_geolocation_manager_get_type = FuncLoader.LoadFunction<d_webkit_geolocation_manager_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_manager_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_geolocation_manager_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_manager_failed(IntPtr raw, IntPtr error_message);
|
||||
static d_webkit_geolocation_manager_failed webkit_geolocation_manager_failed = FuncLoader.LoadFunction<d_webkit_geolocation_manager_failed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_manager_failed"));
|
||||
|
||||
public void Failed(string error_message) {
|
||||
IntPtr native_error_message = GLib.Marshaller.StringToPtrGStrdup (error_message);
|
||||
webkit_geolocation_manager_failed(Handle, native_error_message);
|
||||
GLib.Marshaller.Free (native_error_message);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_manager_update_position(IntPtr raw, IntPtr position);
|
||||
static d_webkit_geolocation_manager_update_position webkit_geolocation_manager_update_position = FuncLoader.LoadFunction<d_webkit_geolocation_manager_update_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_manager_update_position"));
|
||||
|
||||
public void UpdatePosition(WebKit.GeolocationPosition position) {
|
||||
webkit_geolocation_manager_update_position(Handle, position == null ? IntPtr.Zero : position.Handle);
|
||||
}
|
||||
|
||||
|
||||
static GeolocationManager ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class GeolocationPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public GeolocationPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected GeolocationPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_geolocation_permission_request_get_type();
|
||||
static d_webkit_geolocation_permission_request_get_type webkit_geolocation_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_geolocation_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_geolocation_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static GeolocationPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class GeolocationPosition : GLib.Opaque {
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_geolocation_position_get_type();
|
||||
static d_webkit_geolocation_position_get_type webkit_geolocation_position_get_type = FuncLoader.LoadFunction<d_webkit_geolocation_position_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_geolocation_position_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_geolocation_position_copy(IntPtr raw);
|
||||
static d_webkit_geolocation_position_copy webkit_geolocation_position_copy = FuncLoader.LoadFunction<d_webkit_geolocation_position_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_copy"));
|
||||
|
||||
public WebKit.GeolocationPosition Copy() {
|
||||
IntPtr raw_ret = webkit_geolocation_position_copy(Handle);
|
||||
WebKit.GeolocationPosition ret = raw_ret == IntPtr.Zero ? null : (WebKit.GeolocationPosition) GLib.Opaque.GetOpaque (raw_ret, typeof (WebKit.GeolocationPosition), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_set_altitude(IntPtr raw, double altitude);
|
||||
static d_webkit_geolocation_position_set_altitude webkit_geolocation_position_set_altitude = FuncLoader.LoadFunction<d_webkit_geolocation_position_set_altitude>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_set_altitude"));
|
||||
|
||||
public double Altitude {
|
||||
set {
|
||||
webkit_geolocation_position_set_altitude(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_set_altitude_accuracy(IntPtr raw, double altitude_accuracy);
|
||||
static d_webkit_geolocation_position_set_altitude_accuracy webkit_geolocation_position_set_altitude_accuracy = FuncLoader.LoadFunction<d_webkit_geolocation_position_set_altitude_accuracy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_set_altitude_accuracy"));
|
||||
|
||||
public double AltitudeAccuracy {
|
||||
set {
|
||||
webkit_geolocation_position_set_altitude_accuracy(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_set_heading(IntPtr raw, double heading);
|
||||
static d_webkit_geolocation_position_set_heading webkit_geolocation_position_set_heading = FuncLoader.LoadFunction<d_webkit_geolocation_position_set_heading>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_set_heading"));
|
||||
|
||||
public double Heading {
|
||||
set {
|
||||
webkit_geolocation_position_set_heading(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_set_speed(IntPtr raw, double speed);
|
||||
static d_webkit_geolocation_position_set_speed webkit_geolocation_position_set_speed = FuncLoader.LoadFunction<d_webkit_geolocation_position_set_speed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_set_speed"));
|
||||
|
||||
public double Speed {
|
||||
set {
|
||||
webkit_geolocation_position_set_speed(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_set_timestamp(IntPtr raw, ulong timestamp);
|
||||
static d_webkit_geolocation_position_set_timestamp webkit_geolocation_position_set_timestamp = FuncLoader.LoadFunction<d_webkit_geolocation_position_set_timestamp>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_set_timestamp"));
|
||||
|
||||
public ulong Timestamp {
|
||||
set {
|
||||
webkit_geolocation_position_set_timestamp(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
public GeolocationPosition(IntPtr raw) : base(raw) {}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_geolocation_position_new(double latitude, double longitude, double accuracy);
|
||||
static d_webkit_geolocation_position_new webkit_geolocation_position_new = FuncLoader.LoadFunction<d_webkit_geolocation_position_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_new"));
|
||||
|
||||
public GeolocationPosition (double latitude, double longitude, double accuracy)
|
||||
{
|
||||
Raw = webkit_geolocation_position_new(latitude, longitude, accuracy);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_geolocation_position_free(IntPtr raw);
|
||||
static d_webkit_geolocation_position_free webkit_geolocation_position_free = FuncLoader.LoadFunction<d_webkit_geolocation_position_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_geolocation_position_free"));
|
||||
|
||||
protected override void Free (IntPtr raw)
|
||||
{
|
||||
webkit_geolocation_position_free (raw);
|
||||
}
|
||||
|
||||
class FinalizerInfo {
|
||||
IntPtr handle;
|
||||
public uint timeoutHandlerId;
|
||||
|
||||
public FinalizerInfo (IntPtr handle)
|
||||
{
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public bool Handler ()
|
||||
{
|
||||
webkit_geolocation_position_free (handle);
|
||||
GLib.Timeout.Remove(timeoutHandlerId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
~GeolocationPosition ()
|
||||
{
|
||||
if (!Owned)
|
||||
return;
|
||||
FinalizerInfo info = new FinalizerInfo (Handle);
|
||||
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
195
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Global.cs
Normal file
195
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Global.cs
Normal file
@@ -0,0 +1,195 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class Global {
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_download_error_quark();
|
||||
static d_webkit_download_error_quark webkit_download_error_quark = FuncLoader.LoadFunction<d_webkit_download_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_download_error_quark"));
|
||||
|
||||
public static int DownloadErrorQuark() {
|
||||
int raw_ret = webkit_download_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_favicon_database_error_quark();
|
||||
static d_webkit_favicon_database_error_quark webkit_favicon_database_error_quark = FuncLoader.LoadFunction<d_webkit_favicon_database_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_favicon_database_error_quark"));
|
||||
|
||||
public static int FaviconDatabaseErrorQuark() {
|
||||
int raw_ret = webkit_favicon_database_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_get_major_version();
|
||||
static d_webkit_get_major_version webkit_get_major_version = FuncLoader.LoadFunction<d_webkit_get_major_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_get_major_version"));
|
||||
|
||||
public static uint MajorVersion {
|
||||
get {
|
||||
uint raw_ret = webkit_get_major_version();
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_get_micro_version();
|
||||
static d_webkit_get_micro_version webkit_get_micro_version = FuncLoader.LoadFunction<d_webkit_get_micro_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_get_micro_version"));
|
||||
|
||||
public static uint MicroVersion {
|
||||
get {
|
||||
uint raw_ret = webkit_get_micro_version();
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_get_minor_version();
|
||||
static d_webkit_get_minor_version webkit_get_minor_version = FuncLoader.LoadFunction<d_webkit_get_minor_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_get_minor_version"));
|
||||
|
||||
public static uint MinorVersion {
|
||||
get {
|
||||
uint raw_ret = webkit_get_minor_version();
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_javascript_error_quark();
|
||||
static d_webkit_javascript_error_quark webkit_javascript_error_quark = FuncLoader.LoadFunction<d_webkit_javascript_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_error_quark"));
|
||||
|
||||
public static int JavascriptErrorQuark() {
|
||||
int raw_ret = webkit_javascript_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_media_key_system_permission_get_name(IntPtr request);
|
||||
static d_webkit_media_key_system_permission_get_name webkit_media_key_system_permission_get_name = FuncLoader.LoadFunction<d_webkit_media_key_system_permission_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_media_key_system_permission_get_name"));
|
||||
|
||||
public static string MediaKeySystemPermissionGetName(WebKit.MediaKeySystemPermissionRequest request) {
|
||||
IntPtr raw_ret = webkit_media_key_system_permission_get_name(request == null ? IntPtr.Zero : request.Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_network_error_quark();
|
||||
static d_webkit_network_error_quark webkit_network_error_quark = FuncLoader.LoadFunction<d_webkit_network_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_error_quark"));
|
||||
|
||||
public static int NetworkErrorQuark() {
|
||||
int raw_ret = webkit_network_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_plugin_error_quark();
|
||||
static d_webkit_plugin_error_quark webkit_plugin_error_quark = FuncLoader.LoadFunction<d_webkit_plugin_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_error_quark"));
|
||||
|
||||
public static int PluginErrorQuark() {
|
||||
int raw_ret = webkit_plugin_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_policy_error_quark();
|
||||
static d_webkit_policy_error_quark webkit_policy_error_quark = FuncLoader.LoadFunction<d_webkit_policy_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_error_quark"));
|
||||
|
||||
public static int PolicyErrorQuark() {
|
||||
int raw_ret = webkit_policy_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_print_error_quark();
|
||||
static d_webkit_print_error_quark webkit_print_error_quark = FuncLoader.LoadFunction<d_webkit_print_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_print_error_quark"));
|
||||
|
||||
public static int PrintErrorQuark() {
|
||||
int raw_ret = webkit_print_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_snapshot_error_quark();
|
||||
static d_webkit_snapshot_error_quark webkit_snapshot_error_quark = FuncLoader.LoadFunction<d_webkit_snapshot_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_snapshot_error_quark"));
|
||||
|
||||
public static int SnapshotErrorQuark() {
|
||||
int raw_ret = webkit_snapshot_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_uri_for_display(IntPtr uri);
|
||||
static d_webkit_uri_for_display webkit_uri_for_display = FuncLoader.LoadFunction<d_webkit_uri_for_display>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_uri_for_display"));
|
||||
|
||||
public static string UriForDisplay(string uri) {
|
||||
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
|
||||
IntPtr raw_ret = webkit_uri_for_display(native_uri);
|
||||
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
||||
GLib.Marshaller.Free (native_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_user_content_filter_error_quark();
|
||||
static d_webkit_user_content_filter_error_quark webkit_user_content_filter_error_quark = FuncLoader.LoadFunction<d_webkit_user_content_filter_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_user_content_filter_error_quark"));
|
||||
|
||||
public static int UserContentFilterErrorQuark() {
|
||||
int raw_ret = webkit_user_content_filter_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_user_media_permission_is_for_audio_device(IntPtr request);
|
||||
static d_webkit_user_media_permission_is_for_audio_device webkit_user_media_permission_is_for_audio_device = FuncLoader.LoadFunction<d_webkit_user_media_permission_is_for_audio_device>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_user_media_permission_is_for_audio_device"));
|
||||
|
||||
public static bool UserMediaPermissionIsForAudioDevice(WebKit.UserMediaPermissionRequest request) {
|
||||
bool raw_ret = webkit_user_media_permission_is_for_audio_device(request == null ? IntPtr.Zero : request.Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_user_media_permission_is_for_video_device(IntPtr request);
|
||||
static d_webkit_user_media_permission_is_for_video_device webkit_user_media_permission_is_for_video_device = FuncLoader.LoadFunction<d_webkit_user_media_permission_is_for_video_device>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_user_media_permission_is_for_video_device"));
|
||||
|
||||
public static bool UserMediaPermissionIsForVideoDevice(WebKit.UserMediaPermissionRequest request) {
|
||||
bool raw_ret = webkit_user_media_permission_is_for_video_device(request == null ? IntPtr.Zero : request.Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_user_message_error_quark();
|
||||
static d_webkit_user_message_error_quark webkit_user_message_error_quark = FuncLoader.LoadFunction<d_webkit_user_message_error_quark>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_user_message_error_quark"));
|
||||
|
||||
public static int UserMessageErrorQuark() {
|
||||
int raw_ret = webkit_user_message_error_quark();
|
||||
int ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.HardwareAccelerationPolicyGType))]
|
||||
public enum HardwareAccelerationPolicy {
|
||||
|
||||
OnDemand = 0,
|
||||
Always = 1,
|
||||
Never = 2,
|
||||
}
|
||||
|
||||
internal class HardwareAccelerationPolicyGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hardware_acceleration_policy_get_type();
|
||||
static d_webkit_hardware_acceleration_policy_get_type webkit_hardware_acceleration_policy_get_type = FuncLoader.LoadFunction<d_webkit_hardware_acceleration_policy_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hardware_acceleration_policy_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_hardware_acceleration_policy_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class HitTestResult : GLib.Object {
|
||||
|
||||
public HitTestResult (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected HitTestResult() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_hit_test_result_get_context(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_context webkit_hit_test_result_get_context = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_context>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_context"));
|
||||
|
||||
[GLib.Property ("context")]
|
||||
public uint Context {
|
||||
get {
|
||||
uint raw_ret = webkit_hit_test_result_get_context(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_image_uri(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_image_uri webkit_hit_test_result_get_image_uri = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_image_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_image_uri"));
|
||||
|
||||
[GLib.Property ("image-uri")]
|
||||
public string ImageUri {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_image_uri(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_link_label(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_link_label webkit_hit_test_result_get_link_label = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_link_label>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_link_label"));
|
||||
|
||||
[GLib.Property ("link-label")]
|
||||
public string LinkLabel {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_link_label(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_link_title(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_link_title webkit_hit_test_result_get_link_title = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_link_title>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_link_title"));
|
||||
|
||||
[GLib.Property ("link-title")]
|
||||
public string LinkTitle {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_link_title(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_link_uri(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_link_uri webkit_hit_test_result_get_link_uri = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_link_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_link_uri"));
|
||||
|
||||
[GLib.Property ("link-uri")]
|
||||
public string LinkUri {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_link_uri(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_media_uri(IntPtr raw);
|
||||
static d_webkit_hit_test_result_get_media_uri webkit_hit_test_result_get_media_uri = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_media_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_media_uri"));
|
||||
|
||||
[GLib.Property ("media-uri")]
|
||||
public string MediaUri {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_media_uri(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_get_type();
|
||||
static d_webkit_hit_test_result_get_type webkit_hit_test_result_get_type = FuncLoader.LoadFunction<d_webkit_hit_test_result_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_hit_test_result_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_editable(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_editable webkit_hit_test_result_context_is_editable = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_editable>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_editable"));
|
||||
|
||||
public bool ContextIsEditable() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_editable(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_image(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_image webkit_hit_test_result_context_is_image = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_image>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_image"));
|
||||
|
||||
public bool ContextIsImage() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_image(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_link(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_link webkit_hit_test_result_context_is_link = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_link>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_link"));
|
||||
|
||||
public bool ContextIsLink() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_link(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_media(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_media webkit_hit_test_result_context_is_media = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_media>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_media"));
|
||||
|
||||
public bool ContextIsMedia() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_media(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_scrollbar(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_scrollbar webkit_hit_test_result_context_is_scrollbar = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_scrollbar>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_scrollbar"));
|
||||
|
||||
public bool ContextIsScrollbar() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_scrollbar(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_hit_test_result_context_is_selection(IntPtr raw);
|
||||
static d_webkit_hit_test_result_context_is_selection webkit_hit_test_result_context_is_selection = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_is_selection>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_is_selection"));
|
||||
|
||||
public bool ContextIsSelection() {
|
||||
bool raw_ret = webkit_hit_test_result_context_is_selection(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
static HitTestResult ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[Flags]
|
||||
[GLib.GType (typeof (WebKit.HitTestResultContextGType))]
|
||||
public enum HitTestResultContext {
|
||||
|
||||
Document = 2,
|
||||
Link = 4,
|
||||
Image = 8,
|
||||
Media = 16,
|
||||
Editable = 32,
|
||||
Scrollbar = 64,
|
||||
Selection = 128,
|
||||
}
|
||||
|
||||
internal class HitTestResultContextGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_hit_test_result_context_get_type();
|
||||
static d_webkit_hit_test_result_context_get_type webkit_hit_test_result_context_get_type = FuncLoader.LoadFunction<d_webkit_hit_test_result_context_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_hit_test_result_context_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_hit_test_result_context_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial interface IPermissionRequest : GLib.IWrapper {
|
||||
|
||||
void Allow();
|
||||
void Deny();
|
||||
}
|
||||
|
||||
[GLib.GInterface (typeof (PermissionRequestAdapter))]
|
||||
public partial interface IPermissionRequestImplementor : GLib.IWrapper {
|
||||
|
||||
void Allow ();
|
||||
void Deny ();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct ITPFirstParty : IEquatable<ITPFirstParty> {
|
||||
|
||||
|
||||
public static WebKit.ITPFirstParty Zero = new WebKit.ITPFirstParty ();
|
||||
|
||||
public static WebKit.ITPFirstParty New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.ITPFirstParty.Zero;
|
||||
return (WebKit.ITPFirstParty) Marshal.PtrToStructure (raw, typeof (WebKit.ITPFirstParty));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_first_party_get_type();
|
||||
static d_webkit_itp_first_party_get_type webkit_itp_first_party_get_type = FuncLoader.LoadFunction<d_webkit_itp_first_party_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_itp_first_party_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_first_party_get_domain(IntPtr raw);
|
||||
static d_webkit_itp_first_party_get_domain webkit_itp_first_party_get_domain = FuncLoader.LoadFunction<d_webkit_itp_first_party_get_domain>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_get_domain"));
|
||||
|
||||
public string Domain {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPFirstParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_first_party_get_domain(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_first_party_get_last_update_time(IntPtr raw);
|
||||
static d_webkit_itp_first_party_get_last_update_time webkit_itp_first_party_get_last_update_time = FuncLoader.LoadFunction<d_webkit_itp_first_party_get_last_update_time>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_get_last_update_time"));
|
||||
|
||||
public GLib.DateTime LastUpdateTime {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPFirstParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_first_party_get_last_update_time(this_as_native);
|
||||
GLib.DateTime ret = new GLib.DateTime(raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_itp_first_party_get_website_data_access_allowed(IntPtr raw);
|
||||
static d_webkit_itp_first_party_get_website_data_access_allowed webkit_itp_first_party_get_website_data_access_allowed = FuncLoader.LoadFunction<d_webkit_itp_first_party_get_website_data_access_allowed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_get_website_data_access_allowed"));
|
||||
|
||||
public bool WebsiteDataAccessAllowed {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPFirstParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_itp_first_party_get_website_data_access_allowed(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_first_party_ref(IntPtr raw);
|
||||
static d_webkit_itp_first_party_ref webkit_itp_first_party_ref = FuncLoader.LoadFunction<d_webkit_itp_first_party_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_ref"));
|
||||
|
||||
public WebKit.ITPFirstParty Ref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPFirstParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_first_party_ref(this_as_native);
|
||||
WebKit.ITPFirstParty ret = WebKit.ITPFirstParty.New (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_itp_first_party_unref(IntPtr raw);
|
||||
static d_webkit_itp_first_party_unref webkit_itp_first_party_unref = FuncLoader.LoadFunction<d_webkit_itp_first_party_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_first_party_unref"));
|
||||
|
||||
public void Unref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPFirstParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_itp_first_party_unref(this_as_native);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.ITPFirstParty target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (ITPFirstParty other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is ITPFirstParty && Equals ((ITPFirstParty) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.ITPFirstParty boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.ITPFirstParty.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.ITPFirstParty (GLib.Value val)
|
||||
{
|
||||
return (WebKit.ITPFirstParty) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct ITPThirdParty : IEquatable<ITPThirdParty> {
|
||||
|
||||
|
||||
public static WebKit.ITPThirdParty Zero = new WebKit.ITPThirdParty ();
|
||||
|
||||
public static WebKit.ITPThirdParty New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.ITPThirdParty.Zero;
|
||||
return (WebKit.ITPThirdParty) Marshal.PtrToStructure (raw, typeof (WebKit.ITPThirdParty));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_third_party_get_type();
|
||||
static d_webkit_itp_third_party_get_type webkit_itp_third_party_get_type = FuncLoader.LoadFunction<d_webkit_itp_third_party_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_third_party_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_itp_third_party_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_third_party_get_domain(IntPtr raw);
|
||||
static d_webkit_itp_third_party_get_domain webkit_itp_third_party_get_domain = FuncLoader.LoadFunction<d_webkit_itp_third_party_get_domain>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_third_party_get_domain"));
|
||||
|
||||
public string Domain {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPThirdParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_third_party_get_domain(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_third_party_get_first_parties(IntPtr raw);
|
||||
static d_webkit_itp_third_party_get_first_parties webkit_itp_third_party_get_first_parties = FuncLoader.LoadFunction<d_webkit_itp_third_party_get_first_parties>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_third_party_get_first_parties"));
|
||||
|
||||
public GLib.List[] FirstParties {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPThirdParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_third_party_get_first_parties(this_as_native);
|
||||
GLib.List[] ret = GLib.Marshaller.ListPtrToArray<GLib.List, GLib.List> (raw_ret, false, false);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_itp_third_party_ref(IntPtr raw);
|
||||
static d_webkit_itp_third_party_ref webkit_itp_third_party_ref = FuncLoader.LoadFunction<d_webkit_itp_third_party_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_third_party_ref"));
|
||||
|
||||
public WebKit.ITPThirdParty Ref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPThirdParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_itp_third_party_ref(this_as_native);
|
||||
WebKit.ITPThirdParty ret = WebKit.ITPThirdParty.New (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_itp_third_party_unref(IntPtr raw);
|
||||
static d_webkit_itp_third_party_unref webkit_itp_third_party_unref = FuncLoader.LoadFunction<d_webkit_itp_third_party_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_itp_third_party_unref"));
|
||||
|
||||
public void Unref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.ITPThirdParty>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_itp_third_party_unref(this_as_native);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.ITPThirdParty target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (ITPThirdParty other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is ITPThirdParty && Equals ((ITPThirdParty) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.ITPThirdParty boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.ITPThirdParty.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.ITPThirdParty (GLib.Value val)
|
||||
{
|
||||
return (WebKit.ITPThirdParty) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[Flags]
|
||||
[GLib.GType (typeof (WebKit.InputHintsGType))]
|
||||
public enum InputHints {
|
||||
|
||||
None = 0,
|
||||
Spellcheck = 1,
|
||||
Lowercase = 2,
|
||||
UppercaseChars = 4,
|
||||
UppercaseWords = 8,
|
||||
UppercaseSentences = 16,
|
||||
InhibitOsk = 32,
|
||||
}
|
||||
|
||||
internal class InputHintsGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_input_hints_get_type();
|
||||
static d_webkit_input_hints_get_type webkit_input_hints_get_type = FuncLoader.LoadFunction<d_webkit_input_hints_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_input_hints_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_input_hints_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,96 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct InputMethodUnderline : IEquatable<InputMethodUnderline> {
|
||||
|
||||
|
||||
public static WebKit.InputMethodUnderline Zero = new WebKit.InputMethodUnderline ();
|
||||
|
||||
public static WebKit.InputMethodUnderline New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.InputMethodUnderline.Zero;
|
||||
return (WebKit.InputMethodUnderline) Marshal.PtrToStructure (raw, typeof (WebKit.InputMethodUnderline));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_input_method_underline_new(uint start_offset, uint end_offset);
|
||||
static d_webkit_input_method_underline_new webkit_input_method_underline_new = FuncLoader.LoadFunction<d_webkit_input_method_underline_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_input_method_underline_new"));
|
||||
|
||||
public static InputMethodUnderline New(uint start_offset, uint end_offset)
|
||||
{
|
||||
InputMethodUnderline result = InputMethodUnderline.New (webkit_input_method_underline_new(start_offset, end_offset));
|
||||
return result;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_input_method_underline_get_type();
|
||||
static d_webkit_input_method_underline_get_type webkit_input_method_underline_get_type = FuncLoader.LoadFunction<d_webkit_input_method_underline_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_input_method_underline_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_input_method_underline_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_input_method_underline_set_color(IntPtr raw, IntPtr value);
|
||||
static d_webkit_input_method_underline_set_color webkit_input_method_underline_set_color = FuncLoader.LoadFunction<d_webkit_input_method_underline_set_color>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_input_method_underline_set_color"));
|
||||
|
||||
public Gdk.RGBA Color {
|
||||
set {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.InputMethodUnderline>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
|
||||
webkit_input_method_underline_set_color(this_as_native, native_value);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
Marshal.FreeHGlobal (native_value);
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.InputMethodUnderline target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (InputMethodUnderline other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is InputMethodUnderline && Equals ((InputMethodUnderline) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.InputMethodUnderline boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.InputMethodUnderline.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.InputMethodUnderline (GLib.Value val)
|
||||
{
|
||||
return (WebKit.InputMethodUnderline) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.InputPurposeGType))]
|
||||
public enum InputPurpose {
|
||||
|
||||
FreeForm = 0,
|
||||
Digits = 1,
|
||||
Number = 2,
|
||||
Phone = 3,
|
||||
Url = 4,
|
||||
Email = 5,
|
||||
Password = 6,
|
||||
}
|
||||
|
||||
internal class InputPurposeGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_input_purpose_get_type();
|
||||
static d_webkit_input_purpose_get_type webkit_input_purpose_get_type = FuncLoader.LoadFunction<d_webkit_input_purpose_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_input_purpose_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_input_purpose_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void InsecureContentDetectedHandler(object o, InsecureContentDetectedArgs args);
|
||||
|
||||
public class InsecureContentDetectedArgs : GLib.SignalArgs {
|
||||
public WebKit.InsecureContentEvent Event{
|
||||
get {
|
||||
return (WebKit.InsecureContentEvent) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.InsecureContentEventGType))]
|
||||
public enum InsecureContentEvent {
|
||||
|
||||
Run = 0,
|
||||
Displayed = 1,
|
||||
}
|
||||
|
||||
internal class InsecureContentEventGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_insecure_content_event_get_type();
|
||||
static d_webkit_insecure_content_event_get_type webkit_insecure_content_event_get_type = FuncLoader.LoadFunction<d_webkit_insecure_content_event_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_insecure_content_event_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_insecure_content_event_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class InstallMissingMediaPluginsPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public InstallMissingMediaPluginsPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected InstallMissingMediaPluginsPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_install_missing_media_plugins_permission_request_get_type();
|
||||
static d_webkit_install_missing_media_plugins_permission_request_get_type webkit_install_missing_media_plugins_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_install_missing_media_plugins_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_install_missing_media_plugins_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_install_missing_media_plugins_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_install_missing_media_plugins_permission_request_get_description(IntPtr raw);
|
||||
static d_webkit_install_missing_media_plugins_permission_request_get_description webkit_install_missing_media_plugins_permission_request_get_description = FuncLoader.LoadFunction<d_webkit_install_missing_media_plugins_permission_request_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_install_missing_media_plugins_permission_request_get_description"));
|
||||
|
||||
public string Description {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_install_missing_media_plugins_permission_request_get_description(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static InstallMissingMediaPluginsPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.JavascriptErrorGType))]
|
||||
public enum JavascriptError {
|
||||
|
||||
Failed = 699,
|
||||
}
|
||||
|
||||
internal class JavascriptErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_javascript_error_get_type();
|
||||
static d_webkit_javascript_error_get_type webkit_javascript_error_get_type = FuncLoader.LoadFunction<d_webkit_javascript_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_javascript_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class JavascriptResult : GLib.Opaque {
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_javascript_result_get_type();
|
||||
static d_webkit_javascript_result_get_type webkit_javascript_result_get_type = FuncLoader.LoadFunction<d_webkit_javascript_result_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_result_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_javascript_result_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public JavascriptResult(IntPtr raw) : base(raw) {}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_javascript_result_ref(IntPtr raw);
|
||||
static d_webkit_javascript_result_ref webkit_javascript_result_ref = FuncLoader.LoadFunction<d_webkit_javascript_result_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_result_ref"));
|
||||
|
||||
protected override void Ref (IntPtr raw)
|
||||
{
|
||||
if (!Owned) {
|
||||
webkit_javascript_result_ref (raw);
|
||||
Owned = true;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_javascript_result_unref(IntPtr raw);
|
||||
static d_webkit_javascript_result_unref webkit_javascript_result_unref = FuncLoader.LoadFunction<d_webkit_javascript_result_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_javascript_result_unref"));
|
||||
|
||||
protected override void Unref (IntPtr raw)
|
||||
{
|
||||
if (Owned) {
|
||||
webkit_javascript_result_unref (raw);
|
||||
Owned = false;
|
||||
}
|
||||
}
|
||||
|
||||
class FinalizerInfo {
|
||||
IntPtr handle;
|
||||
public uint timeoutHandlerId;
|
||||
|
||||
public FinalizerInfo (IntPtr handle)
|
||||
{
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public bool Handler ()
|
||||
{
|
||||
webkit_javascript_result_unref (handle);
|
||||
GLib.Timeout.Remove(timeoutHandlerId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
~JavascriptResult ()
|
||||
{
|
||||
if (!Owned)
|
||||
return;
|
||||
FinalizerInfo info = new FinalizerInfo (Handle);
|
||||
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void LeaveFullscreenHandler(object o, LeaveFullscreenArgs args);
|
||||
|
||||
public class LeaveFullscreenArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void LoadChangedHandler(object o, LoadChangedArgs args);
|
||||
|
||||
public class LoadChangedArgs : GLib.SignalArgs {
|
||||
public WebKit.LoadEvent LoadEvent{
|
||||
get {
|
||||
return (WebKit.LoadEvent) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.LoadEventGType))]
|
||||
public enum LoadEvent {
|
||||
|
||||
Started = 0,
|
||||
Redirected = 1,
|
||||
Committed = 2,
|
||||
Finished = 3,
|
||||
}
|
||||
|
||||
internal class LoadEventGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_load_event_get_type();
|
||||
static d_webkit_load_event_get_type webkit_load_event_get_type = FuncLoader.LoadFunction<d_webkit_load_event_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_load_event_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_load_event_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void LoadFailedHandler(object o, LoadFailedArgs args);
|
||||
|
||||
public class LoadFailedArgs : GLib.SignalArgs {
|
||||
public WebKit.LoadEvent LoadEvent{
|
||||
get {
|
||||
return (WebKit.LoadEvent) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public string FailingUri{
|
||||
get {
|
||||
return (string) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
public IntPtr Error{
|
||||
get {
|
||||
return (IntPtr) Args [2];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void LoadFailedWithTlsErrorsHandler(object o, LoadFailedWithTlsErrorsArgs args);
|
||||
|
||||
public class LoadFailedWithTlsErrorsArgs : GLib.SignalArgs {
|
||||
public string FailingUri{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public GLib.TlsCertificate Certificate{
|
||||
get {
|
||||
return (GLib.TlsCertificate) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
public GLib.TlsCertificateFlags Errors{
|
||||
get {
|
||||
return (GLib.TlsCertificateFlags) Args [2];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class MediaKeySystemPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public MediaKeySystemPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected MediaKeySystemPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_media_key_system_permission_request_get_type();
|
||||
static d_webkit_media_key_system_permission_request_get_type webkit_media_key_system_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_media_key_system_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_media_key_system_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_media_key_system_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static MediaKeySystemPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
149
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/MimeInfo.cs
Normal file
149
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/MimeInfo.cs
Normal file
@@ -0,0 +1,149 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct MimeInfo : IEquatable<MimeInfo> {
|
||||
|
||||
|
||||
public static WebKit.MimeInfo Zero = new WebKit.MimeInfo ();
|
||||
|
||||
public static WebKit.MimeInfo New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.MimeInfo.Zero;
|
||||
return (WebKit.MimeInfo) Marshal.PtrToStructure (raw, typeof (WebKit.MimeInfo));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_mime_info_get_type();
|
||||
static d_webkit_mime_info_get_type webkit_mime_info_get_type = FuncLoader.LoadFunction<d_webkit_mime_info_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_mime_info_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_mime_info_get_description(IntPtr raw);
|
||||
static d_webkit_mime_info_get_description webkit_mime_info_get_description = FuncLoader.LoadFunction<d_webkit_mime_info_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_get_description"));
|
||||
|
||||
[Obsolete]
|
||||
public string Description {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.MimeInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_mime_info_get_description(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_mime_info_get_extensions(IntPtr raw);
|
||||
static d_webkit_mime_info_get_extensions webkit_mime_info_get_extensions = FuncLoader.LoadFunction<d_webkit_mime_info_get_extensions>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_get_extensions"));
|
||||
|
||||
[Obsolete]
|
||||
public string[] Extensions {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.MimeInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_mime_info_get_extensions(this_as_native);
|
||||
string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_mime_info_get_mime_type(IntPtr raw);
|
||||
static d_webkit_mime_info_get_mime_type webkit_mime_info_get_mime_type = FuncLoader.LoadFunction<d_webkit_mime_info_get_mime_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_get_mime_type"));
|
||||
|
||||
[Obsolete]
|
||||
public string MimeType {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.MimeInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_mime_info_get_mime_type(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_mime_info_ref(IntPtr raw);
|
||||
static d_webkit_mime_info_ref webkit_mime_info_ref = FuncLoader.LoadFunction<d_webkit_mime_info_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_ref"));
|
||||
|
||||
[Obsolete]
|
||||
public WebKit.MimeInfo Ref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.MimeInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_mime_info_ref(this_as_native);
|
||||
WebKit.MimeInfo ret = WebKit.MimeInfo.New (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_mime_info_unref(IntPtr raw);
|
||||
static d_webkit_mime_info_unref webkit_mime_info_unref = FuncLoader.LoadFunction<d_webkit_mime_info_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_mime_info_unref"));
|
||||
|
||||
[Obsolete]
|
||||
public void Unref() {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.MimeInfo>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
webkit_mime_info_unref(this_as_native);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.MimeInfo target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (MimeInfo other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is MimeInfo && Equals ((MimeInfo) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.MimeInfo boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.MimeInfo.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.MimeInfo (GLib.Value val)
|
||||
{
|
||||
return (WebKit.MimeInfo) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void MouseTargetChangedHandler(object o, MouseTargetChangedArgs args);
|
||||
|
||||
public class MouseTargetChangedArgs : GLib.SignalArgs {
|
||||
public WebKit.HitTestResult HitTestResult{
|
||||
get {
|
||||
return (WebKit.HitTestResult) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
public uint Modifiers{
|
||||
get {
|
||||
return (uint) Args [1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,311 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public enum WebKitNavigationType
|
||||
{
|
||||
LinkClicked,
|
||||
FormSubmitted,
|
||||
BackForward,
|
||||
Reload,
|
||||
FormResubmitted,
|
||||
Other
|
||||
}
|
||||
|
||||
public static class WebKitNavigationActionMethods
|
||||
{
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr webkit_navigation_action_copy(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void webkit_navigation_action_free(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern WebKitNavigationType webkit_navigation_action_get_navigation_type(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern uint webkit_navigation_action_get_mouse_button(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern uint webkit_navigation_action_get_modifiers(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr webkit_navigation_action_get_request(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool webkit_navigation_action_is_user_gesture(IntPtr navigation);
|
||||
|
||||
[DllImport("libwebkit2gtk-4.0.so.37", CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool webkit_navigation_action_is_redirect(IntPtr navigation);
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct WKNavigationAction
|
||||
{
|
||||
public WebKitNavigationType NavigationType;
|
||||
public uint MouseButton;
|
||||
public uint Modifiers;
|
||||
public IntPtr Request; // Pointer to WebKitURIRequest
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
public bool IsUserGesture;
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
public bool IsRedirect;
|
||||
|
||||
// Convert IntPtr to WebKitNavigationAction
|
||||
public static WKNavigationAction PtrToStruct(IntPtr ptr)
|
||||
{
|
||||
return Marshal.PtrToStructure<WKNavigationAction>(ptr);
|
||||
}
|
||||
|
||||
// Convert WebKitNavigationAction to IntPtr
|
||||
public IntPtr StructToPtr()
|
||||
{
|
||||
IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf<WKNavigationAction>());
|
||||
Marshal.StructureToPtr(this, ptr, false);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
// Free the allocated memory
|
||||
public static void FreePtr(IntPtr ptr)
|
||||
{
|
||||
Marshal.FreeHGlobal(ptr);
|
||||
}
|
||||
|
||||
// Create a managed copy of the native structure
|
||||
public static WKNavigationAction CreateManagedCopy(IntPtr ptr)
|
||||
{
|
||||
WKNavigationAction managedCopy = PtrToStruct(ptr);
|
||||
|
||||
// If Request is not null, create a copy of WebKitURIRequest
|
||||
if (managedCopy.Request != IntPtr.Zero)
|
||||
{
|
||||
managedCopy.Request = WKURIRequest.CreateManagedCopy(managedCopy.Request);
|
||||
}
|
||||
|
||||
return managedCopy;
|
||||
}
|
||||
|
||||
// Dispose method to clean up resources
|
||||
public void Dispose()
|
||||
{
|
||||
if (Request != IntPtr.Zero)
|
||||
{
|
||||
WKURIRequest.FreePtr(Request);
|
||||
Request = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct WKURIRequest
|
||||
{
|
||||
// Add fields as needed
|
||||
public IntPtr Uri; // Assuming the URI is stored as a string pointer
|
||||
|
||||
// Convert IntPtr to WebKitURIRequest
|
||||
public static WKURIRequest PtrToStruct(IntPtr ptr)
|
||||
{
|
||||
return Marshal.PtrToStructure<WKURIRequest>(ptr);
|
||||
}
|
||||
|
||||
// Convert WebKitURIRequest to IntPtr
|
||||
public IntPtr StructToPtr()
|
||||
{
|
||||
IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf<WKURIRequest>());
|
||||
Marshal.StructureToPtr(this, ptr, false);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
// Free the allocated memory
|
||||
public static void FreePtr(IntPtr ptr)
|
||||
{
|
||||
Marshal.FreeHGlobal(ptr);
|
||||
}
|
||||
|
||||
// Create a managed copy of the native structure
|
||||
public static IntPtr CreateManagedCopy(IntPtr ptr)
|
||||
{
|
||||
WKURIRequest managedCopy = PtrToStruct(ptr);
|
||||
|
||||
// If Uri is not null, create a copy of the string
|
||||
if (managedCopy.Uri != IntPtr.Zero)
|
||||
{
|
||||
string uriString = Marshal.PtrToStringAnsi(managedCopy.Uri);
|
||||
managedCopy.Uri = Marshal.StringToHGlobalAnsi(uriString);
|
||||
}
|
||||
|
||||
return managedCopy.StructToPtr();
|
||||
}
|
||||
}
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct NavigationAction : IEquatable<NavigationAction> {
|
||||
|
||||
|
||||
public static WebKit.NavigationAction Zero = new WebKit.NavigationAction ();
|
||||
|
||||
public static WebKit.NavigationAction New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.NavigationAction.Zero;
|
||||
return (WebKit.NavigationAction) Marshal.PtrToStructure (raw, typeof (WebKit.NavigationAction));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_action_get_type();
|
||||
static d_webkit_navigation_action_get_type webkit_navigation_action_get_type = FuncLoader.LoadFunction<d_webkit_navigation_action_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_navigation_action_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_navigation_action_get_modifiers(IntPtr raw);
|
||||
static d_webkit_navigation_action_get_modifiers webkit_navigation_action_get_modifiers = FuncLoader.LoadFunction<d_webkit_navigation_action_get_modifiers>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_get_modifiers"));
|
||||
|
||||
public uint Modifiers {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NavigationAction>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
uint raw_ret = webkit_navigation_action_get_modifiers(this_as_native);
|
||||
uint ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_navigation_action_get_mouse_button(IntPtr raw);
|
||||
static d_webkit_navigation_action_get_mouse_button webkit_navigation_action_get_mouse_button = FuncLoader.LoadFunction<d_webkit_navigation_action_get_mouse_button>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_get_mouse_button"));
|
||||
|
||||
public uint MouseButton {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NavigationAction>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
uint raw_ret = webkit_navigation_action_get_mouse_button(this_as_native);
|
||||
uint ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_navigation_action_get_navigation_type(IntPtr raw);
|
||||
static d_webkit_navigation_action_get_navigation_type webkit_navigation_action_get_navigation_type = FuncLoader.LoadFunction<d_webkit_navigation_action_get_navigation_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_get_navigation_type"));
|
||||
|
||||
public WebKit.NavigationType NavigationType {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NavigationAction>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
int raw_ret = webkit_navigation_action_get_navigation_type(this_as_native);
|
||||
WebKit.NavigationType ret = (WebKit.NavigationType) raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_action_get_request(IntPtr raw);
|
||||
static d_webkit_navigation_action_get_request webkit_navigation_action_get_request = FuncLoader.LoadFunction<d_webkit_navigation_action_get_request>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_get_request"));
|
||||
|
||||
public WebKit.URIRequest Request {
|
||||
get
|
||||
{
|
||||
var nav = new WKNavigationAction();
|
||||
var nativePtr = nav.StructToPtr();
|
||||
var raw_ptr = WebKitNavigationActionMethods.webkit_navigation_action_get_request(nativePtr);
|
||||
|
||||
|
||||
|
||||
// IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WKNavigationAction>());
|
||||
// System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
|
||||
// IntPtr raw_ret = webkit_navigation_action_get_request(nativePtr);
|
||||
// WebKit.URIRequest ret = GLib.Object.GetObject(raw_ret) as WebKit.URIRequest;
|
||||
// ReadNative (nativePtr, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (nativePtr);
|
||||
return new WebKit.URIRequest(raw_ptr);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_navigation_action_is_redirect(IntPtr raw);
|
||||
static d_webkit_navigation_action_is_redirect webkit_navigation_action_is_redirect = FuncLoader.LoadFunction<d_webkit_navigation_action_is_redirect>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_is_redirect"));
|
||||
|
||||
public bool IsRedirect {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NavigationAction>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_navigation_action_is_redirect(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_navigation_action_is_user_gesture(IntPtr raw);
|
||||
static d_webkit_navigation_action_is_user_gesture webkit_navigation_action_is_user_gesture = FuncLoader.LoadFunction<d_webkit_navigation_action_is_user_gesture>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_action_is_user_gesture"));
|
||||
|
||||
public bool IsUserGesture {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NavigationAction>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_navigation_action_is_user_gesture(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.NavigationAction target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (NavigationAction other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is NavigationAction && Equals ((NavigationAction) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.NavigationAction boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.NavigationAction.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.NavigationAction (GLib.Value val)
|
||||
{
|
||||
return (WebKit.NavigationAction) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class NavigationPolicyDecision : WebKit.PolicyDecision {
|
||||
|
||||
public NavigationPolicyDecision (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected NavigationPolicyDecision() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_policy_decision_get_frame_name(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_frame_name webkit_navigation_policy_decision_get_frame_name = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_frame_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_frame_name"));
|
||||
|
||||
[GLib.Property ("frame-name")]
|
||||
public string FrameName {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_navigation_policy_decision_get_frame_name(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_navigation_policy_decision_get_modifiers(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_modifiers webkit_navigation_policy_decision_get_modifiers = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_modifiers>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_modifiers"));
|
||||
|
||||
[Obsolete]
|
||||
[GLib.Property ("modifiers")]
|
||||
public uint Modifiers {
|
||||
get {
|
||||
uint raw_ret = webkit_navigation_policy_decision_get_modifiers(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_navigation_policy_decision_get_mouse_button(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_mouse_button webkit_navigation_policy_decision_get_mouse_button = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_mouse_button>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_mouse_button"));
|
||||
|
||||
[Obsolete]
|
||||
[GLib.Property ("mouse-button")]
|
||||
public uint MouseButton {
|
||||
get {
|
||||
uint raw_ret = webkit_navigation_policy_decision_get_mouse_button(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_policy_decision_get_navigation_action(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_navigation_action webkit_navigation_policy_decision_get_navigation_action = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_navigation_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_navigation_action"));
|
||||
|
||||
[GLib.Property ("navigation-action")]
|
||||
public WebKit.NavigationAction NavigationAction {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_navigation_policy_decision_get_navigation_action(Handle);
|
||||
WebKit.NavigationAction ret = WebKit.NavigationAction.New (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate int d_webkit_navigation_policy_decision_get_navigation_type(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_navigation_type webkit_navigation_policy_decision_get_navigation_type = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_navigation_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_navigation_type"));
|
||||
|
||||
[Obsolete]
|
||||
[GLib.Property ("navigation-type")]
|
||||
public WebKit.NavigationType NavigationType {
|
||||
get {
|
||||
int raw_ret = webkit_navigation_policy_decision_get_navigation_type(Handle);
|
||||
WebKit.NavigationType ret = (WebKit.NavigationType) raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_policy_decision_get_request(IntPtr raw);
|
||||
static d_webkit_navigation_policy_decision_get_request webkit_navigation_policy_decision_get_request = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_request>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_request"));
|
||||
|
||||
[Obsolete]
|
||||
[GLib.Property ("request")]
|
||||
public WebKit.URIRequest Request {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_navigation_policy_decision_get_request(Handle);
|
||||
WebKit.URIRequest ret = GLib.Object.GetObject(raw_ret) as WebKit.URIRequest;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, WebKit.PolicyDecision.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_policy_decision_get_type();
|
||||
static d_webkit_navigation_policy_decision_get_type webkit_navigation_policy_decision_get_type = FuncLoader.LoadFunction<d_webkit_navigation_policy_decision_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_policy_decision_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_navigation_policy_decision_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static NavigationPolicyDecision ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, WebKit.PolicyDecision.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.NavigationTypeGType))]
|
||||
public enum NavigationType {
|
||||
|
||||
LinkClicked = 0,
|
||||
FormSubmitted = 1,
|
||||
BackForward = 2,
|
||||
Reload = 3,
|
||||
FormResubmitted = 4,
|
||||
Other = 5,
|
||||
}
|
||||
|
||||
internal class NavigationTypeGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_navigation_type_get_type();
|
||||
static d_webkit_navigation_type_get_type webkit_navigation_type_get_type = FuncLoader.LoadFunction<d_webkit_navigation_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_navigation_type_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_navigation_type_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.NetworkErrorGType))]
|
||||
public enum NetworkError {
|
||||
|
||||
Transport = 300,
|
||||
UnknownProtocol = 301,
|
||||
Cancelled = 302,
|
||||
FileDoesNotExist = 303,
|
||||
Failed = 399,
|
||||
}
|
||||
|
||||
internal class NetworkErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_network_error_get_type();
|
||||
static d_webkit_network_error_get_type webkit_network_error_get_type = FuncLoader.LoadFunction<d_webkit_network_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_network_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.NetworkProxyModeGType))]
|
||||
public enum NetworkProxyMode {
|
||||
|
||||
Default = 0,
|
||||
NoProxy = 1,
|
||||
Custom = 2,
|
||||
}
|
||||
|
||||
internal class NetworkProxyModeGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_network_proxy_mode_get_type();
|
||||
static d_webkit_network_proxy_mode_get_type webkit_network_proxy_mode_get_type = FuncLoader.LoadFunction<d_webkit_network_proxy_mode_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_proxy_mode_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_network_proxy_mode_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct NetworkProxySettings : IEquatable<NetworkProxySettings> {
|
||||
|
||||
|
||||
public static WebKit.NetworkProxySettings Zero = new WebKit.NetworkProxySettings ();
|
||||
|
||||
public static WebKit.NetworkProxySettings New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.NetworkProxySettings.Zero;
|
||||
return (WebKit.NetworkProxySettings) Marshal.PtrToStructure (raw, typeof (WebKit.NetworkProxySettings));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_network_proxy_settings_new(IntPtr default_proxy_uri, IntPtr[] ignore_hosts);
|
||||
static d_webkit_network_proxy_settings_new webkit_network_proxy_settings_new = FuncLoader.LoadFunction<d_webkit_network_proxy_settings_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_proxy_settings_new"));
|
||||
|
||||
public static NetworkProxySettings New(string default_proxy_uri, string[] ignore_hosts)
|
||||
{
|
||||
IntPtr native_default_proxy_uri = GLib.Marshaller.StringToPtrGStrdup (default_proxy_uri);
|
||||
int cnt_ignore_hosts = ignore_hosts == null ? 0 : ignore_hosts.Length;
|
||||
IntPtr[] native_ignore_hosts = new IntPtr [cnt_ignore_hosts + 1];
|
||||
for (int i = 0; i < cnt_ignore_hosts; i++)
|
||||
native_ignore_hosts [i] = GLib.Marshaller.StringToPtrGStrdup (ignore_hosts[i]);
|
||||
native_ignore_hosts [cnt_ignore_hosts] = IntPtr.Zero;
|
||||
NetworkProxySettings result = NetworkProxySettings.New (webkit_network_proxy_settings_new(native_default_proxy_uri, native_ignore_hosts));
|
||||
GLib.Marshaller.Free (native_default_proxy_uri);
|
||||
for (int i = 0; i < native_ignore_hosts.Length - 1; i++) {
|
||||
ignore_hosts [i] = GLib.Marshaller.Utf8PtrToString (native_ignore_hosts[i]);
|
||||
GLib.Marshaller.Free (native_ignore_hosts[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_network_proxy_settings_get_type();
|
||||
static d_webkit_network_proxy_settings_get_type webkit_network_proxy_settings_get_type = FuncLoader.LoadFunction<d_webkit_network_proxy_settings_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_proxy_settings_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_network_proxy_settings_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_network_proxy_settings_add_proxy_for_scheme(IntPtr raw, IntPtr scheme, IntPtr proxy_uri);
|
||||
static d_webkit_network_proxy_settings_add_proxy_for_scheme webkit_network_proxy_settings_add_proxy_for_scheme = FuncLoader.LoadFunction<d_webkit_network_proxy_settings_add_proxy_for_scheme>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_network_proxy_settings_add_proxy_for_scheme"));
|
||||
|
||||
public void AddProxyForScheme(string scheme, string proxy_uri) {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.NetworkProxySettings>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr native_scheme = GLib.Marshaller.StringToPtrGStrdup (scheme);
|
||||
IntPtr native_proxy_uri = GLib.Marshaller.StringToPtrGStrdup (proxy_uri);
|
||||
webkit_network_proxy_settings_add_proxy_for_scheme(this_as_native, native_scheme, native_proxy_uri);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
GLib.Marshaller.Free (native_scheme);
|
||||
GLib.Marshaller.Free (native_proxy_uri);
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.NetworkProxySettings target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (NetworkProxySettings other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is NetworkProxySettings && Equals ((NetworkProxySettings) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.NetworkProxySettings boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.NetworkProxySettings.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.NetworkProxySettings (GLib.Value val)
|
||||
{
|
||||
return (WebKit.NetworkProxySettings) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,315 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class Notification : GLib.Object {
|
||||
|
||||
public Notification (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected Notification() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_notification_get_body(IntPtr raw);
|
||||
static d_webkit_notification_get_body webkit_notification_get_body = FuncLoader.LoadFunction<d_webkit_notification_get_body>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_get_body"));
|
||||
|
||||
[GLib.Property ("body")]
|
||||
public string Body {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_notification_get_body(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate ulong d_webkit_notification_get_id(IntPtr raw);
|
||||
static d_webkit_notification_get_id webkit_notification_get_id = FuncLoader.LoadFunction<d_webkit_notification_get_id>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_get_id"));
|
||||
|
||||
[GLib.Property ("id")]
|
||||
public ulong Id {
|
||||
get {
|
||||
ulong raw_ret = webkit_notification_get_id(Handle);
|
||||
ulong ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_notification_get_tag(IntPtr raw);
|
||||
static d_webkit_notification_get_tag webkit_notification_get_tag = FuncLoader.LoadFunction<d_webkit_notification_get_tag>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_get_tag"));
|
||||
|
||||
[GLib.Property ("tag")]
|
||||
public string Tag {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_notification_get_tag(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_notification_get_title(IntPtr raw);
|
||||
static d_webkit_notification_get_title webkit_notification_get_title = FuncLoader.LoadFunction<d_webkit_notification_get_title>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_get_title"));
|
||||
|
||||
[GLib.Property ("title")]
|
||||
public string Title {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_notification_get_title(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("clicked")]
|
||||
public event System.EventHandler ClickedEvent {
|
||||
add {
|
||||
this.AddSignalHandler ("clicked", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("clicked", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("closed")]
|
||||
public event System.EventHandler Closed {
|
||||
add {
|
||||
this.AddSignalHandler ("closed", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("closed", value);
|
||||
}
|
||||
}
|
||||
|
||||
static ClickedEventNativeDelegate ClickedEvent_cb_delegate;
|
||||
static ClickedEventNativeDelegate ClickedEventVMCallback {
|
||||
get {
|
||||
if (ClickedEvent_cb_delegate == null)
|
||||
ClickedEvent_cb_delegate = new ClickedEventNativeDelegate (ClickedEvent_cb);
|
||||
return ClickedEvent_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideClickedEvent (GLib.GType gtype)
|
||||
{
|
||||
OverrideClickedEvent (gtype, ClickedEventVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideClickedEvent (GLib.GType gtype, ClickedEventNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "clicked", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ClickedEventNativeDelegate (IntPtr inst);
|
||||
|
||||
static void ClickedEvent_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
Notification __obj = GLib.Object.GetObject (inst, false) as Notification;
|
||||
__obj.OnClickedEvent ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Notification), ConnectionMethod="OverrideClickedEvent")]
|
||||
protected virtual void OnClickedEvent ()
|
||||
{
|
||||
InternalClickedEvent ();
|
||||
}
|
||||
|
||||
private void InternalClickedEvent ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static ClosedNativeDelegate Closed_cb_delegate;
|
||||
static ClosedNativeDelegate ClosedVMCallback {
|
||||
get {
|
||||
if (Closed_cb_delegate == null)
|
||||
Closed_cb_delegate = new ClosedNativeDelegate (Closed_cb);
|
||||
return Closed_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideClosed (GLib.GType gtype)
|
||||
{
|
||||
OverrideClosed (gtype, ClosedVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideClosed (GLib.GType gtype, ClosedNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "closed", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ClosedNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Closed_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
Notification __obj = GLib.Object.GetObject (inst, false) as Notification;
|
||||
__obj.OnClosed ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.Notification), ConnectionMethod="OverrideClosed")]
|
||||
protected virtual void OnClosed ()
|
||||
{
|
||||
InternalClosed ();
|
||||
}
|
||||
|
||||
private void InternalClosed ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, "_webkit_reserved4"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved4"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved4
|
||||
, "_webkit_reserved3"
|
||||
, "_webkit_reserved5"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved5"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved5
|
||||
, "_webkit_reserved4"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_notification_get_type();
|
||||
static d_webkit_notification_get_type webkit_notification_get_type = FuncLoader.LoadFunction<d_webkit_notification_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_notification_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_notification_clicked(IntPtr raw);
|
||||
static d_webkit_notification_clicked webkit_notification_clicked = FuncLoader.LoadFunction<d_webkit_notification_clicked>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_clicked"));
|
||||
|
||||
public void Clicked() {
|
||||
webkit_notification_clicked(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_notification_close(IntPtr raw);
|
||||
static d_webkit_notification_close webkit_notification_close = FuncLoader.LoadFunction<d_webkit_notification_close>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_close"));
|
||||
|
||||
public void Close() {
|
||||
webkit_notification_close(Handle);
|
||||
}
|
||||
|
||||
|
||||
static Notification ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class NotificationPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public NotificationPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected NotificationPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_notification_permission_request_get_type();
|
||||
static d_webkit_notification_permission_request_get_type webkit_notification_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_notification_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_notification_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_notification_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static NotificationPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void OpenWindowHandler(object o, OpenWindowArgs args);
|
||||
|
||||
public class OpenWindowArgs : GLib.SignalArgs {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class OptionMenu : GLib.Object {
|
||||
|
||||
public OptionMenu (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected OptionMenu() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
[GLib.Signal("close")]
|
||||
public event System.EventHandler CloseEvent {
|
||||
add {
|
||||
this.AddSignalHandler ("close", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("close", value);
|
||||
}
|
||||
}
|
||||
|
||||
static CloseEventNativeDelegate CloseEvent_cb_delegate;
|
||||
static CloseEventNativeDelegate CloseEventVMCallback {
|
||||
get {
|
||||
if (CloseEvent_cb_delegate == null)
|
||||
CloseEvent_cb_delegate = new CloseEventNativeDelegate (CloseEvent_cb);
|
||||
return CloseEvent_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCloseEvent (GLib.GType gtype)
|
||||
{
|
||||
OverrideCloseEvent (gtype, CloseEventVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCloseEvent (GLib.GType gtype, CloseEventNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "close", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void CloseEventNativeDelegate (IntPtr inst);
|
||||
|
||||
static void CloseEvent_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
OptionMenu __obj = GLib.Object.GetObject (inst, false) as OptionMenu;
|
||||
__obj.OnCloseEvent ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.OptionMenu), ConnectionMethod="OverrideCloseEvent")]
|
||||
protected virtual void OnCloseEvent ()
|
||||
{
|
||||
InternalCloseEvent ();
|
||||
}
|
||||
|
||||
private void InternalCloseEvent ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_option_menu_get_type();
|
||||
static d_webkit_option_menu_get_type webkit_option_menu_get_type = FuncLoader.LoadFunction<d_webkit_option_menu_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_option_menu_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_option_menu_activate_item(IntPtr raw, uint index);
|
||||
static d_webkit_option_menu_activate_item webkit_option_menu_activate_item = FuncLoader.LoadFunction<d_webkit_option_menu_activate_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_activate_item"));
|
||||
|
||||
public void ActivateItem(uint index) {
|
||||
webkit_option_menu_activate_item(Handle, index);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_option_menu_close(IntPtr raw);
|
||||
static d_webkit_option_menu_close webkit_option_menu_close = FuncLoader.LoadFunction<d_webkit_option_menu_close>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_close"));
|
||||
|
||||
public void Close() {
|
||||
webkit_option_menu_close(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_option_menu_get_item(IntPtr raw, uint index);
|
||||
static d_webkit_option_menu_get_item webkit_option_menu_get_item = FuncLoader.LoadFunction<d_webkit_option_menu_get_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_get_item"));
|
||||
|
||||
public WebKit.OptionMenuItem GetItem(uint index) {
|
||||
IntPtr raw_ret = webkit_option_menu_get_item(Handle, index);
|
||||
WebKit.OptionMenuItem ret = WebKit.OptionMenuItem.New (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate uint d_webkit_option_menu_get_n_items(IntPtr raw);
|
||||
static d_webkit_option_menu_get_n_items webkit_option_menu_get_n_items = FuncLoader.LoadFunction<d_webkit_option_menu_get_n_items>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_get_n_items"));
|
||||
|
||||
public uint NItems {
|
||||
get {
|
||||
uint raw_ret = webkit_option_menu_get_n_items(Handle);
|
||||
uint ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_option_menu_select_item(IntPtr raw, uint index);
|
||||
static d_webkit_option_menu_select_item webkit_option_menu_select_item = FuncLoader.LoadFunction<d_webkit_option_menu_select_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_select_item"));
|
||||
|
||||
public void SelectItem(uint index) {
|
||||
webkit_option_menu_select_item(Handle, index);
|
||||
}
|
||||
|
||||
|
||||
static OptionMenu ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct OptionMenuItem : IEquatable<OptionMenuItem> {
|
||||
|
||||
|
||||
public static WebKit.OptionMenuItem Zero = new WebKit.OptionMenuItem ();
|
||||
|
||||
public static WebKit.OptionMenuItem New(IntPtr raw) {
|
||||
if (raw == IntPtr.Zero)
|
||||
return WebKit.OptionMenuItem.Zero;
|
||||
return (WebKit.OptionMenuItem) Marshal.PtrToStructure (raw, typeof (WebKit.OptionMenuItem));
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_option_menu_item_get_type();
|
||||
static d_webkit_option_menu_item_get_type webkit_option_menu_item_get_type = FuncLoader.LoadFunction<d_webkit_option_menu_item_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_option_menu_item_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_option_menu_item_get_label(IntPtr raw);
|
||||
static d_webkit_option_menu_item_get_label webkit_option_menu_item_get_label = FuncLoader.LoadFunction<d_webkit_option_menu_item_get_label>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_get_label"));
|
||||
|
||||
public string Label {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_option_menu_item_get_label(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_option_menu_item_get_tooltip(IntPtr raw);
|
||||
static d_webkit_option_menu_item_get_tooltip webkit_option_menu_item_get_tooltip = FuncLoader.LoadFunction<d_webkit_option_menu_item_get_tooltip>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_get_tooltip"));
|
||||
|
||||
public string Tooltip {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
IntPtr raw_ret = webkit_option_menu_item_get_tooltip(this_as_native);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_option_menu_item_is_enabled(IntPtr raw);
|
||||
static d_webkit_option_menu_item_is_enabled webkit_option_menu_item_is_enabled = FuncLoader.LoadFunction<d_webkit_option_menu_item_is_enabled>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_is_enabled"));
|
||||
|
||||
public bool IsEnabled {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_option_menu_item_is_enabled(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_option_menu_item_is_group_child(IntPtr raw);
|
||||
static d_webkit_option_menu_item_is_group_child webkit_option_menu_item_is_group_child = FuncLoader.LoadFunction<d_webkit_option_menu_item_is_group_child>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_is_group_child"));
|
||||
|
||||
public bool IsGroupChild {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_option_menu_item_is_group_child(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_option_menu_item_is_group_label(IntPtr raw);
|
||||
static d_webkit_option_menu_item_is_group_label webkit_option_menu_item_is_group_label = FuncLoader.LoadFunction<d_webkit_option_menu_item_is_group_label>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_is_group_label"));
|
||||
|
||||
public bool IsGroupLabel {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_option_menu_item_is_group_label(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool d_webkit_option_menu_item_is_selected(IntPtr raw);
|
||||
static d_webkit_option_menu_item_is_selected webkit_option_menu_item_is_selected = FuncLoader.LoadFunction<d_webkit_option_menu_item_is_selected>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_option_menu_item_is_selected"));
|
||||
|
||||
public bool IsSelected {
|
||||
get {
|
||||
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<WebKit.OptionMenuItem>());
|
||||
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
||||
bool raw_ret = webkit_option_menu_item_is_selected(this_as_native);
|
||||
bool ret = raw_ret;
|
||||
ReadNative (this_as_native, ref this);
|
||||
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadNative (IntPtr native, ref WebKit.OptionMenuItem target)
|
||||
{
|
||||
target = New (native);
|
||||
}
|
||||
|
||||
public bool Equals (OptionMenuItem other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
{
|
||||
return other is OptionMenuItem && Equals ((OptionMenuItem) other);
|
||||
}
|
||||
|
||||
public override int GetHashCode ()
|
||||
{
|
||||
return this.GetType ().FullName.GetHashCode ();
|
||||
}
|
||||
|
||||
public static explicit operator GLib.Value (WebKit.OptionMenuItem boxed)
|
||||
{
|
||||
GLib.Value val = GLib.Value.Empty;
|
||||
val.Init (WebKit.OptionMenuItem.GType);
|
||||
val.Val = boxed;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static explicit operator WebKit.OptionMenuItem (GLib.Value val)
|
||||
{
|
||||
return (WebKit.OptionMenuItem) val.Val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class PermissionRequestAdapter : GLib.GInterfaceAdapter, WebKit.IPermissionRequest {
|
||||
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
struct WebKitPermissionRequestIface {
|
||||
public AllowNativeDelegate Allow;
|
||||
public DenyNativeDelegate Deny;
|
||||
}
|
||||
|
||||
static WebKitPermissionRequestIface iface;
|
||||
|
||||
static PermissionRequestAdapter ()
|
||||
{
|
||||
GLib.GType.Register (_gtype, typeof (PermissionRequestAdapter));
|
||||
iface.Allow = new AllowNativeDelegate (Allow_cb);
|
||||
iface.Deny = new DenyNativeDelegate (Deny_cb);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void AllowNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Allow_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
IPermissionRequestImplementor __obj = GLib.Object.GetObject (inst, false) as IPermissionRequestImplementor;
|
||||
__obj.Allow ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void DenyNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Deny_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
IPermissionRequestImplementor __obj = GLib.Object.GetObject (inst, false) as IPermissionRequestImplementor;
|
||||
__obj.Deny ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
static int class_offset = 2 * IntPtr.Size;
|
||||
|
||||
static void Initialize (IntPtr ptr, IntPtr data)
|
||||
{
|
||||
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
|
||||
WebKitPermissionRequestIface native_iface = (WebKitPermissionRequestIface) Marshal.PtrToStructure (ifaceptr, typeof (WebKitPermissionRequestIface));
|
||||
native_iface.Allow = iface.Allow;
|
||||
native_iface.Deny = iface.Deny;
|
||||
Marshal.StructureToPtr (native_iface, ifaceptr, false);
|
||||
}
|
||||
|
||||
GLib.Object implementor;
|
||||
|
||||
public PermissionRequestAdapter ()
|
||||
{
|
||||
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
|
||||
}
|
||||
|
||||
public PermissionRequestAdapter (IPermissionRequestImplementor implementor)
|
||||
{
|
||||
if (implementor == null)
|
||||
throw new ArgumentNullException ("implementor");
|
||||
else if (!(implementor is GLib.Object))
|
||||
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
|
||||
this.implementor = implementor as GLib.Object;
|
||||
}
|
||||
|
||||
public PermissionRequestAdapter (IntPtr handle)
|
||||
{
|
||||
if (!_gtype.IsInstance (handle))
|
||||
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
|
||||
implementor = GLib.Object.GetObject (handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_permission_request_get_type();
|
||||
static d_webkit_permission_request_get_type webkit_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_get_type"));
|
||||
|
||||
private static GLib.GType _gtype = new GLib.GType (webkit_permission_request_get_type ());
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return _gtype;
|
||||
}
|
||||
}
|
||||
|
||||
public override GLib.GType GInterfaceGType {
|
||||
get {
|
||||
return _gtype;
|
||||
}
|
||||
}
|
||||
|
||||
public override IntPtr Handle {
|
||||
get {
|
||||
return implementor.Handle;
|
||||
}
|
||||
}
|
||||
|
||||
public IntPtr OwnedHandle {
|
||||
get {
|
||||
return implementor.OwnedHandle;
|
||||
}
|
||||
}
|
||||
|
||||
public static IPermissionRequest GetObject (IntPtr handle, bool owned)
|
||||
{
|
||||
GLib.Object obj = GLib.Object.GetObject (handle, owned);
|
||||
return GetObject (obj);
|
||||
}
|
||||
|
||||
public static IPermissionRequest GetObject (GLib.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj is IPermissionRequestImplementor)
|
||||
return new PermissionRequestAdapter (obj as IPermissionRequestImplementor);
|
||||
else if (obj as IPermissionRequest == null)
|
||||
return new PermissionRequestAdapter (obj.Handle);
|
||||
else
|
||||
return obj as IPermissionRequest;
|
||||
}
|
||||
|
||||
public IPermissionRequestImplementor Implementor {
|
||||
get {
|
||||
return implementor as IPermissionRequestImplementor;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void PermissionRequestHandler(object o, PermissionRequestArgs args);
|
||||
|
||||
public class PermissionRequestArgs : GLib.SignalArgs {
|
||||
public WebKit.IPermissionRequest Request{
|
||||
get {
|
||||
return WebKit.PermissionRequestAdapter.GetObject (Args [0] as GLib.Object);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
165
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Plugin.cs
Normal file
165
GtkSharp/Source/Libs/WebkitGtkSharp/Generated/WebKit/Plugin.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class Plugin : GLib.Object {
|
||||
|
||||
public Plugin (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected Plugin() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_get_type();
|
||||
static d_webkit_plugin_get_type webkit_plugin_get_type = FuncLoader.LoadFunction<d_webkit_plugin_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_plugin_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_get_description(IntPtr raw);
|
||||
static d_webkit_plugin_get_description webkit_plugin_get_description = FuncLoader.LoadFunction<d_webkit_plugin_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_get_description"));
|
||||
|
||||
[Obsolete]
|
||||
public string Description {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_plugin_get_description(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_get_mime_info_list(IntPtr raw);
|
||||
static d_webkit_plugin_get_mime_info_list webkit_plugin_get_mime_info_list = FuncLoader.LoadFunction<d_webkit_plugin_get_mime_info_list>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_get_mime_info_list"));
|
||||
|
||||
[Obsolete]
|
||||
public GLib.List[] MimeInfoList {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_plugin_get_mime_info_list(Handle);
|
||||
GLib.List[] ret = GLib.Marshaller.ListPtrToArray<GLib.List, GLib.List> (raw_ret, false, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_get_name(IntPtr raw);
|
||||
static d_webkit_plugin_get_name webkit_plugin_get_name = FuncLoader.LoadFunction<d_webkit_plugin_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_get_name"));
|
||||
|
||||
[Obsolete]
|
||||
public string Name {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_plugin_get_name(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_get_path(IntPtr raw);
|
||||
static d_webkit_plugin_get_path webkit_plugin_get_path = FuncLoader.LoadFunction<d_webkit_plugin_get_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_get_path"));
|
||||
|
||||
[Obsolete]
|
||||
public string Path {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_plugin_get_path(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static Plugin ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.PluginErrorGType))]
|
||||
public enum PluginError {
|
||||
|
||||
CannotFindPlugin = 200,
|
||||
CannotLoadPlugin = 201,
|
||||
JavaUnavailable = 202,
|
||||
ConnectionCancelled = 203,
|
||||
WillHandleLoad = 204,
|
||||
Failed = 299,
|
||||
}
|
||||
|
||||
internal class PluginErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_plugin_error_get_type();
|
||||
static d_webkit_plugin_error_get_type webkit_plugin_error_get_type = FuncLoader.LoadFunction<d_webkit_plugin_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_plugin_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_plugin_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class PointerLockPermissionRequest : GLib.Object, WebKit.IPermissionRequest {
|
||||
|
||||
public PointerLockPermissionRequest (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected PointerLockPermissionRequest() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_pointer_lock_permission_request_get_type();
|
||||
static d_webkit_pointer_lock_permission_request_get_type webkit_pointer_lock_permission_request_get_type = FuncLoader.LoadFunction<d_webkit_pointer_lock_permission_request_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_pointer_lock_permission_request_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_pointer_lock_permission_request_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_allow(IntPtr raw);
|
||||
static d_webkit_permission_request_allow webkit_permission_request_allow = FuncLoader.LoadFunction<d_webkit_permission_request_allow>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_allow"));
|
||||
|
||||
public void Allow() {
|
||||
webkit_permission_request_allow(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_permission_request_deny(IntPtr raw);
|
||||
static d_webkit_permission_request_deny webkit_permission_request_deny = FuncLoader.LoadFunction<d_webkit_permission_request_deny>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_permission_request_deny"));
|
||||
|
||||
public void Deny() {
|
||||
webkit_permission_request_deny(Handle);
|
||||
}
|
||||
|
||||
|
||||
static PointerLockPermissionRequest ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class PolicyDecision : GLib.Object {
|
||||
|
||||
protected PolicyDecision (IntPtr raw) : base(raw) {}
|
||||
|
||||
protected PolicyDecision() : base(IntPtr.Zero)
|
||||
{
|
||||
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, null
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_policy_decision_get_type();
|
||||
static d_webkit_policy_decision_get_type webkit_policy_decision_get_type = FuncLoader.LoadFunction<d_webkit_policy_decision_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_policy_decision_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_policy_decision_download(IntPtr raw);
|
||||
static d_webkit_policy_decision_download webkit_policy_decision_download = FuncLoader.LoadFunction<d_webkit_policy_decision_download>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_download"));
|
||||
|
||||
public void Download() {
|
||||
webkit_policy_decision_download(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_policy_decision_ignore(IntPtr raw);
|
||||
static d_webkit_policy_decision_ignore webkit_policy_decision_ignore = FuncLoader.LoadFunction<d_webkit_policy_decision_ignore>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_ignore"));
|
||||
|
||||
public void Ignore() {
|
||||
webkit_policy_decision_ignore(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_policy_decision_use(IntPtr raw);
|
||||
static d_webkit_policy_decision_use webkit_policy_decision_use = FuncLoader.LoadFunction<d_webkit_policy_decision_use>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_use"));
|
||||
|
||||
public void Use() {
|
||||
webkit_policy_decision_use(Handle);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void d_webkit_policy_decision_use_with_policies(IntPtr raw, IntPtr policies);
|
||||
static d_webkit_policy_decision_use_with_policies webkit_policy_decision_use_with_policies = FuncLoader.LoadFunction<d_webkit_policy_decision_use_with_policies>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_use_with_policies"));
|
||||
|
||||
public void UseWithPolicies(WebKit.WebsitePolicies policies) {
|
||||
webkit_policy_decision_use_with_policies(Handle, policies == null ? IntPtr.Zero : policies.Handle);
|
||||
}
|
||||
|
||||
|
||||
static PolicyDecision ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.PolicyDecisionTypeGType))]
|
||||
public enum PolicyDecisionType {
|
||||
|
||||
NavigationAction = 0,
|
||||
NewWindowAction = 1,
|
||||
Response = 2,
|
||||
}
|
||||
|
||||
internal class PolicyDecisionTypeGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_policy_decision_type_get_type();
|
||||
static d_webkit_policy_decision_type_get_type webkit_policy_decision_type_get_type = FuncLoader.LoadFunction<d_webkit_policy_decision_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_decision_type_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_policy_decision_type_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#region Autogenerated code
|
||||
[GLib.GType (typeof (WebKit.PolicyErrorGType))]
|
||||
public enum PolicyError {
|
||||
|
||||
CannotShowMimeType = 100,
|
||||
CannotShowUri = 101,
|
||||
FrameLoadInterruptedByPolicyChange = 102,
|
||||
CannotUseRestrictedPort = 103,
|
||||
Failed = 199,
|
||||
}
|
||||
|
||||
internal class PolicyErrorGType {
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_policy_error_get_type();
|
||||
static d_webkit_policy_error_get_type webkit_policy_error_get_type = FuncLoader.LoadFunction<d_webkit_policy_error_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_policy_error_get_type"));
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
return new GLib.GType (webkit_policy_error_get_type ());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace WebKit {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using static GLib.AbiStructExtension;
|
||||
|
||||
#region Autogenerated code
|
||||
public partial class PrintCustomWidget : GLib.Object {
|
||||
|
||||
public PrintCustomWidget (IntPtr raw) : base(raw) {}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_print_custom_widget_new(IntPtr widget, IntPtr title);
|
||||
static d_webkit_print_custom_widget_new webkit_print_custom_widget_new = FuncLoader.LoadFunction<d_webkit_print_custom_widget_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_print_custom_widget_new"));
|
||||
|
||||
public PrintCustomWidget (Gtk.Widget widget, string title) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (PrintCustomWidget)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
if (widget != null) {
|
||||
names.Add ("widget");
|
||||
vals.Add (new GLib.Value (widget));
|
||||
}
|
||||
names.Add ("title");
|
||||
vals.Add (new GLib.Value (title));
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
IntPtr native_title = GLib.Marshaller.StringToPtrGStrdup (title);
|
||||
Raw = webkit_print_custom_widget_new(widget == null ? IntPtr.Zero : widget.Handle, native_title);
|
||||
GLib.Marshaller.Free (native_title);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_print_custom_widget_get_title(IntPtr raw);
|
||||
static d_webkit_print_custom_widget_get_title webkit_print_custom_widget_get_title = FuncLoader.LoadFunction<d_webkit_print_custom_widget_get_title>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_print_custom_widget_get_title"));
|
||||
|
||||
[GLib.Property ("title")]
|
||||
public string Title {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_print_custom_widget_get_title(Handle);
|
||||
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_print_custom_widget_get_widget(IntPtr raw);
|
||||
static d_webkit_print_custom_widget_get_widget webkit_print_custom_widget_get_widget = FuncLoader.LoadFunction<d_webkit_print_custom_widget_get_widget>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_print_custom_widget_get_widget"));
|
||||
|
||||
[GLib.Property ("widget")]
|
||||
public Gtk.Widget Widget {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_print_custom_widget_get_widget(Handle);
|
||||
Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("update")]
|
||||
public event WebKit.UpdateHandler Update {
|
||||
add {
|
||||
this.AddSignalHandler ("update", value, typeof (WebKit.UpdateArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("update", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("apply")]
|
||||
public event System.EventHandler Apply {
|
||||
add {
|
||||
this.AddSignalHandler ("apply", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("apply", value);
|
||||
}
|
||||
}
|
||||
|
||||
static ApplyNativeDelegate Apply_cb_delegate;
|
||||
static ApplyNativeDelegate ApplyVMCallback {
|
||||
get {
|
||||
if (Apply_cb_delegate == null)
|
||||
Apply_cb_delegate = new ApplyNativeDelegate (Apply_cb);
|
||||
return Apply_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideApply (GLib.GType gtype)
|
||||
{
|
||||
OverrideApply (gtype, ApplyVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideApply (GLib.GType gtype, ApplyNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("apply"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void ApplyNativeDelegate (IntPtr inst);
|
||||
|
||||
static void Apply_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
PrintCustomWidget __obj = GLib.Object.GetObject (inst, false) as PrintCustomWidget;
|
||||
__obj.OnApply ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.PrintCustomWidget), ConnectionMethod="OverrideApply")]
|
||||
protected virtual void OnApply ()
|
||||
{
|
||||
InternalApply ();
|
||||
}
|
||||
|
||||
private void InternalApply ()
|
||||
{
|
||||
ApplyNativeDelegate unmanaged = class_abi.BaseOverride<ApplyNativeDelegate>(this.LookupGType(), "apply");
|
||||
if (unmanaged == null) return;
|
||||
|
||||
unmanaged (this.Handle);
|
||||
}
|
||||
|
||||
static UpdateNativeDelegate Update_cb_delegate;
|
||||
static UpdateNativeDelegate UpdateVMCallback {
|
||||
get {
|
||||
if (Update_cb_delegate == null)
|
||||
Update_cb_delegate = new UpdateNativeDelegate (Update_cb);
|
||||
return Update_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideUpdate (GLib.GType gtype)
|
||||
{
|
||||
OverrideUpdate (gtype, UpdateVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideUpdate (GLib.GType gtype, UpdateNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("update"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void UpdateNativeDelegate (IntPtr inst, IntPtr page_setup, IntPtr print_settings);
|
||||
|
||||
static void Update_cb (IntPtr inst, IntPtr page_setup, IntPtr print_settings)
|
||||
{
|
||||
try {
|
||||
PrintCustomWidget __obj = GLib.Object.GetObject (inst, false) as PrintCustomWidget;
|
||||
__obj.OnUpdate (GLib.Object.GetObject(page_setup) as Gtk.PageSetup, GLib.Object.GetObject(print_settings) as Gtk.PrintSettings);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(WebKit.PrintCustomWidget), ConnectionMethod="OverrideUpdate")]
|
||||
protected virtual void OnUpdate (Gtk.PageSetup page_setup, Gtk.PrintSettings print_settings)
|
||||
{
|
||||
InternalUpdate (page_setup, print_settings);
|
||||
}
|
||||
|
||||
private void InternalUpdate (Gtk.PageSetup page_setup, Gtk.PrintSettings print_settings)
|
||||
{
|
||||
UpdateNativeDelegate unmanaged = class_abi.BaseOverride<UpdateNativeDelegate>(this.LookupGType(), "update");
|
||||
if (unmanaged == null) return;
|
||||
|
||||
unmanaged (this.Handle, page_setup == null ? IntPtr.Zero : page_setup.Handle, print_settings == null ? IntPtr.Zero : print_settings.Handle);
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public unsafe new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("apply"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) sizeof( IntPtr ) // apply
|
||||
, null
|
||||
, "update"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("update"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // update
|
||||
, "apply"
|
||||
, "_webkit_reserved0"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved0"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved0
|
||||
, "update"
|
||||
, "_webkit_reserved1"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved1"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved1
|
||||
, "_webkit_reserved0"
|
||||
, "_webkit_reserved2"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved2"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved2
|
||||
, "_webkit_reserved1"
|
||||
, "_webkit_reserved3"
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_webkit_reserved3"
|
||||
, -1
|
||||
, (uint) sizeof( IntPtr ) // _webkit_reserved3
|
||||
, "_webkit_reserved2"
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate IntPtr d_webkit_print_custom_widget_get_type();
|
||||
static d_webkit_print_custom_widget_get_type webkit_print_custom_widget_get_type = FuncLoader.LoadFunction<d_webkit_print_custom_widget_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Webkit), "webkit_print_custom_widget_get_type"));
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = webkit_print_custom_widget_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static PrintCustomWidget ()
|
||||
{
|
||||
GtkSharp.WebkitGtkSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _abi_info = null;
|
||||
static public unsafe new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("priv"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) sizeof( IntPtr ) // priv
|
||||
, null
|
||||
, null
|
||||
, (uint) sizeof(IntPtr)
|
||||
, 0
|
||||
),
|
||||
});
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user