| 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 "../../../third_party/base/nonstd_unique_ptr.h" | 7 #include "../../../third_party/base/nonstd_unique_ptr.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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 if (i == 3) | 345 if (i == 3) |
| 346 swTitle = params[i].ToCFXWideString(); | 346 swTitle = params[i].ToCFXWideString(); |
| 347 } | 347 } |
| 348 } | 348 } |
| 349 | 349 |
| 350 CJS_Context* pContext = (CJS_Context*)cc; | 350 CJS_Context* pContext = (CJS_Context*)cc; |
| 351 ASSERT(pContext != NULL); | 351 ASSERT(pContext != NULL); |
| 352 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); | 352 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); |
| 353 ASSERT(pRuntime != NULL); | 353 ASSERT(pRuntime != NULL); |
| 354 pRuntime->BeginBlock(); | 354 pRuntime->BeginBlock(); |
| 355 vRet = MsgBox(pRuntime->GetReaderApp(), JSGetPageView(cc), swMsg.c_str(), | 355 vRet = MsgBox(pRuntime->GetReaderApp(), swMsg.c_str(), swTitle.c_str(), iType, |
| 356 swTitle.c_str(), iType, iIcon); | 356 iIcon); |
| 357 pRuntime->EndBlock(); | 357 pRuntime->EndBlock(); |
| 358 | 358 |
| 359 return TRUE; | 359 return TRUE; |
| 360 } | 360 } |
| 361 | 361 |
| 362 FX_BOOL app::beep(IFXJS_Context* cc, | 362 FX_BOOL app::beep(IFXJS_Context* cc, |
| 363 const CJS_Parameters& params, | 363 const CJS_Parameters& params, |
| 364 CJS_Value& vRet, | 364 CJS_Value& vRet, |
| 365 CFX_WideString& sError) { | 365 CFX_WideString& sError) { |
| 366 if (params.size() == 1) { | 366 if (params.size() == 1) { |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 CFX_WideString& sError) { | 853 CFX_WideString& sError) { |
| 854 return FALSE; | 854 return FALSE; |
| 855 } | 855 } |
| 856 | 856 |
| 857 FX_BOOL app::execDialog(IFXJS_Context* cc, | 857 FX_BOOL app::execDialog(IFXJS_Context* cc, |
| 858 const CJS_Parameters& params, | 858 const CJS_Parameters& params, |
| 859 CJS_Value& vRet, | 859 CJS_Value& vRet, |
| 860 CFX_WideString& sError) { | 860 CFX_WideString& sError) { |
| 861 return TRUE; | 861 return TRUE; |
| 862 } | 862 } |
| OLD | NEW |