-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser.hpp
47 lines (28 loc) · 816 Bytes
/
browser.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef BROWSER_HPP
#define BROWSER_HPP
#include <include/cef_client.h>
#include <include/internal/cef_linux.h>
#include <include/internal/cef_ptr.h>
class CefBrowser;
class CefClient;
struct event;
///////////////////////////////////////////////////////////////////////////
class browser final
{
public:
browser() = delete;
browser(const CefMainArgs& args);
bool initialise(event *pEventDoWork);
bool finalise();
bool schedule_external_frame();
private:
void paint_callback(const void *pBuffer, int width, int height);
const CefMainArgs& m_args;
CefSettings m_settings{};
CefRefPtr<CefBrowser> m_apBrowser;
CefRefPtr<CefClient> m_apClient;
std::size_t m_nFireCount{0};
std::size_t m_nPaintCount{0};
bool m_bInit{false};
};
#endif //BROWSER_HPP