WebKit2GTK+ Reference Manual: WebKitPermissionRequest

## WebKitPermissionRequest WebKitPermissionRequest — A permission request |

## Synopsis

                        WebKitPermissionRequest;
    void                webkit_permission_request_allow     (WebKitPermissionRequest *request);
    void                webkit_permission_request_deny      (WebKitPermissionRequest *request);

## Object Hierarchy

      GInterface
       +----WebKitPermissionRequest

## Prerequisites

WebKitPermissionRequest requires GObject.

## Known Implementations

WebKitPermissionRequest is implemented by WebKitGeolocationPermissionRequest.

## Description

There are situations where an embedder would need to ask the user for permission to do certain types of operations, such as switching to fullscreen mode or reporting the user's location through the standard Geolocation API. In those cases, WebKit will emit a "permission-request" signal with a WebKitPermissionRequest object attached to it.

## Details

### WebKitPermissionRequest

    typedef struct _WebKitPermissionRequest WebKitPermissionRequest;

### webkit_permission_request_allow ()

    void                webkit_permission_request_allow     (WebKitPermissionRequest *request);

Allow the action which triggered this request.

`request` : | a WebKitPermissionRequest

### webkit_permission_request_deny ()

    void                webkit_permission_request_deny      (WebKitPermissionRequest *request);

Deny the action which triggered this request.

`request` : | a WebKitPermissionRequest

## See Also

WebKitWebView