| 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 "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" | 7 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
| 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
| 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
| 10 #include "fpdfsdk/include/fsdk_define.h" | 10 #include "fpdfsdk/include/fsdk_define.h" |
| 11 #include "fpdfsdk/include/fsdk_mgr.h" | 11 #include "fpdfsdk/include/fsdk_mgr.h" |
| 12 #include "fpdfsdk/include/javascript/IJavaScript.h" | 12 #include "fpdfsdk/include/javascript/IJavaScript.h" |
| 13 #include "public/fpdf_formfill.h" | 13 #include "public/fpdf_formfill.h" |
| 14 #include "xfa/include/fxbarcode/BC_BarCode.h" | 14 #include "xfa/fxbarcode/include/BC_Library.h" |
| 15 | 15 |
| 16 CPDFXFA_App* CPDFXFA_App::g_pApp = NULL; | 16 CPDFXFA_App* CPDFXFA_App::g_pApp = NULL; |
| 17 | 17 |
| 18 CPDFXFA_App* CPDFXFA_App::GetInstance() { | 18 CPDFXFA_App* CPDFXFA_App::GetInstance() { |
| 19 if (!g_pApp) { | 19 if (!g_pApp) { |
| 20 g_pApp = new CPDFXFA_App(); | 20 g_pApp = new CPDFXFA_App(); |
| 21 } | 21 } |
| 22 return g_pApp; | 22 return g_pApp; |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return FALSE; | 531 return FALSE; |
| 532 } | 532 } |
| 533 | 533 |
| 534 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { | 534 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { |
| 535 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; | 535 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; |
| 536 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); | 536 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); |
| 537 if (pEnv) | 537 if (pEnv) |
| 538 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); | 538 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); |
| 539 return pAdapter; | 539 return pAdapter; |
| 540 } | 540 } |
| OLD | NEW |