| 1 | //go:build windows |
| 2 | |
| 3 | package edge |
| 4 | |
| 5 | import ( |
| 6 | "unsafe" |
| 7 | ) |
| 8 | |
| 9 | type _ICoreWebView2AcceleratorKeyPressedEventHandlerVtbl struct { |
| 10 | _IUnknownVtbl |
| 11 | Invoke ComProc |
| 12 | } |
| 13 | |
| 14 | type ICoreWebView2AcceleratorKeyPressedEventHandler struct { |
| 15 | vtbl *_ICoreWebView2AcceleratorKeyPressedEventHandlerVtbl |
| 16 | impl _ICoreWebView2AcceleratorKeyPressedEventHandlerImpl |
| 17 | } |
| 18 | |
| 19 | func (i *ICoreWebView2AcceleratorKeyPressedEventHandler) AddRef() uintptr { |
| 20 | ret, _, _ := i.vtbl.AddRef.Call(uintptr(unsafe.Pointer(i))) |
| 21 | |
| 22 | return ret |
| 23 | } |
| 24 | |
| 25 | func (i *ICoreWebView2AcceleratorKeyPressedEventHandler) Release() uintptr { |
| 26 | ret, _, _ := i.vtbl.Release.Call(uintptr(unsafe.Pointer(i))) |
| 27 | |
| 28 | return ret |
| 29 | } |
| 30 | |
| 31 | func _ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownQueryInterface(this *ICoreWebView2AcceleratorKeyPressedEventHandler, refiid, object uintptr) uintptr { |
| 32 | return this.impl.QueryInterface(refiid, object) |
| 33 | } |
| 34 | |
| 35 | func _ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownAddRef(this *ICoreWebView2AcceleratorKeyPressedEventHandler) uintptr { |
| 36 | return this.impl.AddRef() |
| 37 | } |
| 38 | |
| 39 | func _ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownRelease(this *ICoreWebView2AcceleratorKeyPressedEventHandler) uintptr { |
| 40 | return this.impl.Release() |
| 41 | } |
| 42 | |
| 43 | func _ICoreWebView2AcceleratorKeyPressedEventHandlerInvoke(this *ICoreWebView2AcceleratorKeyPressedEventHandler, sender *ICoreWebView2Controller, args *ICoreWebView2AcceleratorKeyPressedEventArgs) uintptr { |
| 44 | return this.impl.AcceleratorKeyPressed(sender, args) |
| 45 | } |
| 46 | |
| 47 | type _ICoreWebView2AcceleratorKeyPressedEventHandlerImpl interface { |
| 48 | _IUnknownImpl |
| 49 | AcceleratorKeyPressed(sender *ICoreWebView2Controller, args *ICoreWebView2AcceleratorKeyPressedEventArgs) uintptr |
| 50 | } |
| 51 | |
| 52 | var _ICoreWebView2AcceleratorKeyPressedEventHandlerFn = _ICoreWebView2AcceleratorKeyPressedEventHandlerVtbl{ |
| 53 | _IUnknownVtbl{ |
| 54 | NewComProc(_ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownQueryInterface), |
| 55 | NewComProc(_ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownAddRef), |
| 56 | NewComProc(_ICoreWebView2AcceleratorKeyPressedEventHandlerIUnknownRelease), |
| 57 | }, |
| 58 | NewComProc(_ICoreWebView2AcceleratorKeyPressedEventHandlerInvoke), |
| 59 | } |
| 60 | |
| 61 | func newICoreWebView2AcceleratorKeyPressedEventHandler(impl _ICoreWebView2AcceleratorKeyPressedEventHandlerImpl) *ICoreWebView2AcceleratorKeyPressedEventHandler { |
| 62 | return &ICoreWebView2AcceleratorKeyPressedEventHandler{ |
| 63 | vtbl: &_ICoreWebView2AcceleratorKeyPressedEventHandlerFn, |
| 64 | impl: impl, |
| 65 | } |
| 66 | } |
| 67 |