Store InspectableWebContents instead of InspectableWebContentsView in NativeBrowserView

This commit is contained in:
Birunthan Mohanathas 2018-03-19 09:50:30 +02:00
parent 6b80865bfe
commit 61160ff9e5
7 changed files with 30 additions and 20 deletions

View file

@ -7,14 +7,19 @@
#include "atom/browser/native_browser_view.h"
#include "atom/browser/api/atom_api_web_contents.h"
#include "brightray/browser/inspectable_web_contents_view.h"
#include "brightray/browser/inspectable_web_contents.h"
namespace atom {
NativeBrowserView::NativeBrowserView(
brightray::InspectableWebContentsView* web_contents_view)
: web_contents_view_(web_contents_view) {}
brightray::InspectableWebContents* inspectable_web_contents)
: inspectable_web_contents_(inspectable_web_contents) {}
NativeBrowserView::~NativeBrowserView() {}
brightray::InspectableWebContentsView*
NativeBrowserView::GetInspectableWebContentsView() {
return inspectable_web_contents_->GetView();
}
} // namespace atom