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

Side by Side Diff: fpdfsdk/javascript/app.cpp

Issue 2469813004: Rename CPDFXFA_Document to CPDFXFA_Context (Closed)
Patch Set: Merge to master Created 4 years, 1 month 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/fsdk_define.h ('k') | xfa/fwl/core/ifwl_checkbox.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 "fpdfsdk/javascript/app.h" 7 #include "fpdfsdk/javascript/app.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 return FALSE; 285 return FALSE;
286 } 286 }
287 287
288 FX_BOOL app::viewerVersion(IJS_Context* cc, 288 FX_BOOL app::viewerVersion(IJS_Context* cc,
289 CJS_PropValue& vp, 289 CJS_PropValue& vp,
290 CFX_WideString& sError) { 290 CFX_WideString& sError) {
291 if (!vp.IsGetting()) 291 if (!vp.IsGetting())
292 return FALSE; 292 return FALSE;
293 #ifdef PDF_ENABLE_XFA 293 #ifdef PDF_ENABLE_XFA
294 CJS_Context* pContext = (CJS_Context*)cc; 294 CJS_Context* pJSContext = static_cast<CJS_Context*>(cc);
295 CPDFXFA_Document* pDoc = pContext->GetFormFillEnv()->GetXFADocument(); 295 CPDFXFA_Context* pXFAContext = pJSContext->GetFormFillEnv()->GetXFAContext();
296 if (pDoc->GetDocType() == 1 || pDoc->GetDocType() == 2) { 296 if (pXFAContext->GetDocType() == 1 || pXFAContext->GetDocType() == 2) {
297 vp << JS_NUM_VIEWERVERSION_XFA; 297 vp << JS_NUM_VIEWERVERSION_XFA;
298 return TRUE; 298 return TRUE;
299 } 299 }
300 #endif // PDF_ENABLE_XFA 300 #endif // PDF_ENABLE_XFA
301 vp << JS_NUM_VIEWERVERSION; 301 vp << JS_NUM_VIEWERVERSION;
302 return TRUE; 302 return TRUE;
303 } 303 }
304 304
305 FX_BOOL app::platform(IJS_Context* cc, 305 FX_BOOL app::platform(IJS_Context* cc,
306 CJS_PropValue& vp, 306 CJS_PropValue& vp,
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 FX_BOOL app::media(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { 796 FX_BOOL app::media(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) {
797 return FALSE; 797 return FALSE;
798 } 798 }
799 799
800 FX_BOOL app::execDialog(IJS_Context* cc, 800 FX_BOOL app::execDialog(IJS_Context* cc,
801 const std::vector<CJS_Value>& params, 801 const std::vector<CJS_Value>& params,
802 CJS_Value& vRet, 802 CJS_Value& vRet,
803 CFX_WideString& sError) { 803 CFX_WideString& sError) {
804 return TRUE; 804 return TRUE;
805 } 805 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_define.h ('k') | xfa/fwl/core/ifwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698