Package org.gnome.webkit.wpe
Interface ScriptWorld.WindowObjectClearedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
ScriptWorld
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ScriptWorld.WindowObjectClearedCallback
extends FunctionPointer
Functional interface declaration of the
WindowObjectClearedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Emitted when the JavaScript window object in aWebKitScriptWorld
has been cleared.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceScriptWorld, MemorySegment page, MemorySegment frame) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted when the JavaScript window object in aWebKitScriptWorld
has been cleared. This is the preferred place to set custom properties on the window object using the JavaScriptCore API. You can get the window object offrame
from the JavaScript execution context ofworld
that is returned by webkit_frame_get_js_context_for_script_world(). -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.wpe.WebPage, org.gnome.webkit.wpe.Frame)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-