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/JavaScript.h" | 8 #include "../../include/javascript/JavaScript.h" |
9 #include "../../include/javascript/IJavaScript.h" | 9 #include "../../include/javascript/IJavaScript.h" |
10 #include "../../include/javascript/JS_Define.h" | 10 #include "../../include/javascript/JS_Define.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (i == 3) | 339 if (i == 3) |
340 swTitle = params[i].ToCFXWideString(); | 340 swTitle = params[i].ToCFXWideString(); |
341 } | 341 } |
342 } | 342 } |
343 | 343 |
344 CJS_Context* pContext = (CJS_Context*)cc; | 344 CJS_Context* pContext = (CJS_Context*)cc; |
345 ASSERT(pContext != NULL); | 345 ASSERT(pContext != NULL); |
346 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); | 346 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); |
347 ASSERT(pRuntime != NULL); | 347 ASSERT(pRuntime != NULL); |
348 pRuntime->BeginBlock(); | 348 pRuntime->BeginBlock(); |
349 vRet = MsgBox(pRuntime->GetReaderApp(), JSGetPageView(cc), swMsg.c_str(), | 349 vRet = MsgBox(pRuntime->GetReaderApp(), swMsg.c_str(), swTitle.c_str(), iType, |
350 swTitle.c_str(), iType, iIcon); | 350 iIcon); |
351 pRuntime->EndBlock(); | 351 pRuntime->EndBlock(); |
352 | 352 |
353 return TRUE; | 353 return TRUE; |
354 } | 354 } |
355 | 355 |
356 FX_BOOL app::beep(IFXJS_Context* cc, | 356 FX_BOOL app::beep(IFXJS_Context* cc, |
357 const CJS_Parameters& params, | 357 const CJS_Parameters& params, |
358 CJS_Value& vRet, | 358 CJS_Value& vRet, |
359 CFX_WideString& sError) { | 359 CFX_WideString& sError) { |
360 if (params.size() == 1) { | 360 if (params.size() == 1) { |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 CFX_WideString& sError) { | 847 CFX_WideString& sError) { |
848 return FALSE; | 848 return FALSE; |
849 } | 849 } |
850 | 850 |
851 FX_BOOL app::execDialog(IFXJS_Context* cc, | 851 FX_BOOL app::execDialog(IFXJS_Context* cc, |
852 const CJS_Parameters& params, | 852 const CJS_Parameters& params, |
853 CJS_Value& vRet, | 853 CJS_Value& vRet, |
854 CFX_WideString& sError) { | 854 CFX_WideString& sError) { |
855 return TRUE; | 855 return TRUE; |
856 } | 856 } |
OLD | NEW |