cf14f09228
This class doesn't implement any devtools behavior yet. Right now it's just a glorified wrapper around a content::WebContents. But it's enough to show web content on screen on Windows!
34 lines
989 B
C++
34 lines
989 B
C++
#include "browser/win/inspectable_web_contents_view_win.h"
|
|
|
|
#include "browser/inspectable_web_contents_impl.h"
|
|
|
|
#include "content/public/browser/web_contents_view.h"
|
|
|
|
namespace brightray {
|
|
|
|
InspectableWebContentsView* CreateInspectableContentsView(InspectableWebContentsImpl* inspectable_web_contents) {
|
|
return new InspectableWebContentsViewWin(inspectable_web_contents);
|
|
}
|
|
|
|
InspectableWebContentsViewWin::InspectableWebContentsViewWin(InspectableWebContentsImpl* inspectable_web_contents)
|
|
: inspectable_web_contents_(inspectable_web_contents) {
|
|
}
|
|
|
|
InspectableWebContentsViewWin::~InspectableWebContentsViewWin() {
|
|
}
|
|
|
|
gfx::NativeView InspectableWebContentsViewWin::GetNativeView() const {
|
|
return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView();
|
|
}
|
|
|
|
void InspectableWebContentsViewWin::ShowDevTools() {
|
|
}
|
|
|
|
void InspectableWebContentsViewWin::CloseDevTools() {
|
|
}
|
|
|
|
bool InspectableWebContentsViewWin::SetDockSide(const std::string& side) {
|
|
return false;
|
|
}
|
|
|
|
}
|