-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathV8Event.h
45 lines (29 loc) · 986 Bytes
/
V8Event.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
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Created by hyperandroid on 13/02/2016.
//
#ifndef HYPERCASINO_V8EVENT_H
#define HYPERCASINO_V8EVENT_H
#include <v8.h>
#include "Configuration.h"
using namespace v8;
/**
* A generic Event.
* This will be the base class for all other existing events like TouchEvent, SurfaceEvent, etc.
*/
class V8Event {
public:
// This class must be static only
V8Event() = delete;
V8Event(const V8Event &) = delete;
V8Event &operator=(const V8Event &) = delete;
void *operator new(size_t) = delete;
void *operator new(size_t, int, void *) = delete;
void *operator new(size_t, void *) = delete;
// V8 base.
static Local<FunctionTemplate> InterfaceTemplate(Isolate *);
static void
InstallInterfaceTemplate(Isolate *isolate, Local<FunctionTemplate> interface_template);
static void constructorCallback(const FunctionCallbackInfo<Value> &);
static const Config::WrapperTypeInfo wrapperTypeInfo;
};
#endif //HYPERCASINO_V8EVENT_H