-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathv8handler.h
32 lines (23 loc) · 904 Bytes
/
v8handler.h
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
#pragma once
#include "cef_includes.h"
#include "transcoderremoteclient.h"
#include "vdrremoteclient.h"
#include "tools.h"
class V8Handler : public CefV8Handler {
public:
V8Handler(BrowserParameter bParam);
~V8Handler();
bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception) override;
private:
BrowserParameter bParam;
VdrRemoteClient* vdrRemoteClient;
TranscoderRemoteClient* transcoderRemoteClient;
int lastVideoX, lastVideoY, lastVideoW, lastVideoH;
bool lastFullscreen;
private:
void sendMessageToProcess(std::string message);
void sendMessageToProcess(std::string message, std::string parameter);
void sendMessageToProcess(std::string message, std::vector<std::string>& parameter);
void stopVdrVideo();
IMPLEMENT_REFCOUNTING(V8Handler);
};