gi-webkit-6.0.2: WebKit bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit.Structs.PermissionStateQuery

Description

This query represents a user's choice to allow or deny access to "powerful features" of the platform, as specified in the <https://w3c.github.io/permissions/ Permissions W3C Specification>.

When signalled by the WebView through the query-permission-state signal, the application has to eventually respond, via webkit_permission_state_query_finish(), whether it grants, denies or requests a dedicated permission prompt for the given query.

When a PermissionStateQuery is not handled by the user, the user-agent is instructed to prompt the user for the given permission.

Synopsis

Exported types

newtype PermissionStateQuery Source #

Memory-managed wrapper type.

Constructors

PermissionStateQuery (ManagedPtr PermissionStateQuery) 

Instances

Instances details
Eq PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

GBoxed PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

ManagedPtrNewtype PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

TypedObject PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

Methods

glibType :: IO GType

HasParentTypes PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

IsGValue (Maybe PermissionStateQuery) Source #

Convert PermissionStateQuery to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

type ParentTypes PermissionStateQuery Source # 
Instance details

Defined in GI.WebKit.Structs.PermissionStateQuery

type ParentTypes PermissionStateQuery = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

finish, ref, unref.

Getters

getName, getSecurityOrigin.

Setters

None.

finish

permissionStateQueryFinish Source #

Notify the web-engine of the selected permission state for the given query. This function should only be called as a response to the WebKitWebView::query-permission-state signal.

Since: 2.40

getName

permissionStateQueryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PermissionStateQuery

query: a PermissionStateQuery

-> m Text

Returns: the permission name for query

Get the permission name for which access is being queried.

Since: 2.40

getSecurityOrigin

permissionStateQueryGetSecurityOrigin Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PermissionStateQuery

query: a PermissionStateQuery

-> m SecurityOrigin

Returns: A SecurityOrigin representing the origin from which the query was emitted.

Get the permission origin for which access is being queried.

Since: 2.40

ref

permissionStateQueryRef Source #

Atomically increments the reference count of query by one.

This function is MT-safe and may be called from any thread.

Since: 2.40

unref

permissionStateQueryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PermissionStateQuery

query: a PermissionStateQuery

-> m () 

Atomically decrements the reference count of query by one.

If the reference count drops to 0, all memory allocated by PermissionStateQuery is released. This function is MT-safe and may be called from any thread.

Since: 2.40