WebKitFrame

WebKitFrame

Functions

Types and Values

struct WebKitFrame

Object Hierarchy

    GObject
    ╰── WebKitFrame

Description

Functions

webkit_frame_is_main_frame ()

gboolean
webkit_frame_is_main_frame (WebKitFrame *frame);

Gets whether frame is the main frame of a WebKitWebPage

Parameters

frame

a WebKitFrame

 

Returns

TRUE if frame is a main frame or FALSE otherwise

Since: 2.2


webkit_frame_get_uri ()

const gchar *
webkit_frame_get_uri (WebKitFrame *frame);

Gets the current active URI of frame .

Parameters

frame

a WebKitFrame

 

Returns

the current active URI of frame or NULL if nothing has been loaded yet.

Since: 2.2


webkit_frame_get_javascript_global_context ()

JSGlobalContextRef
webkit_frame_get_javascript_global_context
                               (WebKitFrame *frame);

webkit_frame_get_javascript_global_context has been deprecated since version 2.22 and should not be used in newly-written code.

Use webkit_frame_get_js_context() instead.

Gets the global JavaScript execution context. Use this function to bridge between the WebKit and JavaScriptCore APIs.

[skip]

Parameters

frame

a WebKitFrame

 

Returns

the global JavaScript context of frame .

[transfer none]

Since: 2.2


webkit_frame_get_javascript_context_for_script_world ()

JSGlobalContextRef
webkit_frame_get_javascript_context_for_script_world
                               (WebKitFrame *frame,
                                WebKitScriptWorld *world);

webkit_frame_get_javascript_context_for_script_world has been deprecated since version 2.22 and should not be used in newly-written code.

Use webkit_frame_get_js_context_for_script_world() instead.

Gets the JavaScript execution context of frame for the given WebKitScriptWorld.

[skip]

Parameters

frame

a WebKitFrame

 

world

a WebKitScriptWorld

 

Returns

the JavaScript context of frame for world .

[transfer none]

Since: 2.2


webkit_frame_get_js_context ()

JSCContext *
webkit_frame_get_js_context (WebKitFrame *frame);

Get the JavaScript execution context of frame . Use this function to bridge between the WebKit and JavaScriptCore APIs.

Parameters

frame

a WebKitFrame

 

Returns

the JSCContext for the JavaScript execution context of frame .

[transfer full]

Since: 2.22


webkit_frame_get_js_context_for_script_world ()

JSCContext *
webkit_frame_get_js_context_for_script_world
                               (WebKitFrame *frame,
                                WebKitScriptWorld *world);

Get the JavaScript execution context of frame for the given WebKitScriptWorld.

Parameters

frame

a WebKitFrame

 

world

a WebKitScriptWorld

 

Returns

the JSCContext for the JavaScript execution context of frame for world .

[transfer full]

Since: 2.22


webkit_frame_get_js_value_for_dom_object ()

JSCValue *
webkit_frame_get_js_value_for_dom_object
                               (WebKitFrame *frame,
                                WebKitDOMObject *dom_object);

Get a JSCValue referencing the given DOM object. The value is created in the JavaScript execution context of frame .

Parameters

frame

a WebKitFrame

 

dom_object

a WebKitDOMObject

 

Returns

the JSCValue referencing dom_object .

[transfer full]

Since: 2.22


webkit_frame_get_js_value_for_dom_object_in_script_world ()

JSCValue *
webkit_frame_get_js_value_for_dom_object_in_script_world
                               (WebKitFrame *frame,
                                WebKitDOMObject *dom_object,
                                WebKitScriptWorld *world);

Get a JSCValue referencing the given DOM object. The value is created in the JavaScript execution context of frame for the given WebKitScriptWorld.

Parameters

frame

a WebKitFrame

 

dom_object

a WebKitDOMObject

 

world

a WebKitScriptWorld

 

Returns

the JSCValue referencing dom_object .

[transfer full]

Since: 2.22

Types and Values

struct WebKitFrame

struct WebKitFrame;