/external/pdfium/fxjs/ |
D | cjs_color.cpp | 46 v8::Local<v8::Array> color::ConvertPWLColorToArray(CJS_Runtime* pRuntime, in ConvertPWLColorToArray() argument 51 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 52 pRuntime->PutArrayElement(array, 0, pRuntime->NewString(L"T")); in ConvertPWLColorToArray() 55 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 56 pRuntime->PutArrayElement(array, 0, pRuntime->NewString(L"G")); in ConvertPWLColorToArray() 57 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray() 60 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 61 pRuntime->PutArrayElement(array, 0, pRuntime->NewString(L"RGB")); in ConvertPWLColorToArray() 62 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray() 63 pRuntime->PutArrayElement(array, 2, pRuntime->NewNumber(color.fColor2)); in ConvertPWLColorToArray() [all …]
|
D | cjs_event.cpp | 51 CJS_Return event::get_change(CJS_Runtime* pRuntime) { in get_change() argument 53 pRuntime->GetCurrentEventContext()->GetEventHandler(); in get_change() 54 return CJS_Return(pRuntime->NewString(pEvent->Change().c_str())); in get_change() 57 CJS_Return event::set_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_change() argument 59 pRuntime->GetCurrentEventContext()->GetEventHandler(); in set_change() 63 wChange = pRuntime->ToWideString(vp); in set_change() 68 CJS_Return event::get_change_ex(CJS_Runtime* pRuntime) { in get_change_ex() argument 70 pRuntime->GetCurrentEventContext()->GetEventHandler(); in get_change_ex() 72 return CJS_Return(pRuntime->NewString(pEvent->ChangeEx().c_str())); in get_change_ex() 75 CJS_Return event::set_change_ex(CJS_Runtime* pRuntime, in set_change_ex() argument [all …]
|
D | cjs_app.cpp | 92 CJS_Return app::get_active_docs(CJS_Runtime* pRuntime) { in get_active_docs() argument 94 v8::Local<v8::Object> pObj = pRuntime->GetThisObj(); in get_active_docs() 96 pJSDocument = static_cast<CJS_Document*>(pRuntime->GetObjectPrivate(pObj)); in get_active_docs() 98 v8::Local<v8::Array> aDocs = pRuntime->NewArray(); in get_active_docs() 99 pRuntime->PutArrayElement( in get_active_docs() 103 if (pRuntime->GetArrayLength(aDocs) > 0) in get_active_docs() 105 return CJS_Return(pRuntime->NewUndefined()); in get_active_docs() 108 CJS_Return app::set_active_docs(CJS_Runtime* pRuntime, in set_active_docs() argument 113 CJS_Return app::get_calculate(CJS_Runtime* pRuntime) { in get_calculate() argument 114 return CJS_Return(pRuntime->NewBoolean(m_bCalculate)); in get_calculate() [all …]
|
D | cjs_document.cpp | 127 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); in InitInstance() local 129 pDoc->SetFormFillEnv(pRuntime->GetFormFillEnv()); in InitInstance() 141 CJS_Return Document::get_num_fields(CJS_Runtime* pRuntime) { in get_num_fields() argument 147 return CJS_Return(pRuntime->NewNumber( in get_num_fields() 151 CJS_Return Document::set_num_fields(CJS_Runtime* pRuntime, in set_num_fields() argument 156 CJS_Return Document::get_dirty(CJS_Runtime* pRuntime) { in get_dirty() argument 159 return CJS_Return(pRuntime->NewBoolean(!!m_pFormFillEnv->GetChangeMark())); in get_dirty() 162 CJS_Return Document::set_dirty(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_dirty() argument 166 pRuntime->ToBoolean(vp) ? m_pFormFillEnv->SetChangeMark() in set_dirty() 171 CJS_Return Document::get_ADBE(CJS_Runtime* pRuntime) { in get_ADBE() argument [all …]
|
D | cjs_field.h | 38 CJS_Return get_alignment(CJS_Runtime* pRuntime); 39 CJS_Return set_alignment(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 41 CJS_Return get_border_style(CJS_Runtime* pRuntime); 42 CJS_Return set_border_style(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 44 CJS_Return get_button_align_x(CJS_Runtime* pRuntime); 45 CJS_Return set_button_align_x(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 47 CJS_Return get_button_align_y(CJS_Runtime* pRuntime); 48 CJS_Return set_button_align_y(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 50 CJS_Return get_button_fit_bounds(CJS_Runtime* pRuntime); 51 CJS_Return set_button_fit_bounds(CJS_Runtime* pRuntime, [all …]
|
D | cjs_document.h | 26 CJS_Return get_ADBE(CJS_Runtime* pRuntime); 27 CJS_Return set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 29 CJS_Return get_author(CJS_Runtime* pRuntime); 30 CJS_Return set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 32 CJS_Return get_base_URL(CJS_Runtime* pRuntime); 33 CJS_Return set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 35 CJS_Return get_bookmark_root(CJS_Runtime* pRuntime); 36 CJS_Return set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 38 CJS_Return get_calculate(CJS_Runtime* pRuntime); 39 CJS_Return set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); [all …]
|
D | cjs_event.h | 17 CJS_Return get_change(CJS_Runtime* pRuntime); 18 CJS_Return set_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 20 CJS_Return get_change_ex(CJS_Runtime* pRuntime); 21 CJS_Return set_change_ex(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 23 CJS_Return get_commit_key(CJS_Runtime* pRuntime); 24 CJS_Return set_commit_key(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 26 CJS_Return get_field_full(CJS_Runtime* pRuntime); 27 CJS_Return set_field_full(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 29 CJS_Return get_key_down(CJS_Runtime* pRuntime); 30 CJS_Return set_key_down(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); [all …]
|
D | cjs_app.h | 24 CJS_Return get_active_docs(CJS_Runtime* pRuntime); 25 CJS_Return set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 27 CJS_Return get_calculate(CJS_Runtime* pRuntime); 28 CJS_Return set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 30 CJS_Return get_forms_version(CJS_Runtime* pRuntime); 31 CJS_Return set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 33 CJS_Return get_fs(CJS_Runtime* pRuntime); 34 CJS_Return set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 36 CJS_Return get_fullscreen(CJS_Runtime* pRuntime); 37 CJS_Return set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); [all …]
|
D | cjs_field.cpp | 381 CJS_Return Field::get_alignment(CJS_Runtime* pRuntime) { in get_alignment() argument 398 return CJS_Return(pRuntime->NewString(L"left")); in get_alignment() 400 return CJS_Return(pRuntime->NewString(L"center")); in get_alignment() 402 return CJS_Return(pRuntime->NewString(L"right")); in get_alignment() 404 return CJS_Return(pRuntime->NewString(L"")); in get_alignment() 407 CJS_Return Field::set_alignment(CJS_Runtime* pRuntime, in set_alignment() argument 413 CJS_Return Field::get_border_style(CJS_Runtime* pRuntime) { in get_border_style() argument 431 return CJS_Return(pRuntime->NewString(L"solid")); in get_border_style() 433 return CJS_Return(pRuntime->NewString(L"dashed")); in get_border_style() 435 return CJS_Return(pRuntime->NewString(L"beveled")); in get_border_style() [all …]
|
D | cjs_color.h | 17 static v8::Local<v8::Array> ConvertPWLColorToArray(CJS_Runtime* pRuntime, 19 static CFX_Color ConvertArrayToPWLColor(CJS_Runtime* pRuntime, 25 CJS_Return get_black(CJS_Runtime* pRuntime); 26 CJS_Return set_black(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 28 CJS_Return get_blue(CJS_Runtime* pRuntime); 29 CJS_Return set_blue(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 31 CJS_Return get_cyan(CJS_Runtime* pRuntime); 32 CJS_Return set_cyan(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 34 CJS_Return get_dark_gray(CJS_Runtime* pRuntime); 35 CJS_Return set_dark_gray(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); [all …]
|
D | cjs_global.cpp | 35 CJS_Runtime* pRuntime = in JSSpecialPropQuery() local 37 if (!pRuntime) in JSSpecialPropQuery() 41 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropQuery() 55 CJS_Runtime* pRuntime = in JSSpecialPropGet() local 57 if (!pRuntime) in JSSpecialPropGet() 61 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropGet() 67 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str()); in JSSpecialPropGet() 69 pRuntime->Error( in JSSpecialPropGet() 83 CJS_Runtime* pRuntime = in JSSpecialPropPut() local 85 if (!pRuntime) in JSSpecialPropPut() [all …]
|
D | cjs_publicmethods.cpp | 122 CJS_Runtime* pRuntime = in JSGlobalFunc() local 124 if (!pRuntime) in JSGlobalFunc() 131 CJS_Return result = (*F)(pRuntime, parameters); in JSGlobalFunc() 133 pRuntime->Error( in JSGlobalFunc() 317 CJS_Runtime* pRuntime, in AF_MakeArrayFromList() argument 320 return pRuntime->ToArray(val); in AF_MakeArrayFromList() 322 WideString wsStr = pRuntime->ToWideString(val); in AF_MakeArrayFromList() 327 v8::Local<v8::Array> StrArray = pRuntime->NewArray(); in AF_MakeArrayFromList() 331 pRuntime->PutArrayElement( in AF_MakeArrayFromList() 333 pRuntime->NewString(StrTrim(ByteString(p)).c_str())); in AF_MakeArrayFromList() [all …]
|
D | cjs_globalarrays.cpp | 26 void CJS_GlobalArrays::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument 27 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_DOT_SEP", L"[+-]?\\d*\\.?\\d*"); in DefineJSObjects() 28 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_DOT_SEP", in DefineJSObjects() 33 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_COMMA_SEP", L"[+-]?\\d*,?\\d*"); in DefineJSObjects() 34 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_COMMA_SEP", in DefineJSObjects() 39 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_ENTRY", L"\\d{0,5}"); in DefineJSObjects() 40 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_COMMIT", L"\\d{5}"); in DefineJSObjects() 41 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_ENTRY", L"\\d{0,5}(\\.|[- ])?\\d{0,4}"); in DefineJSObjects() 42 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_COMMIT", L"\\d{5}(\\.|[- ])?\\d{4}"); in DefineJSObjects() 43 GLOBAL_ARRAY(pRuntime, L"RE_PHONE_ENTRY", in DefineJSObjects() [all …]
|
D | cjs_publicmethods.h | 30 CJS_Runtime* pRuntime, 33 CJS_Runtime* pRuntime, 36 CJS_Runtime* pRuntime, 39 CJS_Runtime* pRuntime, 42 CJS_Runtime* pRuntime, 45 CJS_Runtime* pRuntime, 48 CJS_Runtime* pRuntime, 51 CJS_Runtime* pRuntime, 54 CJS_Runtime* pRuntime, 57 CJS_Runtime* pRuntime, [all …]
|
D | cjs_globalconsts.cpp | 18 void CJS_GlobalConsts::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument 19 GLOBAL_STRING(pRuntime, L"IDS_GREATER_THAN", in DefineJSObjects() 22 GLOBAL_STRING(pRuntime, L"IDS_GT_AND_LT", in DefineJSObjects() 26 GLOBAL_STRING(pRuntime, L"IDS_LESS_THAN", in DefineJSObjects() 29 GLOBAL_STRING(pRuntime, L"IDS_INVALID_MONTH", L"**Invalid**"); in DefineJSObjects() 31 pRuntime, L"IDS_INVALID_DATE", in DefineJSObjects() 34 GLOBAL_STRING(pRuntime, L"IDS_INVALID_VALUE", in DefineJSObjects() 37 GLOBAL_STRING(pRuntime, L"IDS_AM", L"am"); in DefineJSObjects() 38 GLOBAL_STRING(pRuntime, L"IDS_PM", L"pm"); in DefineJSObjects() 39 GLOBAL_STRING(pRuntime, L"IDS_MONTH_INFO", in DefineJSObjects() [all …]
|
D | JS_Define.h | 37 CJS_Runtime* pRuntime, 67 CJS_Runtime* pRuntime = in JSPropGetter() local 69 if (!pRuntime) in JSPropGetter() 73 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSPropGetter() 78 CJS_Return result = (pObj->*M)(pRuntime); in JSPropGetter() 80 pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, in JSPropGetter() 95 CJS_Runtime* pRuntime = in JSPropSetter() local 97 if (!pRuntime) in JSPropSetter() 101 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSPropSetter() 106 CJS_Return result = (pObj->*M)(pRuntime, value); in JSPropSetter() [all …]
|
D | cjs_util.cpp | 81 CJS_Return util::printf(CJS_Runtime* pRuntime, in printf() argument 87 std::wstring unsafe_fmt_string(pRuntime->ToWideString(params[0]).c_str()); in printf() 121 pRuntime->ToInt32(params[iIndex])); in printf() 125 pRuntime->ToDouble(params[iIndex])); in printf() 130 pRuntime->ToWideString(params[iIndex]).c_str()); in printf() 140 return CJS_Return(pRuntime->NewString(c_strResult.c_str())); in printf() 143 CJS_Return util::printd(CJS_Runtime* pRuntime, in printd() argument 153 if (v8_date.IsEmpty() || std::isnan(pRuntime->ToDouble(v8_date))) { in printd() 158 double date = JS_LocalTime(pRuntime->ToDouble(v8_date)); in printd() 168 switch (pRuntime->ToInt32(params[0])) { in printd() [all …]
|
D | cjs_annot.cpp | 46 CJS_Return Annot::get_hidden(CJS_Runtime* pRuntime) { in get_hidden() argument 51 return CJS_Return(pRuntime->NewBoolean( in get_hidden() 55 CJS_Return Annot::set_hidden(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_hidden() argument 57 bool bHidden = pRuntime->ToBoolean(vp); in set_hidden() 78 CJS_Return Annot::get_name(CJS_Runtime* pRuntime) { in get_name() argument 82 pRuntime->NewString(ToBAAnnot(m_pAnnot.Get())->GetAnnotName().c_str())); in get_name() 85 CJS_Return Annot::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument 87 WideString annotName = pRuntime->ToWideString(vp); in set_name() 95 CJS_Return Annot::get_type(CJS_Runtime* pRuntime) { in get_type() argument 98 return CJS_Return(pRuntime->NewString( in get_type() [all …]
|
D | cjs_annot.h | 18 CJS_Return get_hidden(CJS_Runtime* pRuntime); 19 CJS_Return set_hidden(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 21 CJS_Return get_name(CJS_Runtime* pRuntime); 22 CJS_Return set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 24 CJS_Return get_type(CJS_Runtime* pRuntime); 25 CJS_Return set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
|
D | cjs_util.h | 25 CJS_Return printd(CJS_Runtime* pRuntime, 27 CJS_Return printf(CJS_Runtime* pRuntime, 29 CJS_Return printx(CJS_Runtime* pRuntime, 31 CJS_Return scand(CJS_Runtime* pRuntime, 33 CJS_Return byteToChar(CJS_Runtime* pRuntime,
|
D | cjs_console.cpp | 35 CJS_Return console::clear(CJS_Runtime* pRuntime, in clear() argument 40 CJS_Return console::hide(CJS_Runtime* pRuntime, in hide() argument 45 CJS_Return console::println(CJS_Runtime* pRuntime, in println() argument 50 CJS_Return console::show(CJS_Runtime* pRuntime, in show() argument
|
D | cjs_console.h | 20 CJS_Return clear(CJS_Runtime* pRuntime, 22 CJS_Return hide(CJS_Runtime* pRuntime, 24 CJS_Return println(CJS_Runtime* pRuntime, 26 CJS_Return show(CJS_Runtime* pRuntime,
|
D | cjs_eventhandler.cpp | 591 CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); in Source() local 593 pRuntime->NewFxDynamicObj(CJS_Document::GetObjDefnID()); in Source() 598 pRuntime->NewFxDynamicObj(CJS_Field::GetObjDefnID()); in Source() 603 static_cast<CJS_Document*>(pRuntime->GetObjectPrivate(pDocObj)); in Source() 605 static_cast<CJS_Field*>(pRuntime->GetObjectPrivate(pFieldObj)); in Source() 618 CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); in Target_Field() local 620 pRuntime->NewFxDynamicObj(CJS_Document::GetObjDefnID()); in Target_Field() 625 pRuntime->NewFxDynamicObj(CJS_Field::GetObjDefnID()); in Target_Field() 630 static_cast<CJS_Document*>(pRuntime->GetObjectPrivate(pDocObj)); in Target_Field() 632 static_cast<CJS_Field*>(pRuntime->GetObjectPrivate(pFieldObj)); in Target_Field()
|
D | cjs_icon.cpp | 32 CJS_Return Icon::get_name(CJS_Runtime* pRuntime) { in get_name() argument 33 return CJS_Return(pRuntime->NewString(m_swIconName.c_str())); in get_name() 36 CJS_Return Icon::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument
|
/external/pdfium/fpdfsdk/ |
D | fsdk_actionhandler.cpp | 161 IJS_Runtime* pRuntime = pFormFillEnv->GetJSRuntime(); in ExecuteLinkAction() local 162 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteLinkAction() 167 pRuntime->ReleaseEventContext(pContext); in ExecuteLinkAction() 285 IJS_Runtime* pRuntime = pFormFillEnv->GetJSRuntime(); in ExecuteScreenAction() local 286 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteScreenAction() 289 pRuntime->ReleaseEventContext(pContext); in ExecuteScreenAction() 324 IJS_Runtime* pRuntime = pFormFillEnv->GetJSRuntime(); in ExecuteBookMark() local 325 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteBookMark() 330 pRuntime->ReleaseEventContext(pContext); in ExecuteBookMark() 473 IJS_Runtime* pRuntime = pFormFillEnv->GetJSRuntime(); in RunFieldJavaScript() local [all …]
|