electron/brightray/browser/win/inspectable_web_contents_view_win.cc
Adam Roben cf14f09228 Stub out InspectableWebContentsViewWin
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!
2013-05-22 16:57:32 -04:00

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;
}
}