Class

WPEWebKitUserMessage

Description [src]

class WPEWebKit.UserMessage : GObject.InitiallyUnowned {
  parent: GInitiallyUnowned
}

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

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 WebKitWebExtensions, 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().

Available since:2.28

Hierarchy

hierarchy this WebKitUserMessage ancestor_0 GInitiallyUnowned ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Constructors

webkit_user_message_new

Create a new WebKitUserMessage with name.

Available since: 2.28

webkit_user_message_new_with_fd_list

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

Available since: 2.28

Instance methods

webkit_user_message_get_fd_list

Get the message list of file descritpor.

Available since: 2.28

webkit_user_message_get_name

Get the message name.

Available since: 2.28

webkit_user_message_get_parameters

Get the message parameters.

Available since: 2.28

webkit_user_message_send_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.

Available since: 2.28

Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Properties

WPEWebKit.UserMessage:fd-list

The UNIX file descriptors of the user message.

Available since: 2.28

WPEWebKit.UserMessage:name

The name of the user message.

Available since: 2.28

WPEWebKit.UserMessage:parameters

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

Available since: 2.28

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WPEWebKitUserMessageClass {
  GInitiallyUnownedClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
Class members
parent_class
GInitiallyUnownedClass
  No description available.
_webkit_reserved0
void (* _webkit_reserved0) (
void
  )
  No description available.
_webkit_reserved1
void (* _webkit_reserved1) (
void
  )
  No description available.
_webkit_reserved2
void (* _webkit_reserved2) (
void
  )
  No description available.
_webkit_reserved3
void (* _webkit_reserved3) (
void
  )
  No description available.