1.40 <WebKitUserMessage>

Class: <WebKitUserMessage>

It derives from <GInitiallyUnowned>.

Message that can be sent between the UI process and web process extensions.

A WebKitUserMessage is a message that can be used for the communication between the UI process and web process 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 web process extensions, from a web process extension 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 user-message:send-reply.

Properties

Property: user-message:fd-list self

The UNIX file descriptors of the user message.

Its value is a <GUnixFDList>, or #f.

It can only be set when the object is made, with #:fd-list.

Property: user-message:name self

The name of the user message.

Its value is a string, or #f.

It can only be set when the object is made, with #:name.

Property: user-message:parameters self

The parameters of the user message as a <GVariant>, or #f if the message doesn’t include parameters. Note that only complete types are allowed.

Its value is a <GVariant>, or #f.

It can only be set when the object is made, with #:parameters.

Procedures

Method: user-message:get-fd-list self ⇒ %return
Method: get-fd-list self ⇒ %return

Get the self list of file descritpor.

self

Passed: a <WebKitUserMessage>.

a <WebKitUserMessage>

%return

Returned: a <GUnixFDList>, or #f.

the message list of file descriptors

Method: user-message:get-name self ⇒ %return
Method: get-name self ⇒ %return

Get the self name.

self

Passed: a <WebKitUserMessage>.

a <WebKitUserMessage>

%return

Returned: a string.

the message name

Method: user-message:get-parameters self ⇒ %return
Method: get-parameters self ⇒ %return

Get the self parameters.

self

Passed: a <WebKitUserMessage>.

a <WebKitUserMessage>

%return

Returned: a <GVariant>, or #f.

the message parameters

Procedure: user-message:new name [parameters] ⇒ %return

Create a new <WebKitUserMessage> with name.

name

Passed: a string.

the message name

parameters

Passed, or left out: a <GVariant>, or #f.

the message parameters as a <GVariant>, or #f

%return

Returned: a <WebKitUserMessage>.

the newly created <WebKitUserMessage> object.

Procedure: user-message:new-with-fd-list name [parameters] [fd-list] ⇒ %return

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

name

Passed: a string.

the message name

parameters

Passed, or left out: a <GVariant>, or #f.

the message parameters as a <GVariant>

fd-list

Passed, or left out: a <GUnixFDList>, or #f.

the message file descriptors

%return

Returned: a <WebKitUserMessage>.

the newly created <WebKitUserMessage> object.

Method: user-message:send-reply self reply
Method: send-reply self reply

Send a reply to an user message.

If reply is floating, it’s consumed. You can only send a reply to a <WebKitUserMessage> that has been received.

self

Passed: a <WebKitUserMessage>.

a <WebKitUserMessage>

reply

Passed: a <WebKitUserMessage>.

a <WebKitUserMessage> to send as reply