Enable calling WebContents::openDevTools for BrowserWindow's WebContents

This commit is contained in:
Cheng Zhao 2015-06-05 15:41:03 +08:00
parent 67144aaf2a
commit 94d69777fa
5 changed files with 78 additions and 43 deletions

View file

@ -473,7 +473,7 @@ bool Window::IsVisibleOnAllWorkspaces() {
}
mate::Handle<WebContents> Window::GetWebContents(v8::Isolate* isolate) const {
return WebContents::CreateFrom(isolate, window_->GetWebContents());
return WebContents::CreateFrom(isolate, window_->managed_web_contents());
}
mate::Handle<WebContents> Window::GetDevToolsWebContents(