| 4436 | } |
| 4437 | |
| 4438 | void WebContents::SetEmbedder(const WebContents* embedder) { |
| 4439 | if (embedder) { |
| 4440 | NativeWindow* owner_window = nullptr; |
| 4441 | auto* relay = NativeWindowRelay::FromWebContents(embedder->web_contents()); |
| 4442 | if (relay) { |
| 4443 | owner_window = relay->GetNativeWindow(); |
| 4444 | } |
| 4445 | if (owner_window) |
| 4446 | SetOwnerWindow(owner_window); |
| 4447 | |
| 4448 | if (web_contents()->GetRenderWidgetHostView()) { |
| 4449 | web_contents()->WasHidden(); |
| 4450 | web_contents()->WasShown(); |
| 4451 | } |
| 4452 | } |
| 4453 | } |
| 4454 | |
| 4455 | void WebContents::SetDevToolsWebContents(const WebContents* devtools) { |
| 4456 | if (inspectable_web_contents_) |
nothing calls this directly
no test coverage detected