energy/cef/cef-ipc-emit.go
2022-12-07 15:50:59 +08:00

36 lines
638 B
Go

//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under GNU General Public License v3.0
//
//----------------------------------------
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
}