github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/appviewguestinternal/bindings/import_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build wasm 5 6 package bindings 7 8 import ( 9 "unsafe" 10 11 "github.com/primecitizens/pcz/std/ffi/js" 12 ) 13 14 type ( 15 _ unsafe.Pointer 16 _ js.Ref 17 ) 18 19 //go:wasmimport plat/js/webext/appviewguestinternal has_AttachFrame 20 //go:noescape 21 func HasFuncAttachFrame() js.Ref 22 23 //go:wasmimport plat/js/webext/appviewguestinternal func_AttachFrame 24 //go:noescape 25 func FuncAttachFrame(fn unsafe.Pointer) 26 27 //go:wasmimport plat/js/webext/appviewguestinternal call_AttachFrame 28 //go:noescape 29 func CallAttachFrame( 30 retPtr unsafe.Pointer, 31 url js.Ref, 32 guestInstanceId float64) 33 34 //go:wasmimport plat/js/webext/appviewguestinternal try_AttachFrame 35 //go:noescape 36 func TryAttachFrame( 37 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 38 url js.Ref, 39 guestInstanceId float64) (ok js.Ref) 40 41 //go:wasmimport plat/js/webext/appviewguestinternal has_DenyRequest 42 //go:noescape 43 func HasFuncDenyRequest() js.Ref 44 45 //go:wasmimport plat/js/webext/appviewguestinternal func_DenyRequest 46 //go:noescape 47 func FuncDenyRequest(fn unsafe.Pointer) 48 49 //go:wasmimport plat/js/webext/appviewguestinternal call_DenyRequest 50 //go:noescape 51 func CallDenyRequest( 52 retPtr unsafe.Pointer, 53 guestInstanceId float64) 54 55 //go:wasmimport plat/js/webext/appviewguestinternal try_DenyRequest 56 //go:noescape 57 func TryDenyRequest( 58 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 59 guestInstanceId float64) (ok js.Ref)