Home
last modified time | relevance | path

Searched refs:fxv8 (Results 1 – 25 of 39) sorted by relevance

12

/external/pdfium/fxjs/
Dcfx_v8.cpp19 return fxv8::ReentrantGetObjectPropertyHelper(GetIsolate(), pObj, in GetObjectProperty()
25 return fxv8::ReentrantGetObjectPropertyNamesHelper(GetIsolate(), pObj); in GetObjectPropertyNames()
31 fxv8::ReentrantPutObjectPropertyHelper(GetIsolate(), pObj, bsUTF8PropertyName, in PutObjectProperty()
41 return fxv8::NewArrayHelper(GetIsolate()); in NewArray()
45 return fxv8::NewObjectHelper(GetIsolate()); in NewObject()
51 fxv8::ReentrantPutArrayElementHelper(GetIsolate(), pArray, index, pValue); in PutArrayElement()
56 return fxv8::ReentrantGetArrayElementHelper(GetIsolate(), pArray, index); in GetArrayElement()
60 return fxv8::GetArrayLengthHelper(pArray); in GetArrayLength()
64 return fxv8::NewNumberHelper(GetIsolate(), number); in NewNumber()
68 return fxv8::NewNumberHelper(GetIsolate(), number); in NewNumber()
[all …]
Djs_define.cpp38 context->Global()->Get(context, fxv8::NewStringHelper(pIsolate, "Date")); in JS_DateParse()
45 maybe_value = obj->Get(context, fxv8::NewStringHelper(pIsolate, "parse")); in JS_DateParse()
52 fxv8::NewStringHelper(pIsolate, str.AsStringView()), in JS_DateParse()
Dfxv8.cpp17 namespace fxv8 { namespace
104 fxv8::ReentrantPutArrayElementHelper( in NewArrayHelper()
106 values[i].IsEmpty() ? fxv8::NewUndefinedHelper(pIsolate) : values[i]); in NewArrayHelper()
189 if (!fxv8::IsObject(pValue)) in ReentrantToObjectHelper()
199 if (!fxv8::IsArray(pValue)) in ReentrantToArrayHelper()
253 fxv8::NewStringHelper(pIsolate, bsUTF8PropertyName); in ReentrantHasObjectOwnPropertyHelper()
288 fxv8::NewStringHelper(pIsolate, bsUTF8PropertyName)) in ReentrantDeleteObjectPropertyHelper()
Dcjs_runtime.cpp191 v8::Local<v8::String> str = fxv8::NewStringHelper(GetIsolate(), utf8Name); in GetValueByNameFromGlobalObject()
207 v8::Local<v8::String> str = fxv8::NewStringHelper(pIsolate, utf8Name); in SetValueByNameInGlobalObject()
216 ByteString bstr = fxv8::ToByteString(GetIsolate(), value.As<v8::String>()); in MaybeCoerceToNumber()
/external/pdfium/fxjs/xfa/
Dcfxjse_formcalc_context.cpp1318 return fxv8::NewNullHelper(pIsolate); in GetObjectDefaultValue()
1343 if (fxv8::IsArray(pValue)) { in GetExtractedValue()
1345 uint32_t iLength = fxv8::GetArrayLengthHelper(arr); in GetExtractedValue()
1347 return fxv8::NewUndefinedHelper(pIsolate); in GetExtractedValue()
1350 fxv8::ReentrantGetArrayElementHelper(pIsolate, arr, 1); in GetExtractedValue()
1352 fxv8::ReentrantGetArrayElementHelper(pIsolate, arr, 2); in GetExtractedValue()
1353 if (!fxv8::IsObject(jsValue)) in GetExtractedValue()
1354 return fxv8::NewUndefinedHelper(pIsolate); in GetExtractedValue()
1357 if (fxv8::IsNull(propertyValue)) in GetExtractedValue()
1361 fxv8::ReentrantToByteStringHelper(pIsolate, propertyValue); in GetExtractedValue()
[all …]
Dcjx_field.cpp258 xfaNode->SetIsNull(fxv8::IsNull(*pValue)); in defaultValue()
262 if (pValue && !(fxv8::IsNull(*pValue) || fxv8::IsUndefined(*pValue))) in defaultValue()
263 wsNewText = fxv8::ReentrantToWideStringHelper(pIsolate, *pValue); in defaultValue()
278 *pValue = fxv8::NewNullHelper(pIsolate); in defaultValue()
289 fxv8::NewStringHelper(pIsolate, content.ToUTF8().AsStringView()); in defaultValue()
292 *pValue = fxv8::NewNumberHelper(pIsolate, decimal.ToFloat()); in defaultValue()
295 *pValue = fxv8::NewNumberHelper(pIsolate, FXSYS_wtoi(content.c_str())); in defaultValue()
298 fxv8::NewBooleanHelper(pIsolate, FXSYS_wtoi(content.c_str()) != 0); in defaultValue()
301 *pValue = fxv8::NewNumberHelper(pIsolate, decimal.ToFloat()); in defaultValue()
303 *pValue = fxv8::NewStringHelper(pIsolate, content.ToUTF8().AsStringView()); in defaultValue()
[all …]
Dcfxjse_value.cpp69 v8::Local<v8::String> hMessage = fxv8::NewStringHelper(pIsolate, utf8Message); in FXJSE_ThrowMessage()
104 local_values.push_back(fxv8::NewUndefinedHelper(pIsolate)); in SetArray()
115 m_hValue.Reset(pIsolate, fxv8::NewNumberHelper(pIsolate, ftod(fFloat))); in SetFloat()
129 return fxv8::ReentrantPutObjectPropertyHelper( in SetObjectProperty()
143 pIsolate, fxv8::ReentrantGetObjectPropertyHelper( in GetObjectProperty()
157 fxv8::ReentrantGetArrayElementHelper( in GetObjectPropertyByIdx()
167 fxv8::ReentrantDeleteObjectPropertyHelper( in DeleteObjectProperty()
182 return fxv8::ReentrantSetObjectOwnPropertyHelper( in SetObjectOwnProperty()
197 v8::Local<v8::String> hBinderFuncSource = fxv8::NewStringHelper( in NewBoundFunction()
209 if (!fxv8::IsFunction(hBoundFunction)) in NewBoundFunction()
[all …]
Dcjx_occur.cpp28 *pValue = fxv8::NewNumberHelper(pIsolate, occur->GetMax()); in max()
31 occur->SetMax(fxv8::ReentrantToInt32Helper(pIsolate, *pValue)); in max()
41 *pValue = fxv8::NewNumberHelper(pIsolate, occur->GetMin()); in min()
44 occur->SetMin(fxv8::ReentrantToInt32Helper(pIsolate, *pValue)); in min()
Dcjx_draw.cpp38 ? fxv8::NewNullHelper(pIsolate).As<v8::Value>() in defaultValue()
39 : fxv8::NewStringHelper(pIsolate, content.AsStringView()) in defaultValue()
44 if (!pValue || !fxv8::IsString(*pValue)) in defaultValue()
51 WideString wsNewValue = fxv8::ReentrantToWideStringHelper(pIsolate, *pValue); in defaultValue()
Dcjx_boolean.cpp28 fxv8::NewBooleanHelper(pIsolate, GetContent(true).EqualsASCII("1")); in defaultValue()
33 if (pValue && !(fxv8::IsNull(*pValue) || fxv8::IsUndefined(*pValue))) in defaultValue()
34 newValue = fxv8::ReentrantToByteStringHelper(pIsolate, *pValue); in defaultValue()
Dcjx_object.cpp141 *pValue = fxv8::NewStringHelper(pIsolate, GetXFAObject()->GetClassName()); in className()
989 *pValue = fxv8::NewStringHelper( in ScriptAttributeString()
994 WideString wsValue = fxv8::ReentrantToWideStringHelper(pIsolate, *pValue); in ScriptAttributeString()
1059 SetBoolean(eAttribute, fxv8::ReentrantToBooleanHelper(pIsolate, *pValue), in ScriptAttributeBool()
1063 *pValue = fxv8::NewStringHelper(pIsolate, GetBoolean(eAttribute) ? "1" : "0"); in ScriptAttributeBool()
1071 SetInteger(eAttribute, fxv8::ReentrantToInt32Helper(pIsolate, *pValue), in ScriptAttributeInteger()
1075 *pValue = fxv8::NewNumberHelper(pIsolate, GetInteger(eAttribute)); in ScriptAttributeInteger()
1091 StrToRGB(fxv8::ReentrantToWideStringHelper(pIsolate, *pValue)); in ScriptSomFontColor()
1102 *pValue = fxv8::NewStringHelper( in ScriptSomFontColor()
1120 StrToRGB(fxv8::ReentrantToWideStringHelper(pIsolate, *pValue)); in ScriptSomFillColor()
[all …]
Dcfxjse_formcalc_context_embeddertest.cpp35 EXPECT_TRUE(fxv8::IsNull(GetValue())) << "Program: " << input; in ExecuteExpectNull()
45 EXPECT_TRUE(fxv8::IsBoolean(value) || fxv8::IsInteger(value)) in ExecuteExpectBool()
47 EXPECT_EQ(expected, fxv8::ReentrantToBooleanHelper(isolate(), value)) in ExecuteExpectBool()
56 EXPECT_TRUE(fxv8::IsInteger(value)) << "Program: " << input; in ExecuteExpectInt32()
57 EXPECT_EQ(expected, fxv8::ReentrantToInt32Helper(isolate(), value)) in ExecuteExpectInt32()
66 EXPECT_TRUE(fxv8::IsNumber(value)); in ExecuteExpectFloat()
67 EXPECT_FLOAT_EQ(expected, fxv8::ReentrantToFloatHelper(isolate(), value)) in ExecuteExpectFloat()
78 EXPECT_TRUE(fxv8::IsNumber(value)); in ExecuteExpectFloatNear()
79 EXPECT_NEAR(expected, fxv8::ReentrantToFloatHelper(isolate(), value), in ExecuteExpectFloatNear()
89 EXPECT_TRUE(fxv8::IsNumber(value)); in ExecuteExpectNaN()
[all …]
Dcjx_hostpseudomodel.cpp90 *pValue = fxv8::NewStringHelper(pIsolate, "Exchange"); in appType()
104 fxv8::ReentrantToBooleanHelper(pIsolate, *pValue)); in calculationsEnabled()
107 *pValue = fxv8::NewBooleanHelper(pIsolate, hDoc->IsCalculationsEnabled()); in calculationsEnabled()
120 hDoc->SetCurrentPage(fxv8::ReentrantToInt32Helper(pIsolate, *pValue)); in currentPage()
123 *pValue = fxv8::NewNumberHelper(pIsolate, hDoc->GetCurrentPage()); in currentPage()
140 *pValue = fxv8::NewStringHelper(pIsolate, lang.AsStringView()); in language()
157 *pValue = fxv8::NewNumberHelper(pIsolate, hDoc->CountPages()); in numPages()
174 *pValue = fxv8::NewStringHelper(pIsolate, plat.AsStringView()); in platform()
190 hDoc->SetTitle(fxv8::ReentrantToWideStringHelper(pIsolate, *pValue)); in title()
195 *pValue = fxv8::NewStringHelper(pIsolate, bsTitle.AsStringView()); in title()
[all …]
Dcfxjse_context.cpp83 v8::Local<v8::String> hNameStr = fxv8::NewStringHelper(pIsolate, "name"); in CreateReturnValue()
90 fxv8::NewStringHelper(pIsolate, "Error"); in CreateReturnValue()
94 fxv8::NewStringHelper(pIsolate, "message"); in CreateReturnValue()
102 v8::Local<v8::String> hErrorStr = fxv8::NewStringHelper(pIsolate, "Error"); in CreateReturnValue()
146 if (!fxv8::IsObject(hValue)) in FXJSE_RetrieveObjectBinding()
153 if (!fxv8::IsObject(hProtoObject)) in FXJSE_RetrieveObjectBinding()
188 fxv8::NewStringHelper(pIsolate, "global")); in Create()
249 fxv8::NewStringHelper(GetIsolate(), bsScript); in ExecuteScript()
269 v8::Local<v8::String> hEval = fxv8::NewStringHelper( in ExecuteScript()
Dcjx_eventpseudomodel.cpp28 *wsValue = fxv8::ReentrantToWideStringHelper(pIsolate, *pReturn); in StringProperty()
31 *pReturn = fxv8::NewStringHelper(pIsolate, wsValue->ToUTF8().AsStringView()); in StringProperty()
39 *iValue = fxv8::ReentrantToInt32Helper(pIsolate, *pReturn); in IntegerProperty()
42 *pReturn = fxv8::NewNumberHelper(pIsolate, *iValue); in IntegerProperty()
50 *bValue = fxv8::ReentrantToBooleanHelper(pIsolate, *pReturn); in BooleanProperty()
53 *pReturn = fxv8::NewBooleanHelper(pIsolate, *bValue); in BooleanProperty()
134 *pValue = fxv8::NewStringHelper( in newText()
Dcjx_subform.cpp97 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue), true, in locale()
104 fxv8::NewStringHelper(pIsolate, wsLocaleName.ToUTF8().AsStringView()); in locale()
134 : fxv8::NewNullHelper(pIsolate).As<v8::Value>(); in instanceManager()
Dcfxjse_class.cpp80 fxv8::NewStringHelper(info.GetIsolate(), szStringVal.AsStringView())); in Context_GlobalObjToString()
117 fxv8::ThrowExceptionHelper(info.GetIsolate(), err.AsStringView()); in DynPropGetterAdapter_MethodCallback()
154 1, fxv8::NewStringHelper(pIsolate, szPropName)); in DynPropGetterAdapter()
293 fxv8::NewStringHelper(pIsolate, pClassDescriptor->name); in Create()
311 fxv8::NewStringHelper(pIsolate, pClassDescriptor->methods[i].name), in Create()
323 hObjectTemplate->Set(fxv8::NewStringHelper(pIsolate, "toString"), fn); in Create()
Dcjx_exclgroup.cpp127 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue).AsStringView(), in defaultValue()
135 *pValue = fxv8::NewNullHelper(pIsolate); in defaultValue()
138 *pValue = fxv8::NewStringHelper(pIsolate, wsValue.ToUTF8().AsStringView()); in defaultValue()
Dcfxjse_engine.cpp274 if (pOriginalNode->IsThisProxy() && fxv8::IsUndefined(pValue)) { in GlobalPropertySetter()
275 fxv8::ReentrantDeleteObjectPropertyHelper(pScriptContext->GetIsolate(), in GlobalPropertySetter()
303 v8::Local<v8::Value> pValue = fxv8::NewUndefinedHelper(pIsolate); in GlobalPropertyGetter()
387 return fxv8::NewUndefinedHelper(pIsolate); in NormalPropertyGetter()
398 v8::Local<v8::Value> pReturnValue = fxv8::NewUndefinedHelper(pIsolate); in NormalPropertyGetter()
649 if (!fxv8::ReentrantHasObjectOwnPropertyHelper(GetIsolate(), pObject, in QueryVariableValue()
655 fxv8::ReentrantGetObjectPropertyHelper(GetIsolate(), pObject, szPropName); in QueryVariableValue()
656 if (fxv8::IsFunction(hVariableValue)) { in QueryVariableValue()
675 fxv8::ReentrantSetObjectOwnPropertyHelper(GetIsolate(), pObject, szPropName, in UpdateVariableValue()
683 fxv8::ReentrantDeleteObjectPropertyHelper(GetIsolate(), pObject, "Number"); in RemoveBuiltInObjs()
[all …]
Dcjx_tree.cpp164 : fxv8::NewNullHelper(pIsolate).As<v8::Value>(); in parent()
178 *pValue = fxv8::NewNumberHelper(pIsolate, in index()
193 *pValue = fxv8::NewNumberHelper(pIsolate, in classIndex()
207 *pValue = fxv8::NewStringHelper(pIsolate, bsSOMExpression.AsStringView()); in somExpression()
Dcjx_packet.cpp94 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue))); in content()
103 *pValue = fxv8::NewStringHelper(pIsolate, wsTextData.ToUTF8().AsStringView()); in content()
Dcjx_instancemanager.cpp307 *pValue = fxv8::NewNumberHelper( in max()
320 *pValue = fxv8::NewNumberHelper( in min()
329 SetInstances(pIsolate, fxv8::ReentrantToInt32Helper(pIsolate, *pValue)); in count()
332 *pValue = fxv8::NewNumberHelper(pIsolate, GetXFANode()->GetCount()); in count()
Dcjx_node.cpp411 *pValue = fxv8::NewStringHelper( in ns()
425 *pValue = fxv8::NewNullHelper(pIsolate); in model()
440 *pValue = fxv8::NewBooleanHelper(pIsolate, GetXFANode()->IsContainerNode()); in isContainer()
452 *pValue = fxv8::NewBooleanHelper(pIsolate, false); in isNull()
455 *pValue = fxv8::NewBooleanHelper(pIsolate, GetContent(false).IsEmpty()); in isNull()
Dcjx_form.cpp139 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue), in checksumS()
146 *pValue = fxv8::NewStringHelper( in checksumS()
/external/pdfium/testing/
Dxfa_js_embedder_test.cpp86 if (!fxv8::IsArray(result)) in Execute()
89 v8::Local<v8::Value> msg = fxv8::ReentrantGetArrayElementHelper( in Execute()
91 if (!fxv8::IsString(msg)) in Execute()
94 WideString str = fxv8::ReentrantToWideStringHelper(isolate(), msg); in Execute()

12