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

Method WebViewGuestExecuteScript

src/browser/thrust_window.cc:756–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void
757ThrustWindow::WebViewGuestExecuteScript(
758 int guest_instance_id,
759 const std::string& script)
760{
761 WebViewGuest* guest =
762 WebViewGuest::FromWebContents(
763 ThrustShellBrowserClient::Get()->ThrustSessionForBrowserContext(
764 GetWebContents()->GetBrowserContext())->
765 GetGuestByInstanceID(guest_instance_id,
766 GetWebContents()->GetRenderProcessHost()->GetID()));
767
768 guest->ExecuteScript(script);
769}
770
771void
772ThrustWindow::WebViewGuestOpenDevTools(

Callers

nothing calls this directly

Calls 3

GetGuestByInstanceIDMethod · 0.80
ExecuteScriptMethod · 0.45

Tested by

no test coverage detected