Lines Matching refs:pRuntime
25 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in GetIsolate() local
26 ASSERT(pRuntime != NULL); in GetIsolate()
28 return pRuntime->GetIsolate(); in GetIsolate()
148 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in activeDocs() local
149 ASSERT(pRuntime != NULL); in activeDocs()
153 CJS_Array aDocs(pRuntime->GetIsolate()); in activeDocs()
165 JSFXObject pObj = JS_GetThisObj(*pRuntime); in activeDocs()
167 if (JS_GetObjDefnID(pObj) == JS_GetObjDefnID(*pRuntime, L"Document")) in activeDocs()
169 pJSDocument = (CJS_Document*)JS_GetPrivate(pRuntime->GetIsolate(),pObj); in activeDocs()
174 … JSFXObject pObj = JS_NewFxDynamicObj(*pRuntime, pContext, JS_GetObjDefnID(*pRuntime,L"Document")); in activeDocs()
175 pJSDocument = (CJS_Document*)JS_GetPrivate(pRuntime->GetIsolate(),pObj); in activeDocs()
182 aDocs.SetElement(0,CJS_Value(pRuntime->GetIsolate(),pJSDocument)); in activeDocs()
209 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in calculate() local
210 ASSERT(pRuntime != NULL); in calculate()
212 CJS_Array aDocs(pRuntime->GetIsolate()); in calculate()
444 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in alert() local
445 ASSERT(pRuntime != NULL); in alert()
446 pRuntime->BeginBlock(); in alert()
447 vRet = MsgBox(pRuntime->GetReaderApp(), JSGetPageView(cc),swMsg,swTitle,iType,iIcon); in alert()
448 pRuntime->EndBlock(); in alert()
459 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in beep() local
460 CPDFDoc_Environment * pEnv = pRuntime->GetReaderApp(); in beep()
489 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in fs()
490 ASSERT(pRuntime != NULL); in fs()
513 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in setInterval() local
514 ASSERT(pRuntime != NULL); in setInterval()
525 CPDFDoc_Environment* pApp = pRuntime->GetReaderApp(); in setInterval()
531 pTimer->SetRuntime(pRuntime); in setInterval()
537 …JSFXObject pRetObj = JS_NewFxDynamicObj(*pRuntime, pContext, JS_GetObjDefnID(*pRuntime, L"TimerObj… in setInterval()
539 CJS_TimerObj* pJS_TimerObj = (CJS_TimerObj*)JS_GetPrivate(pRuntime->GetIsolate(),pRetObj); in setInterval()
562 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in setTimeOut() local
563 ASSERT(pRuntime != NULL); in setTimeOut()
574 CPDFDoc_Environment* pApp = pRuntime->GetReaderApp(); in setTimeOut()
580 pTimer->SetRuntime(pRuntime); in setTimeOut()
587 …JSFXObject pRetObj = JS_NewFxDynamicObj(*pRuntime, pContext, JS_GetObjDefnID(*pRuntime, L"TimerObj… in setTimeOut()
590 CJS_TimerObj* pJS_TimerObj = (CJS_TimerObj*)JS_GetPrivate(pRuntime->GetIsolate(),pRetObj); in setTimeOut()
607 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in clearTimeOut() local
608 ASSERT(pRuntime != NULL); in clearTimeOut()
620 if (JS_GetObjDefnID(pObj) == JS_GetObjDefnID(*pRuntime, L"TimerObj")) in clearTimeOut()
655 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in clearInterval() local
656 ASSERT(pRuntime != NULL); in clearInterval()
668 if (JS_GetObjDefnID(pObj) == JS_GetObjDefnID(*pRuntime, L"TimerObj")) in clearInterval()
724 void app::RunJsScript(CJS_Runtime* pRuntime,const CFX_WideString& wsScript) in RunJsScript() argument
726 ASSERT(pRuntime != NULL); in RunJsScript()
728 if (!pRuntime->IsBlocking()) in RunJsScript()
730 IFXJS_Context* pContext = pRuntime->NewContext(); in RunJsScript()
735 pRuntime->ReleaseContext(pContext); in RunJsScript()
810 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in mailMsg() local
811 ASSERT(pRuntime != NULL); in mailMsg()
816 pRuntime->BeginBlock(); in mailMsg()
819 pRuntime->EndBlock(); in mailMsg()
837 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in launchURL() local
838 ASSERT(pRuntime != NULL); in launchURL()
840 pRuntime->BeginBlock(); in launchURL()
842 pRuntime->EndBlock(); in launchURL()
927 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in browseForDoc() local
928 ASSERT(pRuntime != NULL); in browseForDoc()
936 JSFXObject pRetObj = JS_NewFxDynamicObj(*pRuntime, pContext, -1); in browseForDoc()