11 Star 22 Fork 8

codebee / CEFWebkitBrowser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CEFV8HandlerEx.h 592 Bytes
一键复制 编辑 原始数据 按行查看 历史
codebee 提交于 2016-09-03 00:12 . 实现了js调用c++
#pragma once
#include "stdafx.h"
#include <cef_v8.h>
#include <cef_base.h>
class CCEFV8HandlerEx : public CefV8Handler {
public:
CCEFV8HandlerEx();
~CCEFV8HandlerEx();
public:
virtual bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception) override;
private:
// Map of message callbacks.
typedef std::map<std::pair<std::string, int>, std::pair<CefRefPtr<CefV8Context>, CefRefPtr<CefV8Value> > >CallbackMap;
CallbackMap callback_map_;
public:
IMPLEMENT_REFCOUNTING(CCEFV8HandlerEx);
};
C++
1
https://gitee.com/Codebee/CEFWebkitBrowser.git
git@gitee.com:Codebee/CEFWebkitBrowser.git
Codebee
CEFWebkitBrowser
CEFWebkitBrowser
master

搜索帮助