CEF 控制台添加一函数,枚举 注册的供前端使用的CPP交互函数有哪些

一、前序知识

1、设置单进程模式,方便调试

void ClientApp::OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr command_line)
{


	if (process_type.empty())
	{

		//cef 在debug模式下有问题
		    #ifdef _DEBUG
		 		command_line->AppendSwitchWithValue("browser-subprocess-path", "render_d.exe");
				command_line->AppendSwitchWithValue("--single-process", "1");  //单进程调试时,启用这个
		    #else
				command_line->AppendSwitchWithValue("browser-subprocess-path", "render.exe");

2、Render进程,接受进程消息的入口

	virtual bool OnProcessMessageReceived(CefRefPtr brows

你可能感兴趣的:(CEF应用,CEF,交互,注入函数,注册,CPP)