mirror of
https://github.com/chenasraf/webview_cef.git
synced 2026-05-18 01:49:03 +00:00
* init platform linux * +linux * fix cmake link problem * run cef window on linux (#66) Co-authored-by: zhixinyan <zhixinyan@baidu.com> * linux auto download prebuilt files * off-screen rendering,methodchannel... (#69) * run cef window on linux * linux auto download prebuilt files * off-screen rendering,methodchannel --------- Co-authored-by: zhixinyan <zhixinyan@baidu.com> * fix warnings & compile err * process keyevent for linux * Merge main to linux (#73) * Added cookie visitor to manage cookies * Added cookie visitor to manage cookies * Macos support cookie visitor --------- Co-authored-by: zhixinyan <zhixinyan@baidu.com> * fix opengl support, add support file * bump ver to 0.0.9 * let CEF detect how to load a specific url Current example implementation blocked local file loading. * Jsbridge (#2) support jsbridge/jschannel * check bins files are newest version or not * bump ver to 0.1.0 * bump ver to 0.1.0 * [mac] fix x86 mac frame blink * Update Instructions of macOS on macOS, manual work has to be done for placing CEF lib inside the repo. So we can not use the plugin directly as of now. --------- Co-authored-by: zhixinyan <zhixinyan@baidu.com> Co-authored-by: Prome <levi.hao96@gmail.com> Co-authored-by: BullsEye <18664297+BullsEye34@users.noreply.github.com> * unified windows and linux interface * fixed some methodchannel bugs * solve channel run in muti-thread casue some crash * try to solve cef grab gtk main loop cause crash * provide arm64 prebuilt package * fix character type convert errors * rebuild the data struct of unified interface * fix build errors on linux * fix build errors on linux * unified interface for all three platforms! * fix build error --------- Co-authored-by: Prome <levi.hao96@gmail.com> Co-authored-by: zhixinyan <zhixinyan@baidu.com> Co-authored-by: BullsEye <18664297+BullsEye34@users.noreply.github.com>
21 lines
714 B
C++
21 lines
714 B
C++
#ifndef WEBVIEW_PLUGIN_H
|
|
#define WEBVIEW_PLUGIN_H
|
|
|
|
#include <functional>
|
|
#include <include/cef_base.h>
|
|
#include "webview_value.h"
|
|
|
|
namespace webview_cef {
|
|
void initCEFProcesses(CefMainArgs args);
|
|
void initCEFProcesses();
|
|
void startCEF();
|
|
void doMessageLoopWork();
|
|
void sendKeyEvent(CefKeyEvent& ev);
|
|
int HandleMethodCall(std::string name, WValue* values, WValue* response);
|
|
void SwapBufferFromBgraToRgba(void* _dest, const void* _src, int width, int height);
|
|
void setPaintCallBack(std::function<void(const void*, int32_t , int32_t )> callback);
|
|
void setInvokeMethodFunc(std::function<void(std::string, WValue*)> func);
|
|
bool getPluginIsFocused();
|
|
}
|
|
|
|
#endif //WEBVIEW_PLUGIN_H
|