mirror of
https://gitee.com/energye/energy.git
synced 2024-12-05 21:28:17 +08:00
29 lines
693 B
Go
29 lines
693 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
// Package process Current process
|
|
package process
|
|
|
|
import "github.com/energye/energy/v2/cef/internal/process"
|
|
|
|
// BrowserId
|
|
// renderer process create success
|
|
// Returns the browser ID of the current process
|
|
func BrowserId() int32 {
|
|
return process.Current.BrowserId()
|
|
}
|
|
|
|
// FrameId
|
|
// renderer process create success
|
|
// Returns the main FrameId (channelId) of the current process
|
|
func FrameId() int64 {
|
|
return process.Current.FrameId()
|
|
}
|