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

Method WebViewGuestInsertCSS

src/browser/thrust_window.cc:741–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void
742ThrustWindow::WebViewGuestInsertCSS(
743 int guest_instance_id,
744 const std::string& css)
745{
746 WebViewGuest* guest =
747 WebViewGuest::FromWebContents(
748 ThrustShellBrowserClient::Get()->ThrustSessionForBrowserContext(
749 GetWebContents()->GetBrowserContext())->
750 GetGuestByInstanceID(guest_instance_id,
751 GetWebContents()->GetRenderProcessHost()->GetID()));
752
753 guest->InsertCSS(css);
754}
755
756void
757ThrustWindow::WebViewGuestExecuteScript(

Callers

nothing calls this directly

Calls 3

GetGuestByInstanceIDMethod · 0.80
InsertCSSMethod · 0.45

Tested by

no test coverage detected