| 1 | //go:build windows |
| 2 | |
| 3 | package edge |
| 4 | |
| 5 | type iCoreWebView2WebMessageReceivedEventHandlerVtbl struct { |
| 6 | _IUnknownVtbl |
| 7 | Invoke ComProc |
| 8 | } |
| 9 | |
| 10 | type iCoreWebView2WebMessageReceivedEventHandler struct { |
| 11 | vtbl *iCoreWebView2WebMessageReceivedEventHandlerVtbl |
| 12 | impl iCoreWebView2WebMessageReceivedEventHandlerImpl |
| 13 | } |
| 14 | |
| 15 | func _ICoreWebView2WebMessageReceivedEventHandlerIUnknownQueryInterface(this *iCoreWebView2WebMessageReceivedEventHandler, refiid, object uintptr) uintptr { |
| 16 | return this.impl.QueryInterface(refiid, object) |
| 17 | } |
| 18 | |
| 19 | func _ICoreWebView2WebMessageReceivedEventHandlerIUnknownAddRef(this *iCoreWebView2WebMessageReceivedEventHandler) uintptr { |
| 20 | return this.impl.AddRef() |
| 21 | } |
| 22 | |
| 23 | func _ICoreWebView2WebMessageReceivedEventHandlerIUnknownRelease(this *iCoreWebView2WebMessageReceivedEventHandler) uintptr { |
| 24 | return this.impl.Release() |
| 25 | } |
| 26 | |
| 27 | func _ICoreWebView2WebMessageReceivedEventHandlerInvoke(this *iCoreWebView2WebMessageReceivedEventHandler, sender *ICoreWebView2, args *ICoreWebView2WebMessageReceivedEventArgs) uintptr { |
| 28 | return this.impl.MessageReceived(sender, args) |
| 29 | } |
| 30 | |
| 31 | type iCoreWebView2WebMessageReceivedEventHandlerImpl interface { |
| 32 | _IUnknownImpl |
| 33 | MessageReceived(sender *ICoreWebView2, args *ICoreWebView2WebMessageReceivedEventArgs) uintptr |
| 34 | } |
| 35 | |
| 36 | var iCoreWebView2WebMessageReceivedEventHandlerFn = iCoreWebView2WebMessageReceivedEventHandlerVtbl{ |
| 37 | _IUnknownVtbl{ |
| 38 | NewComProc(_ICoreWebView2WebMessageReceivedEventHandlerIUnknownQueryInterface), |
| 39 | NewComProc(_ICoreWebView2WebMessageReceivedEventHandlerIUnknownAddRef), |
| 40 | NewComProc(_ICoreWebView2WebMessageReceivedEventHandlerIUnknownRelease), |
| 41 | }, |
| 42 | NewComProc(_ICoreWebView2WebMessageReceivedEventHandlerInvoke), |
| 43 | } |
| 44 | |
| 45 | func newICoreWebView2WebMessageReceivedEventHandler(impl iCoreWebView2WebMessageReceivedEventHandlerImpl) *iCoreWebView2WebMessageReceivedEventHandler { |
| 46 | return &iCoreWebView2WebMessageReceivedEventHandler{ |
| 47 | vtbl: &iCoreWebView2WebMessageReceivedEventHandlerFn, |
| 48 | impl: impl, |
| 49 | } |
| 50 | } |
| 51 |