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