github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/omnibox/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/omnibox constof_DescriptionStyleType 20 //go:noescape 21 func ConstOfDescriptionStyleType(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/omnibox store_MatchClassification 24 //go:noescape 25 func MatchClassificationJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/omnibox load_MatchClassification 29 //go:noescape 30 func MatchClassificationJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/omnibox store_DefaultSuggestResult 34 //go:noescape 35 func DefaultSuggestResultJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/omnibox load_DefaultSuggestResult 39 //go:noescape 40 func DefaultSuggestResultJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/omnibox store_SuggestResult 44 //go:noescape 45 func SuggestResultJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/omnibox load_SuggestResult 49 //go:noescape 50 func SuggestResultJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/omnibox constof_OnInputEnteredDisposition 54 //go:noescape 55 func ConstOfOnInputEnteredDisposition(str js.Ref) uint32 56 57 //go:wasmimport plat/js/webext/omnibox has_OnDeleteSuggestion 58 //go:noescape 59 func HasFuncOnDeleteSuggestion() js.Ref 60 61 //go:wasmimport plat/js/webext/omnibox func_OnDeleteSuggestion 62 //go:noescape 63 func FuncOnDeleteSuggestion(fn unsafe.Pointer) 64 65 //go:wasmimport plat/js/webext/omnibox call_OnDeleteSuggestion 66 //go:noescape 67 func CallOnDeleteSuggestion( 68 retPtr unsafe.Pointer, 69 callback js.Ref) 70 71 //go:wasmimport plat/js/webext/omnibox try_OnDeleteSuggestion 72 //go:noescape 73 func TryOnDeleteSuggestion( 74 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 75 callback js.Ref) (ok js.Ref) 76 77 //go:wasmimport plat/js/webext/omnibox has_OffDeleteSuggestion 78 //go:noescape 79 func HasFuncOffDeleteSuggestion() js.Ref 80 81 //go:wasmimport plat/js/webext/omnibox func_OffDeleteSuggestion 82 //go:noescape 83 func FuncOffDeleteSuggestion(fn unsafe.Pointer) 84 85 //go:wasmimport plat/js/webext/omnibox call_OffDeleteSuggestion 86 //go:noescape 87 func CallOffDeleteSuggestion( 88 retPtr unsafe.Pointer, 89 callback js.Ref) 90 91 //go:wasmimport plat/js/webext/omnibox try_OffDeleteSuggestion 92 //go:noescape 93 func TryOffDeleteSuggestion( 94 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 95 callback js.Ref) (ok js.Ref) 96 97 //go:wasmimport plat/js/webext/omnibox has_HasOnDeleteSuggestion 98 //go:noescape 99 func HasFuncHasOnDeleteSuggestion() js.Ref 100 101 //go:wasmimport plat/js/webext/omnibox func_HasOnDeleteSuggestion 102 //go:noescape 103 func FuncHasOnDeleteSuggestion(fn unsafe.Pointer) 104 105 //go:wasmimport plat/js/webext/omnibox call_HasOnDeleteSuggestion 106 //go:noescape 107 func CallHasOnDeleteSuggestion( 108 retPtr unsafe.Pointer, 109 callback js.Ref) 110 111 //go:wasmimport plat/js/webext/omnibox try_HasOnDeleteSuggestion 112 //go:noescape 113 func TryHasOnDeleteSuggestion( 114 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 115 callback js.Ref) (ok js.Ref) 116 117 //go:wasmimport plat/js/webext/omnibox has_OnInputCancelled 118 //go:noescape 119 func HasFuncOnInputCancelled() js.Ref 120 121 //go:wasmimport plat/js/webext/omnibox func_OnInputCancelled 122 //go:noescape 123 func FuncOnInputCancelled(fn unsafe.Pointer) 124 125 //go:wasmimport plat/js/webext/omnibox call_OnInputCancelled 126 //go:noescape 127 func CallOnInputCancelled( 128 retPtr unsafe.Pointer, 129 callback js.Ref) 130 131 //go:wasmimport plat/js/webext/omnibox try_OnInputCancelled 132 //go:noescape 133 func TryOnInputCancelled( 134 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 135 callback js.Ref) (ok js.Ref) 136 137 //go:wasmimport plat/js/webext/omnibox has_OffInputCancelled 138 //go:noescape 139 func HasFuncOffInputCancelled() js.Ref 140 141 //go:wasmimport plat/js/webext/omnibox func_OffInputCancelled 142 //go:noescape 143 func FuncOffInputCancelled(fn unsafe.Pointer) 144 145 //go:wasmimport plat/js/webext/omnibox call_OffInputCancelled 146 //go:noescape 147 func CallOffInputCancelled( 148 retPtr unsafe.Pointer, 149 callback js.Ref) 150 151 //go:wasmimport plat/js/webext/omnibox try_OffInputCancelled 152 //go:noescape 153 func TryOffInputCancelled( 154 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 155 callback js.Ref) (ok js.Ref) 156 157 //go:wasmimport plat/js/webext/omnibox has_HasOnInputCancelled 158 //go:noescape 159 func HasFuncHasOnInputCancelled() js.Ref 160 161 //go:wasmimport plat/js/webext/omnibox func_HasOnInputCancelled 162 //go:noescape 163 func FuncHasOnInputCancelled(fn unsafe.Pointer) 164 165 //go:wasmimport plat/js/webext/omnibox call_HasOnInputCancelled 166 //go:noescape 167 func CallHasOnInputCancelled( 168 retPtr unsafe.Pointer, 169 callback js.Ref) 170 171 //go:wasmimport plat/js/webext/omnibox try_HasOnInputCancelled 172 //go:noescape 173 func TryHasOnInputCancelled( 174 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 175 callback js.Ref) (ok js.Ref) 176 177 //go:wasmimport plat/js/webext/omnibox has_OnInputChanged 178 //go:noescape 179 func HasFuncOnInputChanged() js.Ref 180 181 //go:wasmimport plat/js/webext/omnibox func_OnInputChanged 182 //go:noescape 183 func FuncOnInputChanged(fn unsafe.Pointer) 184 185 //go:wasmimport plat/js/webext/omnibox call_OnInputChanged 186 //go:noescape 187 func CallOnInputChanged( 188 retPtr unsafe.Pointer, 189 callback js.Ref) 190 191 //go:wasmimport plat/js/webext/omnibox try_OnInputChanged 192 //go:noescape 193 func TryOnInputChanged( 194 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 195 callback js.Ref) (ok js.Ref) 196 197 //go:wasmimport plat/js/webext/omnibox has_OffInputChanged 198 //go:noescape 199 func HasFuncOffInputChanged() js.Ref 200 201 //go:wasmimport plat/js/webext/omnibox func_OffInputChanged 202 //go:noescape 203 func FuncOffInputChanged(fn unsafe.Pointer) 204 205 //go:wasmimport plat/js/webext/omnibox call_OffInputChanged 206 //go:noescape 207 func CallOffInputChanged( 208 retPtr unsafe.Pointer, 209 callback js.Ref) 210 211 //go:wasmimport plat/js/webext/omnibox try_OffInputChanged 212 //go:noescape 213 func TryOffInputChanged( 214 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 215 callback js.Ref) (ok js.Ref) 216 217 //go:wasmimport plat/js/webext/omnibox has_HasOnInputChanged 218 //go:noescape 219 func HasFuncHasOnInputChanged() js.Ref 220 221 //go:wasmimport plat/js/webext/omnibox func_HasOnInputChanged 222 //go:noescape 223 func FuncHasOnInputChanged(fn unsafe.Pointer) 224 225 //go:wasmimport plat/js/webext/omnibox call_HasOnInputChanged 226 //go:noescape 227 func CallHasOnInputChanged( 228 retPtr unsafe.Pointer, 229 callback js.Ref) 230 231 //go:wasmimport plat/js/webext/omnibox try_HasOnInputChanged 232 //go:noescape 233 func TryHasOnInputChanged( 234 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 235 callback js.Ref) (ok js.Ref) 236 237 //go:wasmimport plat/js/webext/omnibox has_OnInputEntered 238 //go:noescape 239 func HasFuncOnInputEntered() js.Ref 240 241 //go:wasmimport plat/js/webext/omnibox func_OnInputEntered 242 //go:noescape 243 func FuncOnInputEntered(fn unsafe.Pointer) 244 245 //go:wasmimport plat/js/webext/omnibox call_OnInputEntered 246 //go:noescape 247 func CallOnInputEntered( 248 retPtr unsafe.Pointer, 249 callback js.Ref) 250 251 //go:wasmimport plat/js/webext/omnibox try_OnInputEntered 252 //go:noescape 253 func TryOnInputEntered( 254 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 255 callback js.Ref) (ok js.Ref) 256 257 //go:wasmimport plat/js/webext/omnibox has_OffInputEntered 258 //go:noescape 259 func HasFuncOffInputEntered() js.Ref 260 261 //go:wasmimport plat/js/webext/omnibox func_OffInputEntered 262 //go:noescape 263 func FuncOffInputEntered(fn unsafe.Pointer) 264 265 //go:wasmimport plat/js/webext/omnibox call_OffInputEntered 266 //go:noescape 267 func CallOffInputEntered( 268 retPtr unsafe.Pointer, 269 callback js.Ref) 270 271 //go:wasmimport plat/js/webext/omnibox try_OffInputEntered 272 //go:noescape 273 func TryOffInputEntered( 274 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 275 callback js.Ref) (ok js.Ref) 276 277 //go:wasmimport plat/js/webext/omnibox has_HasOnInputEntered 278 //go:noescape 279 func HasFuncHasOnInputEntered() js.Ref 280 281 //go:wasmimport plat/js/webext/omnibox func_HasOnInputEntered 282 //go:noescape 283 func FuncHasOnInputEntered(fn unsafe.Pointer) 284 285 //go:wasmimport plat/js/webext/omnibox call_HasOnInputEntered 286 //go:noescape 287 func CallHasOnInputEntered( 288 retPtr unsafe.Pointer, 289 callback js.Ref) 290 291 //go:wasmimport plat/js/webext/omnibox try_HasOnInputEntered 292 //go:noescape 293 func TryHasOnInputEntered( 294 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 295 callback js.Ref) (ok js.Ref) 296 297 //go:wasmimport plat/js/webext/omnibox has_OnInputStarted 298 //go:noescape 299 func HasFuncOnInputStarted() js.Ref 300 301 //go:wasmimport plat/js/webext/omnibox func_OnInputStarted 302 //go:noescape 303 func FuncOnInputStarted(fn unsafe.Pointer) 304 305 //go:wasmimport plat/js/webext/omnibox call_OnInputStarted 306 //go:noescape 307 func CallOnInputStarted( 308 retPtr unsafe.Pointer, 309 callback js.Ref) 310 311 //go:wasmimport plat/js/webext/omnibox try_OnInputStarted 312 //go:noescape 313 func TryOnInputStarted( 314 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 315 callback js.Ref) (ok js.Ref) 316 317 //go:wasmimport plat/js/webext/omnibox has_OffInputStarted 318 //go:noescape 319 func HasFuncOffInputStarted() js.Ref 320 321 //go:wasmimport plat/js/webext/omnibox func_OffInputStarted 322 //go:noescape 323 func FuncOffInputStarted(fn unsafe.Pointer) 324 325 //go:wasmimport plat/js/webext/omnibox call_OffInputStarted 326 //go:noescape 327 func CallOffInputStarted( 328 retPtr unsafe.Pointer, 329 callback js.Ref) 330 331 //go:wasmimport plat/js/webext/omnibox try_OffInputStarted 332 //go:noescape 333 func TryOffInputStarted( 334 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 335 callback js.Ref) (ok js.Ref) 336 337 //go:wasmimport plat/js/webext/omnibox has_HasOnInputStarted 338 //go:noescape 339 func HasFuncHasOnInputStarted() js.Ref 340 341 //go:wasmimport plat/js/webext/omnibox func_HasOnInputStarted 342 //go:noescape 343 func FuncHasOnInputStarted(fn unsafe.Pointer) 344 345 //go:wasmimport plat/js/webext/omnibox call_HasOnInputStarted 346 //go:noescape 347 func CallHasOnInputStarted( 348 retPtr unsafe.Pointer, 349 callback js.Ref) 350 351 //go:wasmimport plat/js/webext/omnibox try_HasOnInputStarted 352 //go:noescape 353 func TryHasOnInputStarted( 354 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 355 callback js.Ref) (ok js.Ref) 356 357 //go:wasmimport plat/js/webext/omnibox has_SendSuggestions 358 //go:noescape 359 func HasFuncSendSuggestions() js.Ref 360 361 //go:wasmimport plat/js/webext/omnibox func_SendSuggestions 362 //go:noescape 363 func FuncSendSuggestions(fn unsafe.Pointer) 364 365 //go:wasmimport plat/js/webext/omnibox call_SendSuggestions 366 //go:noescape 367 func CallSendSuggestions( 368 retPtr unsafe.Pointer, 369 requestId float64, 370 suggestResults js.Ref) 371 372 //go:wasmimport plat/js/webext/omnibox try_SendSuggestions 373 //go:noescape 374 func TrySendSuggestions( 375 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 376 requestId float64, 377 suggestResults js.Ref) (ok js.Ref) 378 379 //go:wasmimport plat/js/webext/omnibox has_SetDefaultSuggestion 380 //go:noescape 381 func HasFuncSetDefaultSuggestion() js.Ref 382 383 //go:wasmimport plat/js/webext/omnibox func_SetDefaultSuggestion 384 //go:noescape 385 func FuncSetDefaultSuggestion(fn unsafe.Pointer) 386 387 //go:wasmimport plat/js/webext/omnibox call_SetDefaultSuggestion 388 //go:noescape 389 func CallSetDefaultSuggestion( 390 retPtr unsafe.Pointer, 391 suggestion unsafe.Pointer) 392 393 //go:wasmimport plat/js/webext/omnibox try_SetDefaultSuggestion 394 //go:noescape 395 func TrySetDefaultSuggestion( 396 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 397 suggestion unsafe.Pointer) (ok js.Ref)