mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Add NativeWindow::SetContentView
This commit is contained in:
@@ -150,9 +150,9 @@ void BrowserWindow::Init(v8::Isolate* isolate,
|
||||
|
||||
// Creates BrowserWindow.
|
||||
window_.reset(NativeWindow::Create(
|
||||
web_contents->managed_web_contents(),
|
||||
options,
|
||||
parent.IsEmpty() ? nullptr : parent->window_.get()));
|
||||
window_->SetContentView(web_contents->managed_web_contents());
|
||||
web_contents->SetOwnerWindow(window_.get());
|
||||
|
||||
// Tell the content module to initialize renderer widget with transparent
|
||||
|
||||
Reference in New Issue
Block a user