Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp

Issue 1393833006: Merge to XFA: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase, fix build, stray include. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fpdfview.cpp ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "../../include/fpdfxfa/fpdfxfa_util.h" 11 #include "../../include/fpdfxfa/fpdfxfa_util.h"
12 #include "../../include/jsapi/fxjs_v8.h"
13 #include "../../include/javascript/IJavaScript.h" 12 #include "../../include/javascript/IJavaScript.h"
14 #include "../../include/fpdfxfa/fpdfxfa_app.h" 13 #include "../../include/fpdfxfa/fpdfxfa_app.h"
15 14
16 CPDFXFA_App* CPDFXFA_App::g_pApp = NULL; 15 CPDFXFA_App* CPDFXFA_App::g_pApp = NULL;
17 16
18 CPDFXFA_App* CPDFXFA_App::GetInstance() { 17 CPDFXFA_App* CPDFXFA_App::GetInstance() {
19 if (!g_pApp) { 18 if (!g_pApp) {
20 g_pApp = new CPDFXFA_App(); 19 g_pApp = new CPDFXFA_App();
21 } 20 }
22 return g_pApp; 21 return g_pApp;
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 return FALSE; 526 return FALSE;
528 } 527 }
529 528
530 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { 529 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() {
531 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; 530 CXFA_FWLAdapterTimerMgr* pAdapter = NULL;
532 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); 531 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0);
533 if (pEnv) 532 if (pEnv)
534 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); 533 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv);
535 return pAdapter; 534 return pAdapter;
536 } 535 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfview.cpp ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698