summaryrefslogtreecommitdiffstats
path: root/src/pdf/jsbridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/jsbridge.cpp')
-rw-r--r--src/pdf/jsbridge.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/pdf/jsbridge.cpp b/src/pdf/jsbridge.cpp
new file mode 100644
index 0000000..3959c3e
--- /dev/null
+++ b/src/pdf/jsbridge.cpp
@@ -0,0 +1,42 @@
+
+#include <qglobal.h>
+
+#include "fsdk_mgr.h"
+#include "javascript/IJavaScript.h"
+
+CJS_RuntimeFactory::~CJS_RuntimeFactory()
+{
+}
+
+IFXJS_Runtime* CJS_RuntimeFactory::NewJSRuntime(CPDFDoc_Environment* pApp)
+{
+ Q_UNUSED(pApp);
+ return 0;
+}
+
+void CJS_RuntimeFactory::DeleteJSRuntime(IFXJS_Runtime* pRuntime)
+{
+ Q_UNUSED(pRuntime);
+}
+
+void CJS_RuntimeFactory::AddRef()
+{
+ m_nRef++;
+}
+
+void CJS_RuntimeFactory::Release()
+{
+ if (--m_nRef) {
+ // ### Shutdown
+ }
+}
+
+CJS_GlobalData* CJS_RuntimeFactory::NewGlobalData(CPDFDoc_Environment* pApp)
+{
+ Q_UNUSED(pApp);
+ return 0;
+}
+
+void CJS_RuntimeFactory::ReleaseGlobalData()
+{
+}