mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 10:47:57 +08:00
32 lines
663 B
Go
32 lines
663 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
// CEF 回调事件实现
|
|
package cef
|
|
|
|
import (
|
|
"github.com/energye/energy/common/imports"
|
|
"unsafe"
|
|
)
|
|
|
|
type ICefCallback struct {
|
|
instance unsafe.Pointer
|
|
}
|
|
|
|
// Cont 继续执行
|
|
func (m *ICefCallback) Cont() {
|
|
imports.Proc(internale_cefCallback_Cont).Call(uintptr(m.instance))
|
|
}
|
|
|
|
// Cancel 取消执行
|
|
func (m *ICefCallback) Cancel() {
|
|
imports.Proc(internale_cefCallback_Cancel).Call(uintptr(m.instance))
|
|
}
|