| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../../public/fpdf_formfill.h" | 7 #include "../../../public/fpdf_formfill.h" |
| 8 #include "../../include/fsdk_define.h" | 8 #include "../../include/fsdk_define.h" |
| 9 #include "../../include/fsdk_mgr.h" | 9 #include "../../include/fsdk_mgr.h" |
| 10 #include "../../include/fpdfxfa/fpdfxfa_doc.h" | 10 #include "../../include/fpdfxfa/fpdfxfa_doc.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int nFind = m_pEnvList.Find(pEnv); | 105 int nFind = m_pEnvList.Find(pEnv); |
| 106 if (nFind != -1) { | 106 if (nFind != -1) { |
| 107 m_pEnvList.RemoveAt(nFind); | 107 m_pEnvList.RemoveAt(nFind); |
| 108 return TRUE; | 108 return TRUE; |
| 109 } | 109 } |
| 110 | 110 |
| 111 return FALSE; | 111 return FALSE; |
| 112 } | 112 } |
| 113 void CPDFXFA_App::ReleaseRuntime() { | 113 void CPDFXFA_App::ReleaseRuntime() { |
| 114 v8::Global<v8::Context> context; | 114 v8::Global<v8::Context> context; |
| 115 JS_ReleaseRuntime((IJS_Runtime*)m_hJSERuntime, context); | 115 JS_ReleaseRuntime((v8::Isolate*)m_hJSERuntime, context); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void CPDFXFA_App::GetAppType(CFX_WideString& wsAppType) { | 118 void CPDFXFA_App::GetAppType(CFX_WideString& wsAppType) { |
| 119 wsAppType = m_csAppType; | 119 wsAppType = m_csAppType; |
| 120 } | 120 } |
| 121 | 121 |
| 122 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) { | 122 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) { |
| 123 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 123 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 124 if (pEnv) { | 124 if (pEnv) { |
| 125 wsName = pEnv->FFI_GetAppName(); | 125 wsName = pEnv->FFI_GetAppName(); |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 return FALSE; | 547 return FALSE; |
| 548 } | 548 } |
| 549 | 549 |
| 550 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { | 550 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { |
| 551 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; | 551 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; |
| 552 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 552 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 553 if (pEnv) | 553 if (pEnv) |
| 554 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); | 554 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); |
| 555 return pAdapter; | 555 return pAdapter; |
| 556 } | 556 } |
| OLD | NEW |