| 17 | static std::shared_ptr<drawers::AppHost> CreateAppHost(); |
| 18 | |
| 19 | static napi_value OnUpdateDensity(napi_env env, napi_callback_info info) { |
| 20 | size_t argc = 1; |
| 21 | napi_value args[1] = {nullptr}; |
| 22 | napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); |
| 23 | double value; |
| 24 | napi_get_value_double(env, args[0], &value); |
| 25 | screenDensity = static_cast<float>(value); |
| 26 | return nullptr; |
| 27 | } |
| 28 | |
| 29 | static napi_value AddImageFromEncoded(napi_env env, napi_callback_info info) { |
| 30 | size_t argc = 2; |
nothing calls this directly
no outgoing calls
no test coverage detected