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

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

Issue 1334833003: Merge to XFA: Remove some abstractions in fxjs_v8.h. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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/Consts.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 int nFind = m_pEnvList.Find(pEnv); 105 int nFind = m_pEnvList.Find(pEnv);
106 if (nFind != -1) { 106 if (nFind != -1) {
107 m_pEnvList.RemoveAt(nFind); 107 m_pEnvList.RemoveAt(nFind);
108 return TRUE; 108 return TRUE;
109 } 109 }
110 110
111 return FALSE; 111 return FALSE;
112 } 112 }
113 void CPDFXFA_App::ReleaseRuntime() { 113 void CPDFXFA_App::ReleaseRuntime() {
114 v8::Global<v8::Context> context; 114 v8::Global<v8::Context> context;
115 JS_ReleaseRuntime((IJS_Runtime*)m_hJSERuntime, context); 115 JS_ReleaseRuntime((v8::Isolate*)m_hJSERuntime, context);
116 } 116 }
117 117
118 void CPDFXFA_App::GetAppType(CFX_WideString& wsAppType) { 118 void CPDFXFA_App::GetAppType(CFX_WideString& wsAppType) {
119 wsAppType = m_csAppType; 119 wsAppType = m_csAppType;
120 } 120 }
121 121
122 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) { 122 void CPDFXFA_App::GetAppName(CFX_WideString& wsName) {
123 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); 123 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0);
124 if (pEnv) { 124 if (pEnv) {
125 wsName = pEnv->FFI_GetAppName(); 125 wsName = pEnv->FFI_GetAppName();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return FALSE; 547 return FALSE;
548 } 548 }
549 549
550 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { 550 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() {
551 CXFA_FWLAdapterTimerMgr* pAdapter = NULL; 551 CXFA_FWLAdapterTimerMgr* pAdapter = NULL;
552 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); 552 CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0);
553 if (pEnv) 553 if (pEnv)
554 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv); 554 pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv);
555 return pAdapter; 555 return pAdapter;
556 } 556 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/jsapi/fxjs_v8.h ('k') | fpdfsdk/src/javascript/Consts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698