energy/ipc/cef-v8-js-bind-ipc.go
杨红岩 d9f14c6a46 修改注释文档
代码授权注释修改
2023-02-19 23:21:47 +08:00

27 lines
920 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 ipc
const (
Ln_IPC_GoEmitJS = "IPCGoEmitJS" //Go执行Js on监听
Ln_GET_BIND_FIELD_VALUE = "internal_GET_BIND_FIELD_VALUE" //browse进程监听获取字段值
Ln_SET_BIND_FIELD_VALUE = "internal_SET_BIND_FIELD_VALUE" //browse进程监听设置字段值
Ln_EXECUTE_BIND_FUNC = "internal_EXECUTE_BIND_FUNC" //browse进程监听执行绑定函数
Ln_onConnectEvent = "connect"
)
func InternalIPCNameCheck(name string) bool {
if name == Ln_IPC_GoEmitJS || name == Ln_GET_BIND_FIELD_VALUE || name == Ln_SET_BIND_FIELD_VALUE || name == Ln_EXECUTE_BIND_FUNC || name == Ln_onConnectEvent {
return true
}
return false
}