mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 19:57:48 +08:00
28 lines
447 B
Go
28 lines
447 B
Go
package cef
|
|
|
|
type IEmitTarget interface {
|
|
GetBrowserId() int32
|
|
GetFrameId() int64
|
|
}
|
|
|
|
//GoEmit相关事件的接收目标
|
|
type EmitTarget struct {
|
|
BrowseId int32
|
|
FrameId int64
|
|
}
|
|
|
|
func NewEmitTarget(browserId int32, frameId int64) *EmitTarget {
|
|
return &EmitTarget{
|
|
BrowseId: browserId,
|
|
FrameId: frameId,
|
|
}
|
|
}
|
|
|
|
func (m *EmitTarget) GetBrowserId() int32 {
|
|
return m.BrowseId
|
|
}
|
|
|
|
func (m *EmitTarget) GetFrameId() int64 {
|
|
return m.FrameId
|
|
}
|