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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 int nFind = m_pEnvList.Find(pEnv); | 127 int nFind = m_pEnvList.Find(pEnv); |
128 if (nFind != -1) { | 128 if (nFind != -1) { |
129 m_pEnvList.RemoveAt(nFind); | 129 m_pEnvList.RemoveAt(nFind); |
130 return TRUE; | 130 return TRUE; |
131 } | 131 } |
132 | 132 |
133 return FALSE; | 133 return FALSE; |
134 } | 134 } |
135 void CPDFXFA_App::ReleaseRuntime() | 135 void CPDFXFA_App::ReleaseRuntime() |
136 { | 136 { |
137 » v8::Persistent<v8::Context> context; | 137 » v8::Global<v8::Context> context; |
138 JS_ReleaseRuntime((IJS_Runtime*)m_hJSERuntime, context); | 138 JS_ReleaseRuntime((IJS_Runtime*)m_hJSERuntime, context); |
139 } | 139 } |
140 | 140 |
141 void CPDFXFA_App::GetAppType(CFX_WideString &wsAppType) | 141 void CPDFXFA_App::GetAppType(CFX_WideString &wsAppType) |
142 { | 142 { |
143 wsAppType = m_csAppType; | 143 wsAppType = m_csAppType; |
144 } | 144 } |
145 | 145 |
146 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) | 146 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) |
147 { | 147 { |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 } | 631 } |
632 | 632 |
633 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() | 633 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() |
634 { | 634 { |
635 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; | 635 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; |
636 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 636 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
637 if (pEnv) | 637 if (pEnv) |
638 pAdapter = FX_NEW CXFA_FWLAdapterTimerMgr(pEnv); | 638 pAdapter = FX_NEW CXFA_FWLAdapterTimerMgr(pEnv); |
639 return pAdapter; | 639 return pAdapter; |
640 } | 640 } |
OLD | NEW |