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

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

Issue 811593007: XFA: merge patch from CL 733693003, getting rid of more casts (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 12 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/javascript/PublicMethods.cpp ('k') | fpdfsdk/src/javascript/global.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 "../../include/javascript/JavaScript.h" 7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Define.h" 9 #include "../../include/javascript/JS_Define.h"
10 #include "../../include/javascript/JS_Object.h" 10 #include "../../include/javascript/JS_Object.h"
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 803
804 804
805 805
806 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); 806 CJS_Runtime* pRuntime = pContext->GetJSRuntime();
807 ASSERT(pRuntime != NULL); 807 ASSERT(pRuntime != NULL);
808 808
809 CPDFDoc_Environment* pApp = pContext->GetReaderApp(); 809 CPDFDoc_Environment* pApp = pContext->GetReaderApp();
810 ASSERT(pApp != NULL); 810 ASSERT(pApp != NULL);
811 811
812 pRuntime->BeginBlock(); 812 pRuntime->BeginBlock();
813 » pApp->JS_docmailForm(NULL, 0, bUI, (FX_LPCWSTR)cTo, (FX_LPCWSTR)cSubject , (FX_LPCWSTR)cCc, (FX_LPCWSTR)cBcc, (FX_LPCWSTR)cMsg); 813 » pApp->JS_docmailForm(NULL, 0, bUI, cTo.c_str(), cSubject.c_str(), cCc.c_ str(), cBcc.c_str(), cMsg.c_str());
814 //////////////////////////////////////////////////////////////////////// /////////////////////// 814 //////////////////////////////////////////////////////////////////////// ///////////////////////
815 pRuntime->EndBlock(); 815 pRuntime->EndBlock();
816 816
817 //return bRet; 817 //return bRet;
818 return FALSE; 818 return FALSE;
819 } 819 }
820 820
821 FX_BOOL app::launchURL(OBJ_METHOD_PARAMS) 821 FX_BOOL app::launchURL(OBJ_METHOD_PARAMS)
822 { 822 {
823 if (IsSafeMode(cc)) return TRUE; 823 if (IsSafeMode(cc)) return TRUE;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 FX_BOOL app::media(OBJ_PROP_PARAMS) 1106 FX_BOOL app::media(OBJ_PROP_PARAMS)
1107 { 1107 {
1108 return FALSE; 1108 return FALSE;
1109 } 1109 }
1110 1110
1111 FX_BOOL app::execDialog(OBJ_METHOD_PARAMS) 1111 FX_BOOL app::execDialog(OBJ_METHOD_PARAMS)
1112 { 1112 {
1113 return TRUE; 1113 return TRUE;
1114 } 1114 }
1115 1115
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/PublicMethods.cpp ('k') | fpdfsdk/src/javascript/global.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698