Home
last modified time | relevance | path

Searched refs:pRuntime (Results 1 – 25 of 38) sorted by relevance

12

/external/pdfium/fxjs/
Dcjs_color.cpp54 v8::Local<v8::Array> CJS_Color::ConvertPWLColorToArray(CJS_Runtime* pRuntime, in ConvertPWLColorToArray() argument
59 array = pRuntime->NewArray(); in ConvertPWLColorToArray()
60 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("T")); in ConvertPWLColorToArray()
63 array = pRuntime->NewArray(); in ConvertPWLColorToArray()
64 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("G")); in ConvertPWLColorToArray()
65 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray()
68 array = pRuntime->NewArray(); in ConvertPWLColorToArray()
69 pRuntime->PutArrayElement(array, 0, pRuntime->NewString("RGB")); in ConvertPWLColorToArray()
70 pRuntime->PutArrayElement(array, 1, pRuntime->NewNumber(color.fColor1)); in ConvertPWLColorToArray()
71 pRuntime->PutArrayElement(array, 2, pRuntime->NewNumber(color.fColor2)); in ConvertPWLColorToArray()
[all …]
Dcjs_event.cpp51 CJS_Event::CJS_Event(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Event() argument
52 : CJS_Object(pObject, pRuntime) {} in CJS_Event()
56 CJS_Result CJS_Event::get_change(CJS_Runtime* pRuntime) { in get_change() argument
57 CJS_EventContext* pEvent = pRuntime->GetCurrentEventContext(); in get_change()
59 pRuntime->NewString(pEvent->Change().AsStringView())); in get_change()
62 CJS_Result CJS_Event::set_change(CJS_Runtime* pRuntime, in set_change() argument
65 CJS_EventContext* pEvent = pRuntime->GetCurrentEventContext(); in set_change()
66 pEvent->Change() = pRuntime->ToWideString(vp); in set_change()
71 CJS_Result CJS_Event::get_change_ex(CJS_Runtime* pRuntime) { in get_change_ex() argument
72 CJS_EventContext* pEvent = pRuntime->GetCurrentEventContext(); in get_change_ex()
[all …]
Dcjs_field.h37 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 …]
Dcjs_app.cpp93 CJS_App::CJS_App(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_App() argument
94 : CJS_Object(pObject, pRuntime) {} in CJS_App()
98 CJS_Result CJS_App::get_active_docs(CJS_Runtime* pRuntime) { in get_active_docs() argument
99 v8::Local<v8::Object> pObj = pRuntime->GetThisObj(); in get_active_docs()
100 auto pJSDocument = JSGetObject<CJS_Document>(pRuntime->GetIsolate(), pObj); in get_active_docs()
103 v8::Local<v8::Array> aDocs = pRuntime->NewArray(); in get_active_docs()
104 pRuntime->PutArrayElement(aDocs, 0, pJSDocument->ToV8Object()); in get_active_docs()
105 if (pRuntime->GetArrayLength(aDocs) > 0) in get_active_docs()
108 return CJS_Result::Success(pRuntime->NewUndefined()); in get_active_docs()
111 CJS_Result CJS_App::set_active_docs(CJS_Runtime* pRuntime, in set_active_docs() argument
[all …]
Dcjs_document.cpp133 CJS_Document::CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Document() argument
134 : CJS_Object(pObject, pRuntime) { in CJS_Document()
141 CJS_Result CJS_Document::get_num_fields(CJS_Runtime* pRuntime) { in get_num_fields() argument
146 return CJS_Result::Success(pRuntime->NewNumber( in get_num_fields()
150 CJS_Result CJS_Document::set_num_fields(CJS_Runtime* pRuntime, in set_num_fields() argument
155 CJS_Result CJS_Document::get_dirty(CJS_Runtime* pRuntime) { in get_dirty() argument
160 pRuntime->NewBoolean(!!m_pFormFillEnv->GetChangeMark())); in get_dirty()
163 CJS_Result CJS_Document::set_dirty(CJS_Runtime* pRuntime, in set_dirty() argument
168 pRuntime->ToBoolean(vp) ? m_pFormFillEnv->SetChangeMark() in set_dirty()
173 CJS_Result CJS_Document::get_ADBE(CJS_Runtime* pRuntime) { in get_ADBE() argument
[all …]
Dcjs_document.h27 CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
119 CJS_Result get_ADBE(CJS_Runtime* pRuntime);
120 CJS_Result set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
122 CJS_Result get_author(CJS_Runtime* pRuntime);
123 CJS_Result set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
125 CJS_Result get_base_URL(CJS_Runtime* pRuntime);
126 CJS_Result set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
128 CJS_Result get_bookmark_root(CJS_Runtime* pRuntime);
129 CJS_Result set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
131 CJS_Result get_calculate(CJS_Runtime* pRuntime);
[all …]
Dcjs_event.h18 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 …]
Dcjs_app.h25 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 …]
Dcjs_color.h20 static v8::Local<v8::Array> ConvertPWLColorToArray(CJS_Runtime* pRuntime,
22 static CFX_Color ConvertArrayToPWLColor(CJS_Runtime* pRuntime,
25 CJS_Color(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
50 CJS_Result get_black(CJS_Runtime* pRuntime);
51 CJS_Result set_black(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
53 CJS_Result get_blue(CJS_Runtime* pRuntime);
54 CJS_Result set_blue(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
56 CJS_Result get_cyan(CJS_Runtime* pRuntime);
57 CJS_Result set_cyan(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
59 CJS_Result get_dark_gray(CJS_Runtime* pRuntime);
[all …]
Dcjs_field.cpp631 CJS_Field::CJS_Field(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Field() argument
632 : CJS_Object(pObject, pRuntime) {} in CJS_Field()
684 CJS_Result CJS_Field::get_alignment(CJS_Runtime* pRuntime) { in get_alignment() argument
700 return CJS_Result::Success(pRuntime->NewString("left")); in get_alignment()
702 return CJS_Result::Success(pRuntime->NewString("center")); in get_alignment()
704 return CJS_Result::Success(pRuntime->NewString("right")); in get_alignment()
706 return CJS_Result::Success(pRuntime->NewString("")); in get_alignment()
709 CJS_Result CJS_Field::set_alignment(CJS_Runtime* pRuntime, in set_alignment() argument
718 CJS_Result CJS_Field::get_border_style(CJS_Runtime* pRuntime) { in get_border_style() argument
732 return CJS_Result::Success(pRuntime->NewString("solid")); in get_border_style()
[all …]
Dcjs_publicmethods.cpp152 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSGlobalFunc() local
153 if (!pRuntime) in JSGlobalFunc()
160 CJS_Result result = (*F)(pRuntime, parameters); in JSGlobalFunc()
162 pRuntime->Error( in JSGlobalFunc()
323 CJS_Runtime* pRuntime, in AF_MakeArrayFromList() argument
327 return pRuntime->ToArray(val); in AF_MakeArrayFromList()
330 ByteString bsVal = pRuntime->ToByteString(val); in AF_MakeArrayFromList()
334 v8::Local<v8::Array> StrArray = pRuntime->NewArray(); in AF_MakeArrayFromList()
338 pRuntime->PutArrayElement( in AF_MakeArrayFromList()
340 pRuntime->NewString(StrTrim(ByteString(p)).AsStringView())); in AF_MakeArrayFromList()
[all …]
Dcjs_global.cpp72 CJS_Runtime* pRuntime = pObj->GetRuntime(); in getprop_static() local
73 if (!pRuntime) in getprop_static()
77 CJS_Result result = pObj->GetProperty(pRuntime, bsProp); in getprop_static()
79 pRuntime->Error( in getprop_static()
96 CJS_Runtime* pRuntime = pObj->GetRuntime(); in putprop_static() local
97 if (!pRuntime) in putprop_static()
101 CJS_Result result = pObj->SetProperty(pRuntime, bsProp, value); in putprop_static()
103 pRuntime->Error( in putprop_static()
129 CJS_Runtime* pRuntime = pObj->GetRuntime(); in enumprop_static() local
130 if (!pRuntime) in enumprop_static()
[all …]
Dcjs_globalconsts.cpp19 void CJS_GlobalConsts::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument
20 GLOBAL_STRING(pRuntime, L"IDS_GREATER_THAN", in DefineJSObjects()
23 GLOBAL_STRING(pRuntime, L"IDS_GT_AND_LT", in DefineJSObjects()
27 GLOBAL_STRING(pRuntime, L"IDS_LESS_THAN", in DefineJSObjects()
30 GLOBAL_STRING(pRuntime, L"IDS_INVALID_MONTH", "**Invalid**"); in DefineJSObjects()
32 pRuntime, L"IDS_INVALID_DATE", in DefineJSObjects()
35 GLOBAL_STRING(pRuntime, L"IDS_INVALID_VALUE", in DefineJSObjects()
38 GLOBAL_STRING(pRuntime, L"IDS_AM", "am"); in DefineJSObjects()
39 GLOBAL_STRING(pRuntime, L"IDS_PM", "pm"); in DefineJSObjects()
40 GLOBAL_STRING(pRuntime, L"IDS_MONTH_INFO", in DefineJSObjects()
[all …]
Dcjs_globalarrays.cpp38 void CJS_GlobalArrays::DefineJSObjects(CJS_Runtime* pRuntime) { in DefineJSObjects() argument
39 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_DOT_SEP", L"[+-]?\\d*\\.?\\d*"); in DefineJSObjects()
40 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_DOT_SEP", in DefineJSObjects()
45 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_ENTRY_COMMA_SEP", L"[+-]?\\d*,?\\d*"); in DefineJSObjects()
46 GLOBAL_ARRAY(pRuntime, L"RE_NUMBER_COMMIT_COMMA_SEP", in DefineJSObjects()
51 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_ENTRY", L"\\d{0,5}"); in DefineJSObjects()
52 GLOBAL_ARRAY(pRuntime, L"RE_ZIP_COMMIT", L"\\d{5}"); in DefineJSObjects()
53 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_ENTRY", L"\\d{0,5}(\\.|[- ])?\\d{0,4}"); in DefineJSObjects()
54 GLOBAL_ARRAY(pRuntime, L"RE_ZIP4_COMMIT", L"\\d{5}(\\.|[- ])?\\d{4}"); in DefineJSObjects()
55 GLOBAL_ARRAY(pRuntime, L"RE_PHONE_ENTRY", in DefineJSObjects()
[all …]
Dcjs_publicmethods.h36 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,
63 CJS_Runtime* pRuntime,
[all …]
Dcjs_annot.cpp36 CJS_Annot::CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Annot() argument
37 : CJS_Object(pObject, pRuntime) {} in CJS_Annot()
45 CJS_Result CJS_Annot::get_hidden(CJS_Runtime* pRuntime) { in get_hidden() argument
50 return CJS_Result::Success(pRuntime->NewBoolean(pPDFAnnot->IsHidden())); in get_hidden()
53 CJS_Result CJS_Annot::set_hidden(CJS_Runtime* pRuntime, in set_hidden() argument
56 bool bHidden = pRuntime->ToBoolean(vp); in set_hidden()
78 CJS_Result CJS_Annot::get_name(CJS_Runtime* pRuntime) { in get_name() argument
84 pRuntime->NewString(pBAAnnot->GetAnnotName().AsStringView())); in get_name()
87 CJS_Result CJS_Annot::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument
89 WideString annotName = pRuntime->ToWideString(vp); in set_name()
[all …]
Dcjs_util.cpp95 CJS_Util::CJS_Util(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Util() argument
96 : CJS_Object(pObject, pRuntime) {} in CJS_Util()
100 CJS_Result CJS_Util::printf(CJS_Runtime* pRuntime, in printf() argument
108 WideString unsafe_fmt_string = L'S' + pRuntime->ToWideString(params[0]); in printf()
139 segment = WideString::Format(fmt.c_str(), pRuntime->ToInt32(params[i])); in printf()
143 WideString::Format(fmt.c_str(), pRuntime->ToDouble(params[i])); in printf()
147 pRuntime->ToWideString(params[i]).c_str()); in printf()
160 pRuntime->NewString(result_view.Last(result_view.GetLength() - 1))); in printf()
163 CJS_Result CJS_Util::printd(CJS_Runtime* pRuntime, in printd() argument
173 if (v8_date.IsEmpty() || isnan(pRuntime->ToDouble(v8_date))) in printd()
[all …]
Djs_define.h30 CJS_Runtime* pRuntime,
76 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSPropGetter() local
77 if (!pRuntime) in JSPropGetter()
80 CJS_Result result = (pObj.get()->*M)(pRuntime); in JSPropGetter()
82 pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, in JSPropGetter()
101 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSPropSetter() local
102 if (!pRuntime) in JSPropSetter()
105 CJS_Result result = (pObj.get()->*M)(pRuntime, value); in JSPropSetter()
107 pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, in JSPropSetter()
122 CJS_Runtime* pRuntime = pObj->GetRuntime(); in JSMethod() local
[all …]
Dcjs_annot.h19 CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
33 CJS_Result get_hidden(CJS_Runtime* pRuntime);
34 CJS_Result set_hidden(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
36 CJS_Result get_name(CJS_Runtime* pRuntime);
37 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
39 CJS_Result get_type(CJS_Runtime* pRuntime);
40 CJS_Result set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
Dcjs_console.cpp35 CJS_Console::CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) in CJS_Console() argument
36 : CJS_Object(pObject, pRuntime) {} in CJS_Console()
40 CJS_Result CJS_Console::clear(CJS_Runtime* pRuntime, in clear() argument
45 CJS_Result CJS_Console::hide(CJS_Runtime* pRuntime, in hide() argument
51 CJS_Runtime* pRuntime, in println() argument
56 CJS_Result CJS_Console::show(CJS_Runtime* pRuntime, in show() argument
Dcjs_util.h29 CJS_Util(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
56 CJS_Result printd(CJS_Runtime* pRuntime,
58 CJS_Result printf(CJS_Runtime* pRuntime,
60 CJS_Result printx(CJS_Runtime* pRuntime,
62 CJS_Result scand(CJS_Runtime* pRuntime,
64 CJS_Result byteToChar(CJS_Runtime* pRuntime,
Dcjs_icon.cpp27 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
Dcjs_console.h20 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,
Dcjs_global.h52 CJS_Global(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
81 CJS_Runtime* pRuntime,
84 CJS_Result setPersistent(CJS_Runtime* pRuntime,
88 CJS_Result GetProperty(CJS_Runtime* pRuntime, const ByteString& propname);
89 CJS_Result SetProperty(CJS_Runtime* pRuntime,
92 void EnumProperties(CJS_Runtime* pRuntime,
Dcjs_icon.h18 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);

12