Class
WebKit2NavigationPolicyDecision
Description [src]
class WebKit2.NavigationPolicyDecision : WebKit2.PolicyDecision {
parent: WebKitPolicyDecision
}
A policy decision for navigation actions.
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.
Instance methods
webkit_navigation_policy_decision_get_frame_name
Gets the value of the WebKitNavigationPolicyDecision:frame-name
property.
webkit_navigation_policy_decision_get_modifiers
Gets the value of the WebKitNavigationPolicyDecision:modifiers
property.
Deprecated since: 2.6
webkit_navigation_policy_decision_get_mouse_button
Gets the value of the WebKitNavigationPolicyDecision:mouse-button
property.
Deprecated since: 2.6
webkit_navigation_policy_decision_get_navigation_action
Gets the value of the WebKitNavigationPolicyDecision:navigation-action
property.
Available since: 2.6
webkit_navigation_policy_decision_get_navigation_type
Gets the value of the WebKitNavigationPolicyDecision:navigation-type
property.
Deprecated since: 2.6
webkit_navigation_policy_decision_get_request
Gets the value of the WebKitNavigationPolicyDecision:request
property.
Deprecated since: 2.6
Methods inherited from WebKitPolicyDecision (4)
webkit_policy_decision_download
Spawn a download from this decision.
webkit_policy_decision_ignore
Ignore the action which triggered this decision. For instance, for a
WebKitResponsePolicyDecision
, this would cancel the request.
webkit_policy_decision_use
Accept the action which triggered this decision.
webkit_policy_decision_use_with_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.
Available since: 2.30
Properties
WebKit2.NavigationPolicyDecision:frame-name
If this navigation request targets a new frame, this property contains
the name of that frame. For example if the decision was triggered by clicking a
link with a target attribute equal to “_blank”, this property will contain the
value of that attribute. In all other cases, this value will be NULL
.
WebKit2.NavigationPolicyDecision:modifiers
If the navigation associated with this policy decision was originally
triggered by a mouse event, this property contains a bitmask of various
GdkModifierType
values describing the modifiers used for that click.
If the navigation was not triggered by a mouse event or no modifiers
were active, the value of this property will be zero.
Deprecated since: 2.6
WebKit2.NavigationPolicyDecision:mouse-button
If the navigation associated with this policy decision was originally triggered by a mouse event, this property contains non-zero button number of the button triggering that event. The button numbers match those from GDK. If the navigation was not triggered by a mouse event, the value of this property will be 0.
Deprecated since: 2.6
WebKit2.NavigationPolicyDecision:navigation-action
The WebKitNavigationAction
that triggered this policy decision.
Available since: 2.6
WebKit2.NavigationPolicyDecision:navigation-type
The type of navigation that triggered this policy decision. This is useful for enacting different policies depending on what type of user action caused the navigation.
Deprecated since: 2.6
WebKit2.NavigationPolicyDecision:request
This property contains the WebKitURIRequest
associated with this navigation.
Deprecated since: 2.6
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 WebKit2NavigationPolicyDecisionClass {
WebKitPolicyDecisionClass parent_class;
void (* _webkit_reserved0) (
void
);
void (* _webkit_reserved1) (
void
);
void (* _webkit_reserved2) (
void
);
void (* _webkit_reserved3) (
void
);
}
Class members
parent_class |
|
No description available. | |
_webkit_reserved0 |
|
No description available. | |
_webkit_reserved1 |
|
No description available. | |
_webkit_reserved2 |
|
No description available. | |
_webkit_reserved3 |
|
No description available. |