MCPcopy Create free account
hub / github.com/breach/thrust / JavaScriptDialogClosed

Method JavaScriptDialogClosed

src/renderer/extensions/web_view_bindings.cc:481–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481void
482WebViewBindings::JavaScriptDialogClosed(
483 const v8::FunctionCallbackInfo<v8::Value>& args)
484{
485 if(args.Length() != 3 || !args[0]->IsNumber() ||
486 !args[1]->IsBoolean() || !args[2]->IsString()) {
487 NOTREACHED();
488 return;
489 }
490
491 int guest_instance_id = args[0]->NumberValue();
492 bool success = args[1]->BooleanValue();
493 std::string response(*v8::String::Utf8Value(args[2]));
494
495 LOG(INFO) << "WEB_VIEW_BINDINGS: JavaScriptDialogClosed " << guest_instance_id << " "
496 << success << " " << response;
497
498 render_frame_observer_->Send(
499 new ThrustFrameHostMsg_WebViewGuestJavaScriptDialogClosed(
500 render_frame_observer_->routing_id(),
501 guest_instance_id, success, response));
502}
503
504
505} // namespace extensions

Callers 1

webviewFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected