mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 18:57:39 +08:00
36 lines
638 B
Go
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
|
|
}
|