summaryrefslogtreecommitdiffstats
path: root/src/pdf/jsbridge.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-07-18 10:49:23 +0200
committerMichal Klocek <michal.klocek@qt.io>2019-11-25 12:01:39 +0100
commit81a5545ee5ed361caca1e9f15910df26bc8da08e (patch)
treeecb7e428f4d7442412313e068d544925637d048a /src/pdf/jsbridge.cpp
parent224cfcf87bac54db80671b4e805235b381878a5e (diff)
Update to newer FPDF upstream version
This required extending the gyp2pri "parser" to add dependencies recursively and to have really primitive condition handling for targets. Change-Id: Icd343ec2be492c0cf4cfd013bf2d4594fe7ba5c3 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
Diffstat (limited to 'src/pdf/jsbridge.cpp')
-rw-r--r--src/pdf/jsbridge.cpp40
1 files changed, 3 insertions, 37 deletions
diff --git a/src/pdf/jsbridge.cpp b/src/pdf/jsbridge.cpp
index 3959c3ece..a0a8386c4 100644
--- a/src/pdf/jsbridge.cpp
+++ b/src/pdf/jsbridge.cpp
@@ -2,41 +2,7 @@
#include <qglobal.h>
#include "fsdk_mgr.h"
-#include "javascript/IJavaScript.h"
+#include "fpdfsdk/javascript/ijs_context.h"
+#include "fpdfsdk/javascript/ijs_runtime.h"
+#include "fpdfsdk/javascript/JS_Runtime_Stub.cpp"
-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()
-{
-}