2022-10-04 13:21:05 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2022-10-04 13:21:05 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
package cef
|
|
|
|
|
2022-10-04 22:34:57 +08:00
|
|
|
import (
|
2023-02-13 21:25:35 +08:00
|
|
|
"github.com/energye/energy/common/imports"
|
2022-10-04 22:34:57 +08:00
|
|
|
"unsafe"
|
|
|
|
)
|
2022-10-04 13:21:05 +08:00
|
|
|
|
|
|
|
type ICefCallback struct {
|
2022-12-05 12:07:58 +08:00
|
|
|
instance unsafe.Pointer
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefCallback) Cont() {
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_cefCallback_Cont).Call(uintptr(m.instance))
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefCallback) Cancel() {
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_cefCallback_Cancel).Call(uintptr(m.instance))
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|