pub trait NavigationPolicyDecisionExt: 'static {
fn frame_name(&self) -> Option<GString>;
fn modifiers(&self) -> u32;
fn mouse_button(&self) -> u32;
fn navigation_action(&self) -> Option<NavigationAction>;
fn navigation_type(&self) -> NavigationType;
fn request(&self) -> Option<URIRequest>;
fn connect_frame_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_modifiers_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_mouse_button_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_navigation_action_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_navigation_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_request_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn frame_name(&self) -> Option<GString>
fn frame_name(&self) -> Option<GString>
sourcefn modifiers(&self) -> u32
fn modifiers(&self) -> u32
Gets the value of the property::NavigationPolicyDecision::modifiers
property.
Deprecated since 2.6
Use navigation_action()
instead.
Returns
The modifiers active if this decision was triggered by a mouse event
Gets the value of the property::NavigationPolicyDecision::mouse-button
property.
Deprecated since 2.6
Use navigation_action()
instead.
Returns
The mouse button used if this decision was triggered by a mouse event or 0 otherwise
v2_6
only.Gets the value of the property::NavigationPolicyDecision::navigation-action
property.
Returns
The NavigationAction
triggering this policy decision.
Gets the value of the property::NavigationPolicyDecision::navigation-type
property.
Deprecated since 2.6
Use navigation_action()
instead.
Returns
The type of navigation triggering this policy decision.
sourcefn request(&self) -> Option<URIRequest>
fn request(&self) -> Option<URIRequest>
Gets the value of the property::NavigationPolicyDecision::request
property.
Deprecated since 2.6
Use navigation_action()
instead.
Returns
The URI request that is associated with this navigation
fn connect_frame_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_modifiers_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_modifiers_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_6
only.