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 TypeMethodDescriptionvoidrun()Emitted afterWebKitWebView::ready-to-show on the newly createdWebKitWebViewwhen JavaScript code callswindow.showModalDialog .default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment)method.default voidupcall(MemorySegment sourceWebView) Theupcallmethod is called from native code.
-
Method Details
-
run
void run()Emitted afterWebKitWebView::ready-to-show on the newly createdWebKitWebViewwhen JavaScript code callswindow.showModalDialog . 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 parentWebKitWebViewuntil the new dialog is closed. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun()is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-