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

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

Issue 1140033004: Merge V8 API updates to xfa branch (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 7 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/include/jsapi/fxjs_v8.h ('k') | fpdfsdk/src/javascript/Document.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"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/jsapi/fxjs_v8.h ('k') | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698