UserMessage

A WebKitUserMessage is a message that can be used for the communication between the UI process and web extensions. A WebKitUserMessage always has a name, and it can also include parameters and UNIX file descriptors. Messages can be sent from a #WebKitWebContext to all #WebKitWebExtension<!-- -->s, from a #WebKitWebExtension to its corresponding #WebKitWebContext, and from a #WebKitWebView to its corresponding #WebKitWebPage (and vice versa). One to one messages can be replied to directly with webkit_user_message_send_reply().

Constructors

this
this(WebKitUserMessage* webKitUserMessage, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string name, Variant parameters)

Create a new #WebKitUserMessage with @name.

this
this(string name, Variant parameters, UnixFDList fdList)

Create a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.

Members

Functions

getFdList
UnixFDList getFdList()

Get the @message list of file descritpor

getName
string getName()

Get the @message name

getParameters
Variant getParameters()

Get the @message parameters

getStruct
void* getStruct()

the main Gtk struct as a void*

getUserMessageStruct
WebKitUserMessage* getUserMessageStruct(bool transferOwnership)

Get the main Gtk struct

sendReply
void sendReply(UserMessage reply)

Send a reply to @message. If @reply is floating, it's consumed. You can only send a reply to a #WebKitUserMessage that has been received.

Static functions

getType
GType getType()

Variables

webKitUserMessage
WebKitUserMessage* webKitUserMessage;

the main Gtk struct

Meta

Since

2.28