WebKit2.NavigationPolicyDecision¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|
||
r |
|
||
r |
|
||
r |
|||
r |
|
||
r |
|
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.NavigationPolicyDecision(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A policy decision for navigation actions.
WebKit2.NavigationPolicyDecision
represents a policy decision for events associated with navigations. If the value ofWebKit2.NavigationPolicyDecision
:mouse-button
is not 0, then the navigation was triggered by a mouse event.- get_frame_name()¶
-
Gets the value of the
WebKit2.NavigationPolicyDecision
:frame-name
property.Deprecated since version 2.40: Use
WebKit2.NavigationPolicyDecision.get_navigation_action
() instead.
- get_modifiers()¶
- Returns:
The modifiers active if this decision was triggered by a mouse event
- Return type:
Gets the value of the
WebKit2.NavigationPolicyDecision
:modifiers
property.Deprecated since version 2.6: Use
WebKit2.NavigationPolicyDecision.get_navigation_action
() instead.
- get_mouse_button()¶
- Returns:
The mouse button used if this decision was triggered by a mouse event or 0 otherwise
- Return type:
Gets the value of the
WebKit2.NavigationPolicyDecision
:mouse-button
property.Deprecated since version 2.6: Use
WebKit2.NavigationPolicyDecision.get_navigation_action
() instead.
- get_navigation_action()¶
- Returns:
The
WebKit2.NavigationAction
triggering this policy decision.- Return type:
Gets the value of the
WebKit2.NavigationPolicyDecision
:navigation-action
property.New in version 2.6.
- get_navigation_type()¶
- Returns:
The type of navigation triggering this policy decision.
- Return type:
Gets the value of the
WebKit2.NavigationPolicyDecision
:navigation-type
property.Deprecated since version 2.6: Use
WebKit2.NavigationPolicyDecision.get_navigation_action
() instead.
- get_request()¶
- Returns:
The URI request that is associated with this navigation
- Return type:
Gets the value of the
WebKit2.NavigationPolicyDecision
:request
property.Deprecated since version 2.6: Use
WebKit2.NavigationPolicyDecision.get_navigation_action
() instead.
Property Details¶
- WebKit2.NavigationPolicyDecision.props.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
None
.Deprecated since version 2.40: Use
WebKit2.NavigationPolicyDecision
:navigation-action
instead
- WebKit2.NavigationPolicyDecision.props.modifiers¶
-
If the navigation associated with this policy decision was originally triggered by a mouse event, this property contains a bitmask of various
Gdk.ModifierType
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 version 2.6: Use
WebKit2.NavigationPolicyDecision
:navigation-action
instead
- WebKit2.NavigationPolicyDecision.props.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 version 2.6: Use
WebKit2.NavigationPolicyDecision
:navigation-action
instead
- WebKit2.NavigationPolicyDecision.props.navigation_action¶
- Name:
navigation-action
- Type:
- Default Value:
- Flags:
The
WebKit2.NavigationAction
that triggered this policy decision.New in version 2.6.
- WebKit2.NavigationPolicyDecision.props.navigation_type¶
- Name:
navigation-type
- Type:
- Default Value:
- Flags:
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 version 2.6: Use
WebKit2.NavigationPolicyDecision
:navigation-action
instead
- WebKit2.NavigationPolicyDecision.props.request¶
- Name:
request
- Type:
- Default Value:
- Flags:
This property contains the
WebKit2.URIRequest
associated with this navigation.Deprecated since version 2.6: Use
WebKit2.NavigationPolicyDecision
:navigation-action
instead