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 "app.h" | 7 #include "app.h" |
8 | 8 |
9 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment. | 9 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment. |
10 #include "../../include/javascript/IJavaScript.h" | 10 #include "../../include/javascript/IJavaScript.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 230 } |
231 | 231 |
232 return FALSE; | 232 return FALSE; |
233 } | 233 } |
234 | 234 |
235 // creates a new fdf object that contains no data | 235 // creates a new fdf object that contains no data |
236 // comment: need reader support | 236 // comment: need reader support |
237 // note: | 237 // note: |
238 // CFDF_Document * CPDFDoc_Environment::NewFDF(); | 238 // CFDF_Document * CPDFDoc_Environment::NewFDF(); |
239 FX_BOOL app::newFDF(IJS_Context* cc, | 239 FX_BOOL app::newFDF(IJS_Context* cc, |
240 const CJS_Parameters& params, | 240 const std::vector<CJS_Value>& params, |
241 CJS_Value& vRet, | 241 CJS_Value& vRet, |
242 CFX_WideString& sError) { | 242 CFX_WideString& sError) { |
243 return TRUE; | 243 return TRUE; |
244 } | 244 } |
245 // opens a specified pdf document and returns its document object | 245 // opens a specified pdf document and returns its document object |
246 // comment:need reader support | 246 // comment:need reader support |
247 // note: as defined in js reference, the proto of this function's fourth | 247 // note: as defined in js reference, the proto of this function's fourth |
248 // parmeters, how old an fdf document while do not show it. | 248 // parmeters, how old an fdf document while do not show it. |
249 // CFDF_Document * CPDFDoc_Environment::OpenFDF(string strPath,bool bUserConv); | 249 // CFDF_Document * CPDFDoc_Environment::OpenFDF(string strPath,bool bUserConv); |
250 | 250 |
251 FX_BOOL app::openFDF(IJS_Context* cc, | 251 FX_BOOL app::openFDF(IJS_Context* cc, |
252 const CJS_Parameters& params, | 252 const std::vector<CJS_Value>& params, |
253 CJS_Value& vRet, | 253 CJS_Value& vRet, |
254 CFX_WideString& sError) { | 254 CFX_WideString& sError) { |
255 return TRUE; | 255 return TRUE; |
256 } | 256 } |
257 | 257 |
258 FX_BOOL app::alert(IJS_Context* cc, | 258 FX_BOOL app::alert(IJS_Context* cc, |
259 const CJS_Parameters& params, | 259 const std::vector<CJS_Value>& params, |
260 CJS_Value& vRet, | 260 CJS_Value& vRet, |
261 CFX_WideString& sError) { | 261 CFX_WideString& sError) { |
262 int iSize = params.size(); | 262 int iSize = params.size(); |
263 if (iSize < 1) | 263 if (iSize < 1) |
264 return FALSE; | 264 return FALSE; |
265 | 265 |
266 CFX_WideString swMsg = L""; | 266 CFX_WideString swMsg = L""; |
267 CFX_WideString swTitle = L""; | 267 CFX_WideString swTitle = L""; |
268 int iIcon = 0; | 268 int iIcon = 0; |
269 int iType = 0; | 269 int iType = 0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 } | 344 } |
345 | 345 |
346 pRuntime->BeginBlock(); | 346 pRuntime->BeginBlock(); |
347 vRet = MsgBox(pRuntime->GetReaderApp(), swMsg.c_str(), swTitle.c_str(), iType, | 347 vRet = MsgBox(pRuntime->GetReaderApp(), swMsg.c_str(), swTitle.c_str(), iType, |
348 iIcon); | 348 iIcon); |
349 pRuntime->EndBlock(); | 349 pRuntime->EndBlock(); |
350 return TRUE; | 350 return TRUE; |
351 } | 351 } |
352 | 352 |
353 FX_BOOL app::beep(IJS_Context* cc, | 353 FX_BOOL app::beep(IJS_Context* cc, |
354 const CJS_Parameters& params, | 354 const std::vector<CJS_Value>& params, |
355 CJS_Value& vRet, | 355 CJS_Value& vRet, |
356 CFX_WideString& sError) { | 356 CFX_WideString& sError) { |
357 if (params.size() == 1) { | 357 if (params.size() == 1) { |
358 CJS_Context* pContext = (CJS_Context*)cc; | 358 CJS_Context* pContext = (CJS_Context*)cc; |
359 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); | 359 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); |
360 CPDFDoc_Environment* pEnv = pRuntime->GetReaderApp(); | 360 CPDFDoc_Environment* pEnv = pRuntime->GetReaderApp(); |
361 pEnv->JS_appBeep(params[0].ToInt()); | 361 pEnv->JS_appBeep(params[0].ToInt()); |
362 return TRUE; | 362 return TRUE; |
363 } | 363 } |
364 | 364 |
365 sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSPARAMERROR); | 365 sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSPARAMERROR); |
366 return FALSE; | 366 return FALSE; |
367 } | 367 } |
368 | 368 |
369 FX_BOOL app::findComponent(IJS_Context* cc, | 369 FX_BOOL app::findComponent(IJS_Context* cc, |
370 const CJS_Parameters& params, | 370 const std::vector<CJS_Value>& params, |
371 CJS_Value& vRet, | 371 CJS_Value& vRet, |
372 CFX_WideString& sError) { | 372 CFX_WideString& sError) { |
373 return TRUE; | 373 return TRUE; |
374 } | 374 } |
375 | 375 |
376 FX_BOOL app::popUpMenuEx(IJS_Context* cc, | 376 FX_BOOL app::popUpMenuEx(IJS_Context* cc, |
377 const CJS_Parameters& params, | 377 const std::vector<CJS_Value>& params, |
378 CJS_Value& vRet, | 378 CJS_Value& vRet, |
379 CFX_WideString& sError) { | 379 CFX_WideString& sError) { |
380 return FALSE; | 380 return FALSE; |
381 } | 381 } |
382 | 382 |
383 FX_BOOL app::fs(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { | 383 FX_BOOL app::fs(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { |
384 return FALSE; | 384 return FALSE; |
385 } | 385 } |
386 | 386 |
387 FX_BOOL app::setInterval(IJS_Context* cc, | 387 FX_BOOL app::setInterval(IJS_Context* cc, |
388 const CJS_Parameters& params, | 388 const std::vector<CJS_Value>& params, |
389 CJS_Value& vRet, | 389 CJS_Value& vRet, |
390 CFX_WideString& sError) { | 390 CFX_WideString& sError) { |
391 CJS_Context* pContext = (CJS_Context*)cc; | 391 CJS_Context* pContext = (CJS_Context*)cc; |
392 if (params.size() > 2 || params.size() == 0) { | 392 if (params.size() > 2 || params.size() == 0) { |
393 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); | 393 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); |
394 return FALSE; | 394 return FALSE; |
395 } | 395 } |
396 | 396 |
397 CFX_WideString script = params.size() > 0 ? params[0].ToCFXWideString() : L""; | 397 CFX_WideString script = params.size() > 0 ? params[0].ToCFXWideString() : L""; |
398 if (script.IsEmpty()) { | 398 if (script.IsEmpty()) { |
(...skipping 15 matching lines...) Expand all Loading... |
414 CJS_TimerObj* pJS_TimerObj = | 414 CJS_TimerObj* pJS_TimerObj = |
415 (CJS_TimerObj*)FXJS_GetPrivate(pRuntime->GetIsolate(), pRetObj); | 415 (CJS_TimerObj*)FXJS_GetPrivate(pRuntime->GetIsolate(), pRetObj); |
416 TimerObj* pTimerObj = (TimerObj*)pJS_TimerObj->GetEmbedObject(); | 416 TimerObj* pTimerObj = (TimerObj*)pJS_TimerObj->GetEmbedObject(); |
417 pTimerObj->SetTimer(pTimer); | 417 pTimerObj->SetTimer(pTimer); |
418 | 418 |
419 vRet = pRetObj; | 419 vRet = pRetObj; |
420 return TRUE; | 420 return TRUE; |
421 } | 421 } |
422 | 422 |
423 FX_BOOL app::setTimeOut(IJS_Context* cc, | 423 FX_BOOL app::setTimeOut(IJS_Context* cc, |
424 const CJS_Parameters& params, | 424 const std::vector<CJS_Value>& params, |
425 CJS_Value& vRet, | 425 CJS_Value& vRet, |
426 CFX_WideString& sError) { | 426 CFX_WideString& sError) { |
427 if (params.size() > 2 || params.size() == 0) { | 427 if (params.size() > 2 || params.size() == 0) { |
428 sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSPARAMERROR); | 428 sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSPARAMERROR); |
429 return FALSE; | 429 return FALSE; |
430 } | 430 } |
431 | 431 |
432 CJS_Context* pContext = (CJS_Context*)cc; | 432 CJS_Context* pContext = (CJS_Context*)cc; |
433 ASSERT(pContext != NULL); | 433 ASSERT(pContext != NULL); |
434 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); | 434 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); |
(...skipping 20 matching lines...) Expand all Loading... |
455 CJS_TimerObj* pJS_TimerObj = | 455 CJS_TimerObj* pJS_TimerObj = |
456 (CJS_TimerObj*)FXJS_GetPrivate(pRuntime->GetIsolate(), pRetObj); | 456 (CJS_TimerObj*)FXJS_GetPrivate(pRuntime->GetIsolate(), pRetObj); |
457 TimerObj* pTimerObj = (TimerObj*)pJS_TimerObj->GetEmbedObject(); | 457 TimerObj* pTimerObj = (TimerObj*)pJS_TimerObj->GetEmbedObject(); |
458 pTimerObj->SetTimer(pTimer); | 458 pTimerObj->SetTimer(pTimer); |
459 | 459 |
460 vRet = pRetObj; | 460 vRet = pRetObj; |
461 return TRUE; | 461 return TRUE; |
462 } | 462 } |
463 | 463 |
464 FX_BOOL app::clearTimeOut(IJS_Context* cc, | 464 FX_BOOL app::clearTimeOut(IJS_Context* cc, |
465 const CJS_Parameters& params, | 465 const std::vector<CJS_Value>& params, |
466 CJS_Value& vRet, | 466 CJS_Value& vRet, |
467 CFX_WideString& sError) { | 467 CFX_WideString& sError) { |
468 CJS_Context* pContext = (CJS_Context*)cc; | 468 CJS_Context* pContext = (CJS_Context*)cc; |
469 if (params.size() != 1) { | 469 if (params.size() != 1) { |
470 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); | 470 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); |
471 return FALSE; | 471 return FALSE; |
472 } | 472 } |
473 | 473 |
474 if (params[0].GetType() == CJS_Value::VT_fxobject) { | 474 if (params[0].GetType() == CJS_Value::VT_fxobject) { |
475 v8::Local<v8::Object> pObj = params[0].ToV8Object(); | 475 v8::Local<v8::Object> pObj = params[0].ToV8Object(); |
(...skipping 15 matching lines...) Expand all Loading... |
491 } | 491 } |
492 } | 492 } |
493 } | 493 } |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 return TRUE; | 497 return TRUE; |
498 } | 498 } |
499 | 499 |
500 FX_BOOL app::clearInterval(IJS_Context* cc, | 500 FX_BOOL app::clearInterval(IJS_Context* cc, |
501 const CJS_Parameters& params, | 501 const std::vector<CJS_Value>& params, |
502 CJS_Value& vRet, | 502 CJS_Value& vRet, |
503 CFX_WideString& sError) { | 503 CFX_WideString& sError) { |
504 CJS_Context* pContext = (CJS_Context*)cc; | 504 CJS_Context* pContext = (CJS_Context*)cc; |
505 if (params.size() != 1) { | 505 if (params.size() != 1) { |
506 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); | 506 sError = JSGetStringFromID(pContext, IDS_STRING_JSPARAMERROR); |
507 return FALSE; | 507 return FALSE; |
508 } | 508 } |
509 | 509 |
510 if (params[0].GetType() == CJS_Value::VT_fxobject) { | 510 if (params[0].GetType() == CJS_Value::VT_fxobject) { |
511 v8::Local<v8::Object> pObj = params[0].ToV8Object(); | 511 v8::Local<v8::Object> pObj = params[0].ToV8Object(); |
(...skipping 15 matching lines...) Expand all Loading... |
527 } | 527 } |
528 } | 528 } |
529 } | 529 } |
530 } | 530 } |
531 } | 531 } |
532 | 532 |
533 return TRUE; | 533 return TRUE; |
534 } | 534 } |
535 | 535 |
536 FX_BOOL app::execMenuItem(IJS_Context* cc, | 536 FX_BOOL app::execMenuItem(IJS_Context* cc, |
537 const CJS_Parameters& params, | 537 const std::vector<CJS_Value>& params, |
538 CJS_Value& vRet, | 538 CJS_Value& vRet, |
539 CFX_WideString& sError) { | 539 CFX_WideString& sError) { |
540 return FALSE; | 540 return FALSE; |
541 } | 541 } |
542 | 542 |
543 void app::TimerProc(CJS_Timer* pTimer) { | 543 void app::TimerProc(CJS_Timer* pTimer) { |
544 ASSERT(pTimer != NULL); | 544 ASSERT(pTimer != NULL); |
545 | 545 |
546 CJS_Runtime* pRuntime = pTimer->GetRuntime(); | 546 CJS_Runtime* pRuntime = pTimer->GetRuntime(); |
547 | 547 |
(...skipping 16 matching lines...) Expand all Loading... |
564 if (!pRuntime->IsBlocking()) { | 564 if (!pRuntime->IsBlocking()) { |
565 IJS_Context* pContext = pRuntime->NewContext(); | 565 IJS_Context* pContext = pRuntime->NewContext(); |
566 pContext->OnExternal_Exec(); | 566 pContext->OnExternal_Exec(); |
567 CFX_WideString wtInfo; | 567 CFX_WideString wtInfo; |
568 pContext->RunScript(wsScript, &wtInfo); | 568 pContext->RunScript(wsScript, &wtInfo); |
569 pRuntime->ReleaseContext(pContext); | 569 pRuntime->ReleaseContext(pContext); |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 FX_BOOL app::goBack(IJS_Context* cc, | 573 FX_BOOL app::goBack(IJS_Context* cc, |
574 const CJS_Parameters& params, | 574 const std::vector<CJS_Value>& params, |
575 CJS_Value& vRet, | 575 CJS_Value& vRet, |
576 CFX_WideString& sError) { | 576 CFX_WideString& sError) { |
577 // Not supported. | 577 // Not supported. |
578 return TRUE; | 578 return TRUE; |
579 } | 579 } |
580 | 580 |
581 FX_BOOL app::goForward(IJS_Context* cc, | 581 FX_BOOL app::goForward(IJS_Context* cc, |
582 const CJS_Parameters& params, | 582 const std::vector<CJS_Value>& params, |
583 CJS_Value& vRet, | 583 CJS_Value& vRet, |
584 CFX_WideString& sError) { | 584 CFX_WideString& sError) { |
585 // Not supported. | 585 // Not supported. |
586 return TRUE; | 586 return TRUE; |
587 } | 587 } |
588 | 588 |
589 FX_BOOL app::mailMsg(IJS_Context* cc, | 589 FX_BOOL app::mailMsg(IJS_Context* cc, |
590 const CJS_Parameters& params, | 590 const std::vector<CJS_Value>& params, |
591 CJS_Value& vRet, | 591 CJS_Value& vRet, |
592 CFX_WideString& sError) { | 592 CFX_WideString& sError) { |
593 if (params.size() < 1) | 593 if (params.size() < 1) |
594 return FALSE; | 594 return FALSE; |
595 | 595 |
596 FX_BOOL bUI = TRUE; | 596 FX_BOOL bUI = TRUE; |
597 CFX_WideString cTo = L""; | 597 CFX_WideString cTo = L""; |
598 CFX_WideString cCc = L""; | 598 CFX_WideString cCc = L""; |
599 CFX_WideString cBcc = L""; | 599 CFX_WideString cBcc = L""; |
600 CFX_WideString cSubject = L""; | 600 CFX_WideString cSubject = L""; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 pRuntime->BeginBlock(); | 647 pRuntime->BeginBlock(); |
648 pContext->GetReaderApp()->JS_docmailForm(NULL, 0, bUI, cTo.c_str(), | 648 pContext->GetReaderApp()->JS_docmailForm(NULL, 0, bUI, cTo.c_str(), |
649 cSubject.c_str(), cCc.c_str(), | 649 cSubject.c_str(), cCc.c_str(), |
650 cBcc.c_str(), cMsg.c_str()); | 650 cBcc.c_str(), cMsg.c_str()); |
651 pRuntime->EndBlock(); | 651 pRuntime->EndBlock(); |
652 | 652 |
653 return FALSE; | 653 return FALSE; |
654 } | 654 } |
655 | 655 |
656 FX_BOOL app::launchURL(IJS_Context* cc, | 656 FX_BOOL app::launchURL(IJS_Context* cc, |
657 const CJS_Parameters& params, | 657 const std::vector<CJS_Value>& params, |
658 CJS_Value& vRet, | 658 CJS_Value& vRet, |
659 CFX_WideString& sError) { | 659 CFX_WideString& sError) { |
660 // Unsafe, not supported. | 660 // Unsafe, not supported. |
661 return TRUE; | 661 return TRUE; |
662 } | 662 } |
663 | 663 |
664 FX_BOOL app::runtimeHighlight(IJS_Context* cc, | 664 FX_BOOL app::runtimeHighlight(IJS_Context* cc, |
665 CJS_PropValue& vp, | 665 CJS_PropValue& vp, |
666 CFX_WideString& sError) { | 666 CFX_WideString& sError) { |
667 if (vp.IsSetting()) { | 667 if (vp.IsSetting()) { |
668 vp >> m_bRuntimeHighLight; | 668 vp >> m_bRuntimeHighLight; |
669 } else { | 669 } else { |
670 vp << m_bRuntimeHighLight; | 670 vp << m_bRuntimeHighLight; |
671 } | 671 } |
672 | 672 |
673 return TRUE; | 673 return TRUE; |
674 } | 674 } |
675 | 675 |
676 FX_BOOL app::fullscreen(IJS_Context* cc, | 676 FX_BOOL app::fullscreen(IJS_Context* cc, |
677 CJS_PropValue& vp, | 677 CJS_PropValue& vp, |
678 CFX_WideString& sError) { | 678 CFX_WideString& sError) { |
679 return FALSE; | 679 return FALSE; |
680 } | 680 } |
681 | 681 |
682 FX_BOOL app::popUpMenu(IJS_Context* cc, | 682 FX_BOOL app::popUpMenu(IJS_Context* cc, |
683 const CJS_Parameters& params, | 683 const std::vector<CJS_Value>& params, |
684 CJS_Value& vRet, | 684 CJS_Value& vRet, |
685 CFX_WideString& sError) { | 685 CFX_WideString& sError) { |
686 return FALSE; | 686 return FALSE; |
687 } | 687 } |
688 | 688 |
689 FX_BOOL app::browseForDoc(IJS_Context* cc, | 689 FX_BOOL app::browseForDoc(IJS_Context* cc, |
690 const CJS_Parameters& params, | 690 const std::vector<CJS_Value>& params, |
691 CJS_Value& vRet, | 691 CJS_Value& vRet, |
692 CFX_WideString& sError) { | 692 CFX_WideString& sError) { |
693 // Unsafe, not supported. | 693 // Unsafe, not supported. |
694 return TRUE; | 694 return TRUE; |
695 } | 695 } |
696 | 696 |
697 CFX_WideString app::SysPathToPDFPath(const CFX_WideString& sOldPath) { | 697 CFX_WideString app::SysPathToPDFPath(const CFX_WideString& sOldPath) { |
698 CFX_WideString sRet = L"/"; | 698 CFX_WideString sRet = L"/"; |
699 | 699 |
700 for (int i = 0, sz = sOldPath.GetLength(); i < sz; i++) { | 700 for (int i = 0, sz = sOldPath.GetLength(); i < sz; i++) { |
701 wchar_t c = sOldPath.GetAt(i); | 701 wchar_t c = sOldPath.GetAt(i); |
702 if (c == L':') { | 702 if (c == L':') { |
703 } else { | 703 } else { |
704 if (c == L'\\') { | 704 if (c == L'\\') { |
705 sRet += L"/"; | 705 sRet += L"/"; |
706 } else { | 706 } else { |
707 sRet += c; | 707 sRet += c; |
708 } | 708 } |
709 } | 709 } |
710 } | 710 } |
711 | 711 |
712 return sRet; | 712 return sRet; |
713 } | 713 } |
714 | 714 |
715 FX_BOOL app::newDoc(IJS_Context* cc, | 715 FX_BOOL app::newDoc(IJS_Context* cc, |
716 const CJS_Parameters& params, | 716 const std::vector<CJS_Value>& params, |
717 CJS_Value& vRet, | 717 CJS_Value& vRet, |
718 CFX_WideString& sError) { | 718 CFX_WideString& sError) { |
719 return FALSE; | 719 return FALSE; |
720 } | 720 } |
721 | 721 |
722 FX_BOOL app::openDoc(IJS_Context* cc, | 722 FX_BOOL app::openDoc(IJS_Context* cc, |
723 const CJS_Parameters& params, | 723 const std::vector<CJS_Value>& params, |
724 CJS_Value& vRet, | 724 CJS_Value& vRet, |
725 CFX_WideString& sError) { | 725 CFX_WideString& sError) { |
726 return FALSE; | 726 return FALSE; |
727 } | 727 } |
728 | 728 |
729 FX_BOOL app::response(IJS_Context* cc, | 729 FX_BOOL app::response(IJS_Context* cc, |
730 const CJS_Parameters& params, | 730 const std::vector<CJS_Value>& params, |
731 CJS_Value& vRet, | 731 CJS_Value& vRet, |
732 CFX_WideString& sError) { | 732 CFX_WideString& sError) { |
733 CFX_WideString swQuestion = L""; | 733 CFX_WideString swQuestion = L""; |
734 CFX_WideString swLabel = L""; | 734 CFX_WideString swLabel = L""; |
735 CFX_WideString swTitle = L"PDF"; | 735 CFX_WideString swTitle = L"PDF"; |
736 CFX_WideString swDefault = L""; | 736 CFX_WideString swDefault = L""; |
737 bool bPassWord = false; | 737 bool bPassWord = false; |
738 | 738 |
739 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); | 739 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); |
740 v8::Isolate* isolate = pRuntime->GetIsolate(); | 740 v8::Isolate* isolate = pRuntime->GetIsolate(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 (unsigned short*)pBuff.get(), nLengthBytes / sizeof(unsigned short)); | 805 (unsigned short*)pBuff.get(), nLengthBytes / sizeof(unsigned short)); |
806 vRet = ret_string.c_str(); | 806 vRet = ret_string.c_str(); |
807 return TRUE; | 807 return TRUE; |
808 } | 808 } |
809 | 809 |
810 FX_BOOL app::media(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { | 810 FX_BOOL app::media(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { |
811 return FALSE; | 811 return FALSE; |
812 } | 812 } |
813 | 813 |
814 FX_BOOL app::execDialog(IJS_Context* cc, | 814 FX_BOOL app::execDialog(IJS_Context* cc, |
815 const CJS_Parameters& params, | 815 const std::vector<CJS_Value>& params, |
816 CJS_Value& vRet, | 816 CJS_Value& vRet, |
817 CFX_WideString& sError) { | 817 CFX_WideString& sError) { |
818 return TRUE; | 818 return TRUE; |
819 } | 819 } |
OLD | NEW |