/external/pdfium/fxjs/ |
D | cjs_color.cpp | 53 v8::Local<v8::Array> CJS_Color::ConvertPWLColorToArray(CJS_Runtime* pRuntime, in ConvertPWLColorToArray() argument 58 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 59 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("T")); in ConvertPWLColorToArray() 62 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 63 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("G")); in ConvertPWLColorToArray() 64 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray() 67 array = pRuntime->NewArray(); in ConvertPWLColorToArray() 68 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("RGB")); in ConvertPWLColorToArray() 69 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray() 70 pRuntime->PutArrayElement(array, 2, pRuntime->NewNumber(color.fColor2)); in ConvertPWLColorToArray() [all …]
|
D | cjs_event.cpp | 52 CJS_Event::CJS_Event(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Event() argument 53 : CJS_Object(pObject, pRuntime) {} in CJS_Event() 57 CJS_Result CJS_Event::get_change(CJS_Runtime* pRuntime) { in get_change() argument 59 pRuntime->GetCurrentEventContext()->GetEventRecorder(); in get_change() 61 pRuntime->NewString(pEvent->Change().AsStringView())); in get_change() 64 CJS_Result CJS_Event::set_change(CJS_Runtime* pRuntime, in set_change() argument 67 pRuntime->GetCurrentEventContext()->GetEventRecorder(); in set_change() 71 wChange = pRuntime->ToWideString(vp); in set_change() 76 CJS_Result CJS_Event::get_change_ex(CJS_Runtime* pRuntime) { in get_change_ex() argument 78 pRuntime->GetCurrentEventContext()->GetEventRecorder(); in get_change_ex() [all …]
|
D | cjs_field.h | 37 CJS_Field(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 122 CJS_Result get_text_color(CJS_Runtime* pRuntime); 123 CJS_Result set_text_color(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 131 CJS_Result get_alignment(CJS_Runtime* pRuntime); 132 CJS_Result set_alignment(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 134 CJS_Result get_border_style(CJS_Runtime* pRuntime); 135 CJS_Result set_border_style(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 137 CJS_Result get_button_align_x(CJS_Runtime* pRuntime); 138 CJS_Result set_button_align_x(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 140 CJS_Result get_button_align_y(CJS_Runtime* pRuntime); [all …]
|
D | cjs_app.cpp | 84 CJS_App::CJS_App(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_App() argument 85 : CJS_Object(pObject, pRuntime) {} in CJS_App() 89 CJS_Result CJS_App::get_active_docs(CJS_Runtime* pRuntime) { in get_active_docs() argument 90 v8::Local<v8::Object> pObj = pRuntime->GetThisObj(); in get_active_docs() 94 v8::Local<v8::Array> aDocs = pRuntime->NewArray(); in get_active_docs() 95 pRuntime->PutArrayElement(aDocs, 0, pJSDocument->ToV8Object()); in get_active_docs() 96 if (pRuntime->GetArrayLength(aDocs) > 0) in get_active_docs() 99 return CJS_Result::Success(pRuntime->NewUndefined()); in get_active_docs() 102 CJS_Result CJS_App::set_active_docs(CJS_Runtime* pRuntime, in set_active_docs() argument 107 CJS_Result CJS_App::get_calculate(CJS_Runtime* pRuntime) { in get_calculate() argument [all …]
|
D | cjs_document.cpp | 127 CJS_Document::CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Document() argument 128 : CJS_Object(pObject, pRuntime) { in CJS_Document() 135 CJS_Result CJS_Document::get_num_fields(CJS_Runtime* pRuntime) { in get_num_fields() argument 140 return CJS_Result::Success(pRuntime->NewNumber( in get_num_fields() 144 CJS_Result CJS_Document::set_num_fields(CJS_Runtime* pRuntime, in set_num_fields() argument 149 CJS_Result CJS_Document::get_dirty(CJS_Runtime* pRuntime) { in get_dirty() argument 154 pRuntime->NewBoolean(!!m_pFormFillEnv->GetChangeMark())); in get_dirty() 157 CJS_Result CJS_Document::set_dirty(CJS_Runtime* pRuntime, in set_dirty() argument 162 pRuntime->ToBoolean(vp) ? m_pFormFillEnv->SetChangeMark() in set_dirty() 167 CJS_Result CJS_Document::get_ADBE(CJS_Runtime* pRuntime) { in get_ADBE() argument [all …]
|
D | cjs_document.h | 28 CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 120 CJS_Result get_ADBE(CJS_Runtime* pRuntime); 121 CJS_Result set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 123 CJS_Result get_author(CJS_Runtime* pRuntime); 124 CJS_Result set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 126 CJS_Result get_base_URL(CJS_Runtime* pRuntime); 127 CJS_Result set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 129 CJS_Result get_bookmark_root(CJS_Runtime* pRuntime); 130 CJS_Result set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 132 CJS_Result get_calculate(CJS_Runtime* pRuntime); [all …]
|
D | cjs_event.h | 18 CJS_Event(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 47 CJS_Result get_change(CJS_Runtime* pRuntime); 48 CJS_Result set_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 50 CJS_Result get_change_ex(CJS_Runtime* pRuntime); 51 CJS_Result set_change_ex(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 53 CJS_Result get_commit_key(CJS_Runtime* pRuntime); 54 CJS_Result set_commit_key(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 56 CJS_Result get_field_full(CJS_Runtime* pRuntime); 57 CJS_Result set_field_full(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 59 CJS_Result get_key_down(CJS_Runtime* pRuntime); [all …]
|
D | cjs_app.h | 25 CJS_App(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 74 CJS_Result get_active_docs(CJS_Runtime* pRuntime); 75 CJS_Result set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 77 CJS_Result get_calculate(CJS_Runtime* pRuntime); 78 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 80 CJS_Result get_forms_version(CJS_Runtime* pRuntime); 81 CJS_Result set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 83 CJS_Result get_fs(CJS_Runtime* pRuntime); 84 CJS_Result set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 86 CJS_Result get_fullscreen(CJS_Runtime* pRuntime); [all …]
|
D | cjs_color.h | 19 static v8::Local<v8::Array> ConvertPWLColorToArray(CJS_Runtime* pRuntime, 21 static CFX_Color ConvertArrayToPWLColor(CJS_Runtime* pRuntime, 24 CJS_Color(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 49 CJS_Result get_black(CJS_Runtime* pRuntime); 50 CJS_Result set_black(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 52 CJS_Result get_blue(CJS_Runtime* pRuntime); 53 CJS_Result set_blue(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 55 CJS_Result get_cyan(CJS_Runtime* pRuntime); 56 CJS_Result set_cyan(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 58 CJS_Result get_dark_gray(CJS_Runtime* pRuntime); [all …]
|
D | cjs_field.cpp | 604 CJS_Field::CJS_Field(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Field() argument 605 : CJS_Object(pObject, pRuntime) {} in CJS_Field() 658 CJS_Result CJS_Field::get_alignment(CJS_Runtime* pRuntime) { in get_alignment() argument 674 return CJS_Result::Success(pRuntime->NewString("left")); in get_alignment() 676 return CJS_Result::Success(pRuntime->NewString("center")); in get_alignment() 678 return CJS_Result::Success(pRuntime->NewString("right")); in get_alignment() 680 return CJS_Result::Success(pRuntime->NewString("")); in get_alignment() 683 CJS_Result CJS_Field::set_alignment(CJS_Runtime* pRuntime, in set_alignment() argument 692 CJS_Result CJS_Field::get_border_style(CJS_Runtime* pRuntime) { in get_border_style() argument 706 return CJS_Result::Success(pRuntime->NewString("solid")); in get_border_style() [all …]
|
D | cjs_publicmethods.cpp | 143 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSGlobalFunc() local 144 if (!pRuntime) in JSGlobalFunc() 151 CJS_Result result = (*F)(pRuntime, parameters); in JSGlobalFunc() 153 pRuntime->Error( in JSGlobalFunc() 314 CJS_Runtime* pRuntime, in AF_MakeArrayFromList() argument 318 return pRuntime->ToArray(val); in AF_MakeArrayFromList() 321 WideString wsStr = pRuntime->ToWideString(val); in AF_MakeArrayFromList() 326 v8::Local<v8::Array> StrArray = pRuntime->NewArray(); in AF_MakeArrayFromList() 330 pRuntime->PutArrayElement( in AF_MakeArrayFromList() 332 pRuntime->NewString(StrTrim(ByteString(p)).AsStringView())); in AF_MakeArrayFromList() [all …]
|
D | cjs_global.cpp | 40 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSSpecialPropQuery() local 41 if (!pRuntime) in JSSpecialPropQuery() 58 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSSpecialPropGet() local 59 if (!pRuntime) in JSSpecialPropGet() 63 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str()); in JSSpecialPropGet() 66 pRuntime->Error( in JSSpecialPropGet() 83 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSSpecialPropPut() local 84 if (!pRuntime) in JSSpecialPropPut() 88 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str(), value); in JSSpecialPropPut() 91 pRuntime->Error( in JSSpecialPropPut() [all …]
|
D | cjs_globalconsts.cpp | 20 void CJS_GlobalConsts::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument 21 GLOBAL_STRING(pRuntime, L"IDS_GREATER_THAN", in DefineJSObjects() 24 GLOBAL_STRING(pRuntime, L"IDS_GT_AND_LT", in DefineJSObjects() 28 GLOBAL_STRING(pRuntime, L"IDS_LESS_THAN", in DefineJSObjects() 31 GLOBAL_STRING(pRuntime, L"IDS_INVALID_MONTH", "**Invalid**"); in DefineJSObjects() 33 pRuntime, L"IDS_INVALID_DATE", in DefineJSObjects() 36 GLOBAL_STRING(pRuntime, L"IDS_INVALID_VALUE", in DefineJSObjects() 39 GLOBAL_STRING(pRuntime, L"IDS_AM", "am"); in DefineJSObjects() 40 GLOBAL_STRING(pRuntime, L"IDS_PM", "pm"); in DefineJSObjects() 41 GLOBAL_STRING(pRuntime, L"IDS_MONTH_INFO", in DefineJSObjects() [all …]
|
D | cjs_globalarrays.cpp | 27 void CJS_GlobalArrays::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument 28 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_DOT_SEP", L"[+-]?\\d*\\.?\\d*"); in DefineJSObjects() 29 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_DOT_SEP", in DefineJSObjects() 34 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_COMMA_SEP", L"[+-]?\\d*,?\\d*"); in DefineJSObjects() 35 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_COMMA_SEP", in DefineJSObjects() 40 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_ENTRY", L"\\d{0,5}"); in DefineJSObjects() 41 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_COMMIT", L"\\d{5}"); in DefineJSObjects() 42 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_ENTRY", L"\\d{0,5}(\\.|[- ])?\\d{0,4}"); in DefineJSObjects() 43 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_COMMIT", L"\\d{5}(\\.|[- ])?\\d{4}"); in DefineJSObjects() 44 GLOBAL_ARRAY(pRuntime, L"RE_PHONE_ENTRY", in DefineJSObjects() [all …]
|
D | cjs_publicmethods.h | 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, 60 CJS_Runtime* pRuntime, [all …]
|
D | cjs_annot.cpp | 37 CJS_Annot::CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Annot() argument 38 : CJS_Object(pObject, pRuntime) {} in CJS_Annot() 46 CJS_Result CJS_Annot::get_hidden(CJS_Runtime* pRuntime) { in get_hidden() argument 51 return CJS_Result::Success(pRuntime->NewBoolean(pPDFAnnot->IsHidden())); in get_hidden() 54 CJS_Result CJS_Annot::set_hidden(CJS_Runtime* pRuntime, in set_hidden() argument 57 bool bHidden = pRuntime->ToBoolean(vp); in set_hidden() 79 CJS_Result CJS_Annot::get_name(CJS_Runtime* pRuntime) { in get_name() argument 85 pRuntime->NewString(pBAAnnot->GetAnnotName().AsStringView())); in get_name() 88 CJS_Result CJS_Annot::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument 90 WideString annotName = pRuntime->ToWideString(vp); in set_name() [all …]
|
D | cjs_util.cpp | 93 CJS_Util::CJS_Util(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Util() argument 94 : CJS_Object(pObject, pRuntime) {} in CJS_Util() 98 CJS_Result CJS_Util::printf(CJS_Runtime* pRuntime, in printf() argument 106 WideString unsafe_fmt_string = L'S' + pRuntime->ToWideString(params[0]); in printf() 136 segment = WideString::Format(fmt.c_str(), pRuntime->ToInt32(params[i])); in printf() 140 WideString::Format(fmt.c_str(), pRuntime->ToDouble(params[i])); in printf() 144 pRuntime->ToWideString(params[i]).c_str()); in printf() 157 pRuntime->NewString(result_view.Last(result_view.GetLength() - 1))); in printf() 160 CJS_Result CJS_Util::printd(CJS_Runtime* pRuntime, in printd() argument 170 if (v8_date.IsEmpty() || std::isnan(pRuntime->ToDouble(v8_date))) in printd() [all …]
|
D | js_define.h | 30 CJS_Runtime* pRuntime, 74 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSPropGetter() local 75 if (!pRuntime) in JSPropGetter() 78 CJS_Result result = (pObj.Get()->*M)(pRuntime); in JSPropGetter() 80 pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, in JSPropGetter() 99 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSPropSetter() local 100 if (!pRuntime) in JSPropSetter() 103 CJS_Result result = (pObj.Get()->*M)(pRuntime, value); in JSPropSetter() 105 pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, in JSPropSetter() 120 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSMethod() local [all …]
|
D | cjs_annot.h | 20 CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 34 CJS_Result get_hidden(CJS_Runtime* pRuntime); 35 CJS_Result set_hidden(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 37 CJS_Result get_name(CJS_Runtime* pRuntime); 38 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); 40 CJS_Result get_type(CJS_Runtime* pRuntime); 41 CJS_Result set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
|
D | cjs_console.cpp | 36 CJS_Console::CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Console() argument 37 : CJS_Object(pObject, pRuntime) {} in CJS_Console() 41 CJS_Result CJS_Console::clear(CJS_Runtime* pRuntime, in clear() argument 46 CJS_Result CJS_Console::hide(CJS_Runtime* pRuntime, in hide() argument 52 CJS_Runtime* pRuntime, in println() argument 57 CJS_Result CJS_Console::show(CJS_Runtime* pRuntime, in show() argument
|
D | cjs_util.h | 26 CJS_Util(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 53 CJS_Result printd(CJS_Runtime* pRuntime, 55 CJS_Result printf(CJS_Runtime* pRuntime, 57 CJS_Result printx(CJS_Runtime* pRuntime, 59 CJS_Result scand(CJS_Runtime* pRuntime, 61 CJS_Result byteToChar(CJS_Runtime* pRuntime,
|
D | cjs_global.h | 40 CJS_Global(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 43 CJS_Result DelProperty(CJS_Runtime* pRuntime, const wchar_t* propname); 45 CJS_Result setPersistent(CJS_Runtime* pRuntime, 48 CJS_Result GetProperty(CJS_Runtime* pRuntime, const wchar_t* propname); 49 CJS_Result SetProperty(CJS_Runtime* pRuntime, 68 void CommitGlobalPersisitentVariables(CJS_Runtime* pRuntime); 77 void ObjectToArray(CJS_Runtime* pRuntime,
|
D | cjs_icon.cpp | 27 CJS_Icon::CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Icon() argument 28 : CJS_Object(pObject, pRuntime) {} in CJS_Icon() 32 CJS_Result CJS_Icon::get_name(CJS_Runtime* pRuntime) { in get_name() argument 33 return CJS_Result::Success(pRuntime->NewString(m_swIconName.AsStringView())); in get_name() 36 CJS_Result CJS_Icon::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument
|
D | cjs_console.h | 20 CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 33 CJS_Result clear(CJS_Runtime* pRuntime, 35 CJS_Result hide(CJS_Runtime* pRuntime, 37 CJS_Result println(CJS_Runtime* pRuntime, 39 CJS_Result show(CJS_Runtime* pRuntime,
|
D | cjs_icon.h | 18 CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime); 31 CJS_Result get_name(CJS_Runtime* pRuntime); 32 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
|