Home
last modified time | relevance | path

Searched refs:nwebValue (Results 1 – 3 of 3) sorted by relevance

/base/web/webview/test/unittest/nweb_value_test/
Dnweb_value_test.cpp52 std::shared_ptr<NWebValue> nwebValue = std::make_shared<NWebValue>(NWebValue::Type::NONE); variable
53 NWebValue::Type type = nwebValue->GetType();
56 nwebValue->SetType(NWebValue::Type::BOOLEAN);
57 nwebValue->SetBoolean(true);
59 bool value = nwebValue->GetBoolean();
60 type = nwebValue->GetType();
64 nwebValue->SetBoolean(false);
65 value = nwebValue->GetBoolean();
78 std::shared_ptr<NWebValue> nwebValue = std::make_shared<NWebValue>(NWebValue::Type::NONE); variable
79 nwebValue->SetType(NWebValue::Type::STRING);
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_javascript_result_callback.cpp206 std::shared_ptr<NWebValue> nwebValue) in ParseNapiValue2NwebValue() argument
215 nwebValue->SetType(NWebValue::Type::DOUBLE); in ParseNapiValue2NwebValue()
216 nwebValue->SetDouble(douVal); in ParseNapiValue2NwebValue()
222 nwebValue->SetType(NWebValue::Type::BOOLEAN); in ParseNapiValue2NwebValue()
223 nwebValue->SetBoolean(boolVal); in ParseNapiValue2NwebValue()
231 nwebValue->SetType(NWebValue::Type::STRING); in ParseNapiValue2NwebValue()
232 nwebValue->SetString(strVal); in ParseNapiValue2NwebValue()
Dwebview_javascript_result_callback.h57 …oid ParseNapiValue2NwebValue(napi_env env, napi_value value, std::shared_ptr<NWebValue> nwebValue);