2022-10-04 13:21:05 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2022-10-04 16:38:43 +08:00
|
|
|
// Licensed under GNU General Public License v3.0
|
2022-10-04 13:21:05 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
package cef
|
|
|
|
|
2022-10-04 22:34:57 +08:00
|
|
|
import (
|
2022-11-02 12:47:47 +08:00
|
|
|
. "github.com/energye/energy/common"
|
2022-10-04 22:34:57 +08:00
|
|
|
"unsafe"
|
|
|
|
)
|
2022-10-04 13:21:05 +08:00
|
|
|
|
|
|
|
type ICefCallback struct {
|
|
|
|
instance uintptr
|
|
|
|
ptr unsafe.Pointer
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefCallback) Cont() {
|
|
|
|
Proc("cefCallback_Cont").Call(m.instance)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefCallback) Cancel() {
|
|
|
|
Proc("cefCallback_Cancel").Call(m.instance)
|
|
|
|
}
|