Add NativeWindow::SetContentView

This commit is contained in:
Cheng Zhao 2018-04-08 20:20:43 +09:00
parent 13473ee138
commit 56735d4ff5
6 changed files with 81 additions and 68 deletions

View file

@ -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