NavigationPolicyDecision

WebKitNavigationPolicyDecision represents a policy decision for events associated with navigations. If the value of #WebKitNavigationPolicyDecision:mouse-button is not 0, then the navigation was triggered by a mouse event.

Constructors

this
this(WebKitNavigationPolicyDecision* webKitNavigationPolicyDecision, bool ownedRef)

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

Members

Functions

getFrameName
string getFrameName()

Gets the value of the #WebKitNavigationPolicyDecision:frame-name property.

getModifiers
uint getModifiers()

Gets the value of the #WebKitNavigationPolicyDecision:modifiers property.

getMouseButton
uint getMouseButton()

Gets the value of the #WebKitNavigationPolicyDecision:mouse-button property.

getNavigationAction
NavigationAction getNavigationAction()

Gets the value of the #WebKitNavigationPolicyDecision:navigation-action property.

getNavigationPolicyDecisionStruct
WebKitNavigationPolicyDecision* getNavigationPolicyDecisionStruct(bool transferOwnership)

Get the main Gtk struct

getNavigationType
WebKitNavigationType getNavigationType()

Gets the value of the #WebKitNavigationPolicyDecision:navigation-type property.

getRequest
URIRequest getRequest()

Gets the value of the #WebKitNavigationPolicyDecision:request property.

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

webKitNavigationPolicyDecision
WebKitNavigationPolicyDecision* webKitNavigationPolicyDecision;

the main Gtk struct

Inherited Members

From PolicyDecision

webKitPolicyDecision
WebKitPolicyDecision* webKitPolicyDecision;

the main Gtk struct

getPolicyDecisionStruct
WebKitPolicyDecision* getPolicyDecisionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
download
void download()

Spawn a download from this decision.

ignore
void ignore()

Ignore the action which triggered this decision. For instance, for a #WebKitResponsePolicyDecision, this would cancel the request.

use
void use()

Accept the action which triggered this decision.

useWithPolicies
void useWithPolicies(WebsitePolicies policies)

Accept the navigation action which triggered this decision, and continue with @policies affecting all subsequent loads of resources in the origin associated with the accepted navigation action.

Meta