Add NativeWindow::SetContentView
This commit is contained in:
parent
13473ee138
commit
56735d4ff5
6 changed files with 81 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue