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