github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/dom/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/dom has_OpenOrClosedShadowRoot 20 //go:noescape 21 func HasFuncOpenOrClosedShadowRoot() js.Ref 22 23 //go:wasmimport plat/js/webext/dom func_OpenOrClosedShadowRoot 24 //go:noescape 25 func FuncOpenOrClosedShadowRoot(fn unsafe.Pointer) 26 27 //go:wasmimport plat/js/webext/dom call_OpenOrClosedShadowRoot 28 //go:noescape 29 func CallOpenOrClosedShadowRoot( 30 retPtr unsafe.Pointer, 31 element js.Ref) 32 33 //go:wasmimport plat/js/webext/dom try_OpenOrClosedShadowRoot 34 //go:noescape 35 func TryOpenOrClosedShadowRoot( 36 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 37 element js.Ref) (ok js.Ref)