Next: <WebKitNetworkProxySettings>, Previous: <WebKitMemoryPressureSettings>, Up: Structures   [Index]


3.10 <WebKitNavigationAction> ¶

Structure: <WebKitNavigationAction> ¶

Provides details about interaction resulting in a resource load.

Procedures ¶

Method: navigation-action:copy self ⇒ %return ¶
Method: copy self ⇒ %return ¶

Make a copy of self.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a <WebKitNavigationAction>.

A copy of passed in <WebKitNavigationAction>

Method: navigation-action:free self ¶
Method: free self ¶

Free the <WebKitNavigationAction>

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

Method: navigation-action:get-frame-name self ⇒ %return ¶
Method: get-frame-name self ⇒ %return ¶

Gets the self target frame name. For example if navigation was triggered by clicking a link with a target attribute equal to "_blank", this will return the value of that attribute. In all other cases this function will return #f.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a string, or #f.

The name of the new frame this navigation action targets or #f

Method: navigation-action:get-modifiers self ⇒ %return ¶
Method: get-modifiers self ⇒ %return ¶

Return the modifier keys.

Return a bitmask of <GdkModifierType> values describing the modifier keys that were in effect when the navigation was requested

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: an unsigned 32-bit integer.

the modifier keys

Method: navigation-action:get-mouse-button self ⇒ %return ¶
Method: get-mouse-button self ⇒ %return ¶

Return the number of the mouse button that triggered the navigation.

Return the number of the mouse button that triggered the navigation, or 0 if the navigation was not started by a mouse event.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: an unsigned 32-bit integer.

the mouse button number or 0

Method: navigation-action:get-navigation-type self ⇒ %return ¶
Method: get-navigation-type self ⇒ %return ¶

Return the type of action that triggered the navigation.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a <WebKitNavigationType>.

a <WebKitNavigationType>

Method: navigation-action:get-request self ⇒ %return ¶
Method: get-request self ⇒ %return ¶

Return the <WebKitURIRequest> associated with the navigation action.

Modifications to the returned object are not taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a navigation action should be taken or not. To modify requests before they are sent over the network the "send-request" signal can be used instead.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a <WebKitURIRequest>.

a <WebKitURIRequest>

Method: navigation-action:is-redirect? self ⇒ %return ¶
Method: is-redirect? self ⇒ %return ¶

Returns whether the self was redirected.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a boolean.

#t if the original navigation was redirected, #f otherwise.

Method: navigation-action:is-user-gesture? self ⇒ %return ¶
Method: is-user-gesture? self ⇒ %return ¶

Return whether the navigation was triggered by a user gesture like a mouse click.

self

Passed: a <WebKitNavigationAction>.

a <WebKitNavigationAction>

%return

Returned: a boolean.

whether navigation action is a user gesture


Next: <WebKitNetworkProxySettings>, Previous: <WebKitMemoryPressureSettings>, Up: Structures   [Index]