| 1 | //go:build windows |
| 2 | |
| 3 | package edge |
| 4 | |
| 5 | import ( |
| 6 | "unsafe" |
| 7 | ) |
| 8 | |
| 9 | type _ICoreWebView2ProcessFailedEventHandlerVtbl struct { |
| 10 | _IUnknownVtbl |
| 11 | Invoke ComProc |
| 12 | } |
| 13 | |
| 14 | type ICoreWebView2ProcessFailedEventHandler struct { |
| 15 | vtbl *_ICoreWebView2ProcessFailedEventHandlerVtbl |
| 16 | impl _ICoreWebView2ProcessFailedEventHandlerImpl |
| 17 | } |
| 18 | |
| 19 | func (i *ICoreWebView2ProcessFailedEventHandler) AddRef() uintptr { |
| 20 | ret, _, _ := i.vtbl.AddRef.Call(uintptr(unsafe.Pointer(i))) |
| 21 | |
| 22 | return ret |
| 23 | } |
| 24 | func _ICoreWebView2ProcessFailedEventHandlerIUnknownQueryInterface(this *ICoreWebView2ProcessFailedEventHandler, refiid, object uintptr) uintptr { |
| 25 | return this.impl.QueryInterface(refiid, object) |
| 26 | } |
| 27 | |
| 28 | func _ICoreWebView2ProcessFailedEventHandlerIUnknownAddRef(this *ICoreWebView2ProcessFailedEventHandler) uintptr { |
| 29 | return this.impl.AddRef() |
| 30 | } |
| 31 | |
| 32 | func _ICoreWebView2ProcessFailedEventHandlerIUnknownRelease(this *ICoreWebView2ProcessFailedEventHandler) uintptr { |
| 33 | return this.impl.Release() |
| 34 | } |
| 35 | |
| 36 | func _ICoreWebView2ProcessFailedEventHandlerInvoke(this *ICoreWebView2ProcessFailedEventHandler, sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs) uintptr { |
| 37 | return this.impl.ProcessFailed(sender, args) |
| 38 | } |
| 39 | |
| 40 | type _ICoreWebView2ProcessFailedEventHandlerImpl interface { |
| 41 | _IUnknownImpl |
| 42 | ProcessFailed(sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs) uintptr |
| 43 | } |
| 44 | |
| 45 | var _ICoreWebView2ProcessFailedEventHandlerFn = _ICoreWebView2ProcessFailedEventHandlerVtbl{ |
| 46 | _IUnknownVtbl{ |
| 47 | NewComProc(_ICoreWebView2ProcessFailedEventHandlerIUnknownQueryInterface), |
| 48 | NewComProc(_ICoreWebView2ProcessFailedEventHandlerIUnknownAddRef), |
| 49 | NewComProc(_ICoreWebView2ProcessFailedEventHandlerIUnknownRelease), |
| 50 | }, |
| 51 | NewComProc(_ICoreWebView2ProcessFailedEventHandlerInvoke), |
| 52 | } |
| 53 | |
| 54 | func newICoreWebView2ProcessFailedEventHandler(impl _ICoreWebView2ProcessFailedEventHandlerImpl) *ICoreWebView2ProcessFailedEventHandler { |
| 55 | return &ICoreWebView2ProcessFailedEventHandler{ |
| 56 | vtbl: &_ICoreWebView2ProcessFailedEventHandlerFn, |
| 57 | impl: impl, |
| 58 | } |
| 59 | } |
| 60 |