github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/declarativecontent/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/declarativecontent constof_PageStateMatcherInstanceType 20 //go:noescape 21 func ConstOfPageStateMatcherInstanceType(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/declarativecontent store_PageStateMatcher 24 //go:noescape 25 func PageStateMatcherJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/declarativecontent load_PageStateMatcher 29 //go:noescape 30 func PageStateMatcherJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/declarativecontent constof_RequestContentScriptInstanceType 34 //go:noescape 35 func ConstOfRequestContentScriptInstanceType(str js.Ref) uint32 36 37 //go:wasmimport plat/js/webext/declarativecontent store_RequestContentScript 38 //go:noescape 39 func RequestContentScriptJSStore( 40 ptr unsafe.Pointer, ref js.Ref) 41 42 //go:wasmimport plat/js/webext/declarativecontent load_RequestContentScript 43 //go:noescape 44 func RequestContentScriptJSLoad( 45 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 46 47 //go:wasmimport plat/js/webext/declarativecontent constof_SetIconInstanceType 48 //go:noescape 49 func ConstOfSetIconInstanceType(str js.Ref) uint32 50 51 //go:wasmimport plat/js/webext/declarativecontent store_SetIcon 52 //go:noescape 53 func SetIconJSStore( 54 ptr unsafe.Pointer, ref js.Ref) 55 56 //go:wasmimport plat/js/webext/declarativecontent load_SetIcon 57 //go:noescape 58 func SetIconJSLoad( 59 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 60 61 //go:wasmimport plat/js/webext/declarativecontent constof_ShowActionInstanceType 62 //go:noescape 63 func ConstOfShowActionInstanceType(str js.Ref) uint32 64 65 //go:wasmimport plat/js/webext/declarativecontent store_ShowAction 66 //go:noescape 67 func ShowActionJSStore( 68 ptr unsafe.Pointer, ref js.Ref) 69 70 //go:wasmimport plat/js/webext/declarativecontent load_ShowAction 71 //go:noescape 72 func ShowActionJSLoad( 73 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 74 75 //go:wasmimport plat/js/webext/declarativecontent constof_ShowPageActionInstanceType 76 //go:noescape 77 func ConstOfShowPageActionInstanceType(str js.Ref) uint32 78 79 //go:wasmimport plat/js/webext/declarativecontent store_ShowPageAction 80 //go:noescape 81 func ShowPageActionJSStore( 82 ptr unsafe.Pointer, ref js.Ref) 83 84 //go:wasmimport plat/js/webext/declarativecontent load_ShowPageAction 85 //go:noescape 86 func ShowPageActionJSLoad( 87 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 88 89 //go:wasmimport plat/js/webext/declarativecontent has_OnPageChanged 90 //go:noescape 91 func HasFuncOnPageChanged() js.Ref 92 93 //go:wasmimport plat/js/webext/declarativecontent func_OnPageChanged 94 //go:noescape 95 func FuncOnPageChanged(fn unsafe.Pointer) 96 97 //go:wasmimport plat/js/webext/declarativecontent call_OnPageChanged 98 //go:noescape 99 func CallOnPageChanged( 100 retPtr unsafe.Pointer, 101 callback js.Ref) 102 103 //go:wasmimport plat/js/webext/declarativecontent try_OnPageChanged 104 //go:noescape 105 func TryOnPageChanged( 106 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 107 callback js.Ref) (ok js.Ref) 108 109 //go:wasmimport plat/js/webext/declarativecontent has_OffPageChanged 110 //go:noescape 111 func HasFuncOffPageChanged() js.Ref 112 113 //go:wasmimport plat/js/webext/declarativecontent func_OffPageChanged 114 //go:noescape 115 func FuncOffPageChanged(fn unsafe.Pointer) 116 117 //go:wasmimport plat/js/webext/declarativecontent call_OffPageChanged 118 //go:noescape 119 func CallOffPageChanged( 120 retPtr unsafe.Pointer, 121 callback js.Ref) 122 123 //go:wasmimport plat/js/webext/declarativecontent try_OffPageChanged 124 //go:noescape 125 func TryOffPageChanged( 126 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 127 callback js.Ref) (ok js.Ref) 128 129 //go:wasmimport plat/js/webext/declarativecontent has_HasOnPageChanged 130 //go:noescape 131 func HasFuncHasOnPageChanged() js.Ref 132 133 //go:wasmimport plat/js/webext/declarativecontent func_HasOnPageChanged 134 //go:noescape 135 func FuncHasOnPageChanged(fn unsafe.Pointer) 136 137 //go:wasmimport plat/js/webext/declarativecontent call_HasOnPageChanged 138 //go:noescape 139 func CallHasOnPageChanged( 140 retPtr unsafe.Pointer, 141 callback js.Ref) 142 143 //go:wasmimport plat/js/webext/declarativecontent try_HasOnPageChanged 144 //go:noescape 145 func TryHasOnPageChanged( 146 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 147 callback js.Ref) (ok js.Ref)