github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/settingsprivate/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/settingsprivate constof_ControlledBy 20 //go:noescape 21 func ConstOfControlledBy(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/settingsprivate constof_Enforcement 24 //go:noescape 25 func ConstOfEnforcement(str js.Ref) uint32 26 27 //go:wasmimport plat/js/webext/settingsprivate constof_PrefType 28 //go:noescape 29 func ConstOfPrefType(str js.Ref) uint32 30 31 //go:wasmimport plat/js/webext/settingsprivate store_PrefObject 32 //go:noescape 33 func PrefObjectJSStore( 34 ptr unsafe.Pointer, ref js.Ref) 35 36 //go:wasmimport plat/js/webext/settingsprivate load_PrefObject 37 //go:noescape 38 func PrefObjectJSLoad( 39 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 40 41 //go:wasmimport plat/js/webext/settingsprivate has_GetAllPrefs 42 //go:noescape 43 func HasFuncGetAllPrefs() js.Ref 44 45 //go:wasmimport plat/js/webext/settingsprivate func_GetAllPrefs 46 //go:noescape 47 func FuncGetAllPrefs(fn unsafe.Pointer) 48 49 //go:wasmimport plat/js/webext/settingsprivate call_GetAllPrefs 50 //go:noescape 51 func CallGetAllPrefs( 52 retPtr unsafe.Pointer) 53 54 //go:wasmimport plat/js/webext/settingsprivate try_GetAllPrefs 55 //go:noescape 56 func TryGetAllPrefs( 57 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 58 59 //go:wasmimport plat/js/webext/settingsprivate has_GetDefaultZoom 60 //go:noescape 61 func HasFuncGetDefaultZoom() js.Ref 62 63 //go:wasmimport plat/js/webext/settingsprivate func_GetDefaultZoom 64 //go:noescape 65 func FuncGetDefaultZoom(fn unsafe.Pointer) 66 67 //go:wasmimport plat/js/webext/settingsprivate call_GetDefaultZoom 68 //go:noescape 69 func CallGetDefaultZoom( 70 retPtr unsafe.Pointer) 71 72 //go:wasmimport plat/js/webext/settingsprivate try_GetDefaultZoom 73 //go:noescape 74 func TryGetDefaultZoom( 75 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 76 77 //go:wasmimport plat/js/webext/settingsprivate has_GetPref 78 //go:noescape 79 func HasFuncGetPref() js.Ref 80 81 //go:wasmimport plat/js/webext/settingsprivate func_GetPref 82 //go:noescape 83 func FuncGetPref(fn unsafe.Pointer) 84 85 //go:wasmimport plat/js/webext/settingsprivate call_GetPref 86 //go:noescape 87 func CallGetPref( 88 retPtr unsafe.Pointer, 89 name js.Ref) 90 91 //go:wasmimport plat/js/webext/settingsprivate try_GetPref 92 //go:noescape 93 func TryGetPref( 94 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 95 name js.Ref) (ok js.Ref) 96 97 //go:wasmimport plat/js/webext/settingsprivate has_OnPrefsChanged 98 //go:noescape 99 func HasFuncOnPrefsChanged() js.Ref 100 101 //go:wasmimport plat/js/webext/settingsprivate func_OnPrefsChanged 102 //go:noescape 103 func FuncOnPrefsChanged(fn unsafe.Pointer) 104 105 //go:wasmimport plat/js/webext/settingsprivate call_OnPrefsChanged 106 //go:noescape 107 func CallOnPrefsChanged( 108 retPtr unsafe.Pointer, 109 callback js.Ref) 110 111 //go:wasmimport plat/js/webext/settingsprivate try_OnPrefsChanged 112 //go:noescape 113 func TryOnPrefsChanged( 114 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 115 callback js.Ref) (ok js.Ref) 116 117 //go:wasmimport plat/js/webext/settingsprivate has_OffPrefsChanged 118 //go:noescape 119 func HasFuncOffPrefsChanged() js.Ref 120 121 //go:wasmimport plat/js/webext/settingsprivate func_OffPrefsChanged 122 //go:noescape 123 func FuncOffPrefsChanged(fn unsafe.Pointer) 124 125 //go:wasmimport plat/js/webext/settingsprivate call_OffPrefsChanged 126 //go:noescape 127 func CallOffPrefsChanged( 128 retPtr unsafe.Pointer, 129 callback js.Ref) 130 131 //go:wasmimport plat/js/webext/settingsprivate try_OffPrefsChanged 132 //go:noescape 133 func TryOffPrefsChanged( 134 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 135 callback js.Ref) (ok js.Ref) 136 137 //go:wasmimport plat/js/webext/settingsprivate has_HasOnPrefsChanged 138 //go:noescape 139 func HasFuncHasOnPrefsChanged() js.Ref 140 141 //go:wasmimport plat/js/webext/settingsprivate func_HasOnPrefsChanged 142 //go:noescape 143 func FuncHasOnPrefsChanged(fn unsafe.Pointer) 144 145 //go:wasmimport plat/js/webext/settingsprivate call_HasOnPrefsChanged 146 //go:noescape 147 func CallHasOnPrefsChanged( 148 retPtr unsafe.Pointer, 149 callback js.Ref) 150 151 //go:wasmimport plat/js/webext/settingsprivate try_HasOnPrefsChanged 152 //go:noescape 153 func TryHasOnPrefsChanged( 154 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 155 callback js.Ref) (ok js.Ref) 156 157 //go:wasmimport plat/js/webext/settingsprivate has_SetDefaultZoom 158 //go:noescape 159 func HasFuncSetDefaultZoom() js.Ref 160 161 //go:wasmimport plat/js/webext/settingsprivate func_SetDefaultZoom 162 //go:noescape 163 func FuncSetDefaultZoom(fn unsafe.Pointer) 164 165 //go:wasmimport plat/js/webext/settingsprivate call_SetDefaultZoom 166 //go:noescape 167 func CallSetDefaultZoom( 168 retPtr unsafe.Pointer, 169 zoom float64) 170 171 //go:wasmimport plat/js/webext/settingsprivate try_SetDefaultZoom 172 //go:noescape 173 func TrySetDefaultZoom( 174 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 175 zoom float64) (ok js.Ref) 176 177 //go:wasmimport plat/js/webext/settingsprivate has_SetPref 178 //go:noescape 179 func HasFuncSetPref() js.Ref 180 181 //go:wasmimport plat/js/webext/settingsprivate func_SetPref 182 //go:noescape 183 func FuncSetPref(fn unsafe.Pointer) 184 185 //go:wasmimport plat/js/webext/settingsprivate call_SetPref 186 //go:noescape 187 func CallSetPref( 188 retPtr unsafe.Pointer, 189 name js.Ref, 190 value js.Ref, 191 pageId js.Ref) 192 193 //go:wasmimport plat/js/webext/settingsprivate try_SetPref 194 //go:noescape 195 func TrySetPref( 196 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 197 name js.Ref, 198 value js.Ref, 199 pageId js.Ref) (ok js.Ref)