Package org.gnome.webkit
Interface WebView.RunAsModalCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebView
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
RunAsModalCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Emitted afterWebKitWebView
::ready-to-show on the newly createdWebKitWebView
when JavaScript code calls <function>window.showModalDialog</function>.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceWebView) Theupcall
method is called from native code.
-
Method Details
-
run
void run()Emitted afterWebKitWebView
::ready-to-show on the newly createdWebKitWebView
when JavaScript code calls <function>window.showModalDialog</function>. The purpose of this signal is to allow the client application to prepare the new view to behave as modal. Once the signal is emitted a new main loop will be run to block user interaction in the parentWebKitWebView
until the new dialog is closed. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun()
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-