| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |