summaryrefslogtreecommitdiff
path: root/xfa/src/fxjse/src/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxjse/src/runtime.h')
-rw-r--r--xfa/src/fxjse/src/runtime.h59
1 files changed, 32 insertions, 27 deletions
diff --git a/xfa/src/fxjse/src/runtime.h b/xfa/src/fxjse/src/runtime.h
index a51dc8f3eb..d7c37aedb4 100644
--- a/xfa/src/fxjse/src/runtime.h
+++ b/xfa/src/fxjse/src/runtime.h
@@ -7,33 +7,38 @@
#ifndef FXJSE_RUNTIME_H_
#define FXJSE_RUNTIME_H_
class CFXJSE_RuntimeList;
-class CFXJSE_RuntimeData
-{
-protected:
- CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {};
-public:
- static CFXJSE_RuntimeData* Create(v8::Isolate* pIsolate);
- static CFXJSE_RuntimeData* Get(v8::Isolate* pIsolate);
-public:
- v8::Isolate* m_pIsolate;
- v8::Global<v8::FunctionTemplate> m_hRootContextGlobalTemplate;
- v8::Global<v8::Context> m_hRootContext;
-public:
- static CFXJSE_RuntimeList* g_RuntimeList;
-protected:
- CFXJSE_RuntimeData();
- CFXJSE_RuntimeData(const CFXJSE_RuntimeData&);
- CFXJSE_RuntimeData& operator = (const CFXJSE_RuntimeData&);
+class CFXJSE_RuntimeData {
+ protected:
+ CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate){};
+
+ public:
+ static CFXJSE_RuntimeData* Create(v8::Isolate* pIsolate);
+ static CFXJSE_RuntimeData* Get(v8::Isolate* pIsolate);
+
+ public:
+ v8::Isolate* m_pIsolate;
+ v8::Global<v8::FunctionTemplate> m_hRootContextGlobalTemplate;
+ v8::Global<v8::Context> m_hRootContext;
+
+ public:
+ static CFXJSE_RuntimeList* g_RuntimeList;
+
+ protected:
+ CFXJSE_RuntimeData();
+ CFXJSE_RuntimeData(const CFXJSE_RuntimeData&);
+ CFXJSE_RuntimeData& operator=(const CFXJSE_RuntimeData&);
};
-class CFXJSE_RuntimeList
-{
-public:
- typedef void (*RuntimeDisposeCallback)(v8::Isolate*);
-public:
- void AppendRuntime(v8::Isolate* pIsolate);
- void RemoveRuntime(v8::Isolate* pIsolate, RuntimeDisposeCallback lpfnDisposeCallback);
- void RemoveAllRuntimes(RuntimeDisposeCallback lpfnDisposeCallback);
-protected:
- CFX_ArrayTemplate<v8::Isolate*> m_RuntimeList;
+class CFXJSE_RuntimeList {
+ public:
+ typedef void (*RuntimeDisposeCallback)(v8::Isolate*);
+
+ public:
+ void AppendRuntime(v8::Isolate* pIsolate);
+ void RemoveRuntime(v8::Isolate* pIsolate,
+ RuntimeDisposeCallback lpfnDisposeCallback);
+ void RemoveAllRuntimes(RuntimeDisposeCallback lpfnDisposeCallback);
+
+ protected:
+ CFX_ArrayTemplate<v8::Isolate*> m_RuntimeList;
};
#endif