| 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/fpdfxfa/fpdfxfa_app.h" | 7 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "fpdfsdk/cpdfsdk_environment.h" | 11 #include "fpdfsdk/cpdfsdk_environment.h" |
| 12 #include "fpdfsdk/fpdfxfa/fpdfxfa_util.h" | 12 #include "fpdfsdk/fpdfxfa/fpdfxfa_util.h" |
| 13 #include "fpdfsdk/fsdk_define.h" | 13 #include "fpdfsdk/fsdk_define.h" |
| 14 #include "xfa/fxbarcode/include/BC_Library.h" | 14 #include "xfa/fxbarcode/BC_Library.h" |
| 15 #include "xfa/fxfa/include/xfa_ffapp.h" | 15 #include "xfa/fxfa/include/xfa_ffapp.h" |
| 16 #include "xfa/fxfa/include/xfa_fontmgr.h" | 16 #include "xfa/fxfa/include/xfa_fontmgr.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 CPDFXFA_App* g_pApp = nullptr; | 20 CPDFXFA_App* g_pApp = nullptr; |
| 21 | 21 |
| 22 } // namespace | 22 } // namespace |
| 23 | 23 |
| 24 CPDFXFA_App* CPDFXFA_App::GetInstance() { | 24 CPDFXFA_App* CPDFXFA_App::GetInstance() { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 } | 331 } |
| 332 } | 332 } |
| 333 | 333 |
| 334 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { | 334 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { |
| 335 CXFA_FWLAdapterTimerMgr* pAdapter = nullptr; | 335 CXFA_FWLAdapterTimerMgr* pAdapter = nullptr; |
| 336 CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); | 336 CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); |
| 337 if (pEnv) | 337 if (pEnv) |
| 338 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); | 338 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); |
| 339 return pAdapter; | 339 return pAdapter; |
| 340 } | 340 } |
| OLD | NEW |