/external/pdfium/fpdfsdk/src/javascript/ |
D | Consts.cpp | 132 static void DefineGlobalConstString(CJS_Runtime* pRuntime, in END_JS_STATIC_CONST() 135 FXJS_DefineGlobalConst(pRuntime->GetIsolate(), pConstName, in END_JS_STATIC_CONST() 136 FXJS_NewString(pRuntime->GetIsolate(), pValue)); in END_JS_STATIC_CONST() 139 void CJS_GlobalConsts::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument 141 pRuntime, L"IDS_GREATER_THAN", in DefineJSObjects() 144 pRuntime, L"IDS_GT_AND_LT", in DefineJSObjects() 147 DefineGlobalConstString(pRuntime, L"IDS_LESS_THAN", in DefineJSObjects() 149 DefineGlobalConstString(pRuntime, L"IDS_INVALID_MONTH", L"**Invalid**"); in DefineJSObjects() 151 pRuntime, L"IDS_INVALID_DATE", in DefineJSObjects() 154 pRuntime, L"IDS_INVALID_VALUE", in DefineJSObjects() [all …]
|
D | app.cpp | 118 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in activeDocs() local 120 CJS_Array aDocs(pRuntime); in activeDocs() 124 v8::Local<v8::Object> pObj = FXJS_GetThisObj(pRuntime->GetIsolate()); in activeDocs() 127 (CJS_Document*)FXJS_GetPrivate(pRuntime->GetIsolate(), pObj); in activeDocs() 130 pRuntime->GetIsolate(), pRuntime, CJS_Document::g_nObjDefnID); in activeDocs() 132 (CJS_Document*)FXJS_GetPrivate(pRuntime->GetIsolate(), pObj); in activeDocs() 135 aDocs.SetElement(0, CJS_Value(pRuntime, pJSDocument)); in activeDocs() 155 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in calculate() local 156 CJS_Array aDocs(pRuntime); in calculate() 292 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in alert() local [all …]
|
D | JS_Value.h | 33 CJS_Value(CJS_Runtime* pRuntime); 34 CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t); 35 CJS_Value(CJS_Runtime* pRuntime, const int& iValue); 36 CJS_Value(CJS_Runtime* pRuntime, const double& dValue); 37 CJS_Value(CJS_Runtime* pRuntime, const float& fValue); 38 CJS_Value(CJS_Runtime* pRuntime, const bool& bValue); 39 CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Object>); 40 CJS_Value(CJS_Runtime* pRuntime, CJS_Object*); 41 CJS_Value(CJS_Runtime* pRuntime, CJS_Document*); 42 CJS_Value(CJS_Runtime* pRuntime, const FX_CHAR* pStr); [all …]
|
D | JS_Define.h | 81 CJS_Runtime* pRuntime = in JSPropGetter() local 83 if (!pRuntime) in JSPropGetter() 85 IJS_Context* pContext = pRuntime->GetCurrentContext(); in JSPropGetter() 89 CJS_PropValue value(pRuntime); in JSPropGetter() 107 CJS_Runtime* pRuntime = in JSPropSetter() local 109 if (!pRuntime) in JSPropSetter() 111 IJS_Context* pContext = pRuntime->GetCurrentContext(); in JSPropSetter() 115 CJS_PropValue propValue(CJS_Value(pRuntime, value, CJS_Value::VT_unknown)); in JSPropSetter() 146 CJS_Runtime* pRuntime = in JSMethod() local 148 if (!pRuntime) in JSMethod() [all …]
|
D | JS_Value.cpp | 24 CJS_Value::CJS_Value(CJS_Runtime* pRuntime) in CJS_Value() argument 25 : m_eType(VT_unknown), m_pJSRuntime(pRuntime) { in CJS_Value() 28 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t) in CJS_Value() argument 29 : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) { in CJS_Value() 32 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const int& iValue) in CJS_Value() argument 33 : m_pJSRuntime(pRuntime) { in CJS_Value() 37 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const bool& bValue) in CJS_Value() argument 38 : m_pJSRuntime(pRuntime) { in CJS_Value() 42 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const float& fValue) in CJS_Value() argument 43 : m_pJSRuntime(pRuntime) { in CJS_Value() [all …]
|
D | Document.cpp | 25 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in GetIsolate() local 26 return pRuntime->GetIsolate(); in GetIsolate() 140 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); in END_JS_STATIC_CONST() local 142 pDoc->AttachDoc(pRuntime->GetReaderDocument()); in END_JS_STATIC_CONST() 143 pDoc->SetIsolate(pRuntime->GetIsolate()); in END_JS_STATIC_CONST() 301 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in getField() local 303 pRuntime->GetIsolate(), pRuntime, CJS_Field::g_nObjDefnID); in getField() 396 CJS_Runtime* pRuntime = pContext->GetJSRuntime(); in mailForm() local 398 pRuntime->BeginBlock(); in mailForm() 402 pRuntime->EndBlock(); in mailForm() [all …]
|
D | JS_EventHandler.cpp | 604 CJS_Runtime* pRuntime = m_pJSContext->GetJSRuntime(); in Source() local 606 pRuntime->GetIsolate(), pRuntime, CJS_Document::g_nObjDefnID); in Source() 610 pRuntime->GetIsolate(), pRuntime, CJS_Field::g_nObjDefnID); in Source() 614 (CJS_Document*)FXJS_GetPrivate(pRuntime->GetIsolate(), pDocObj); in Source() 620 (CJS_Field*)FXJS_GetPrivate(pRuntime->GetIsolate(), pFieldObj); in Source() 627 CJS_Runtime* pRuntime = m_pJSContext->GetJSRuntime(); in Target_Field() local 629 pRuntime->GetIsolate(), pRuntime, CJS_Document::g_nObjDefnID); in Target_Field() 633 pRuntime->GetIsolate(), pRuntime, CJS_Field::g_nObjDefnID); in Target_Field() 637 (CJS_Document*)FXJS_GetPrivate(pRuntime->GetIsolate(), pDocObj); in Target_Field() 643 (CJS_Field*)FXJS_GetPrivate(pRuntime->GetIsolate(), pFieldObj); in Target_Field()
|
D | color.cpp | 136 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); \ 137 CJS_Array array(pRuntime); \ 170 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in JS_IMPLEMENT_COLORPROP() local 171 CJS_Array aSource(pRuntime); in JS_IMPLEMENT_COLORPROP() 191 CJS_Array aDest(pRuntime); in JS_IMPLEMENT_COLORPROP() 207 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in equal() local 208 CJS_Array array1(pRuntime); in equal() 209 CJS_Array array2(pRuntime); in equal()
|
D | JS_Object.cpp | 98 CJS_Runtime* pRuntime, in CJS_Timer() argument 110 m_pRuntime(pRuntime), in CJS_Timer() 119 CJS_Runtime* pRuntime = GetRuntime(); in ~CJS_Timer() local 120 if (pRuntime) in ~CJS_Timer() 121 pRuntime->RemoveObserver(this); in ~CJS_Timer()
|
D | Field.cpp | 112 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); in END_JS_STATIC_CONST() local 114 pField->SetIsolate(pRuntime->GetIsolate()); in END_JS_STATIC_CONST() 937 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in currentValueIndices() local 950 CJS_Array SelArray(pRuntime); in currentValueIndices() 951 CJS_Value SelValue(pRuntime); in currentValueIndices() 981 CJS_Array SelArray(pRuntime); in currentValueIndices() 984 i, CJS_Value(pRuntime, pFormField->GetSelectedIndex(i))); in currentValueIndices() 1371 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in exportValues() local 1372 CJS_Array ExportValusArray(pRuntime); in exportValues() 1377 i, CJS_Value(pRuntime, pFormControl->GetExportValue().c_str())); in exportValues() [all …]
|
D | global.cpp | 91 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); in InitInstance() local 94 pGlobal->Initial(pRuntime->GetReaderApp()); in InitInstance() 258 v8::Isolate* pRuntime = m_pJSObject->ToV8Object()->GetIsolate(); in UpdateGlobalPersistentVariables() local 259 v8::Local<v8::Object> pObj = FXJS_NewFxDynamicObj(pRuntime, NULL, -1); in UpdateGlobalPersistentVariables() 324 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in ObjectToArray() local 351 CJS_Value(pRuntime, v, CJS_Value::VT_string).ToCFXByteString(); in ObjectToArray() 395 v8::Isolate* pRuntime = m_pJSObject->ToV8Object()->GetIsolate(); in PutObjectProperty() local 397 FXJS_NewFxDynamicObj(pRuntime, NULL, -1); in PutObjectProperty()
|
D | PublicMethods.cpp | 340 CJS_Array CJS_PublicMethods::AF_MakeArrayFromList(CJS_Runtime* pRuntime, in AF_MakeArrayFromList() argument 342 CJS_Array StrArray(pRuntime); in AF_MakeArrayFromList() 357 StrArray.SetElement(nIndex, CJS_Value(pRuntime, StrTrim(p).c_str())); in AF_MakeArrayFromList() 365 StrArray.SetElement(nIndex, CJS_Value(pRuntime, StrTrim(pSub).c_str())); in AF_MakeArrayFromList() 916 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in AFNumber_Format() local 1025 CJS_Array arColor(pRuntime); in AFNumber_Format() 1026 CJS_Value vColElm(pRuntime); in AFNumber_Format() 1036 CJS_PropValue vProp(pRuntime); in AFNumber_Format() 1046 CJS_Array arColor(pRuntime); in AFNumber_Format() 1047 CJS_Value vColElm(pRuntime); in AFNumber_Format() [all …]
|
D | JS_Context.cpp | 16 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) in CJS_Context() argument 17 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { in CJS_Context()
|
D | Consts.h | 106 static void DefineJSObjects(CJS_Runtime* pRuntime);
|
D | util.cpp | 191 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); in printd() local 192 CJS_Value p1(pRuntime); in printd() 196 CJS_Date jsDate(pRuntime); in printd()
|
D | JS_Object.h | 80 CJS_Runtime* pRuntime,
|
D | JS_Context.h | 19 explicit CJS_Context(CJS_Runtime* pRuntime);
|
D | PublicMethods.h | 178 static CJS_Array AF_MakeArrayFromList(CJS_Runtime* pRuntime, CJS_Value val);
|
D | app.h | 162 void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript);
|
/external/pdfium/fpdfsdk/src/ |
D | fsdk_actionhandler.cpp | 149 IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); in ExecuteLinkAction() local 150 pRuntime->SetReaderDocument(pDocument); in ExecuteLinkAction() 152 IJS_Context* pContext = pRuntime->NewContext(); in ExecuteLinkAction() 161 pRuntime->ReleaseContext(pContext); in ExecuteLinkAction() 277 IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); in ExecuteScreenAction() local 278 pRuntime->SetReaderDocument(pDocument); in ExecuteScreenAction() 280 IJS_Context* pContext = pRuntime->NewContext(); in ExecuteScreenAction() 287 pRuntime->ReleaseContext(pContext); in ExecuteScreenAction() 319 IJS_Runtime* pRuntime = pDocument->GetJsRuntime(); in ExecuteBookMark() local 320 pRuntime->SetReaderDocument(pDocument); in ExecuteBookMark() [all …]
|
D | fsdk_baseform.cpp | 2204 IJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); local 2205 pRuntime->SetReaderDocument(m_pDocument); 2219 IJS_Context* pContext = pRuntime->NewContext(); 2227 pRuntime->ReleaseContext(pContext); 2256 IJS_Runtime* pRuntime = m_pDocument->GetJsRuntime(); local 2257 pRuntime->SetReaderDocument(m_pDocument); 2277 IJS_Context* pContext = pRuntime->NewContext(); 2282 pRuntime->ReleaseContext(pContext);
|