electron/brightray/browser/linux/inspectable_web_contents_view_linux.cc

46 lines
1.4 KiB
C++
Raw Normal View History

#include "inspectable_web_contents_view_linux.h"
#include "browser/browser_client.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 InspectableWebContentsViewLinux(inspectable_web_contents);
}
InspectableWebContentsViewLinux::InspectableWebContentsViewLinux(InspectableWebContentsImpl* inspectable_web_contents)
: inspectable_web_contents_(inspectable_web_contents) {
2013-11-08 05:42:15 +00:00
// TODO
fprintf(stderr, "InspectableWebContentsViewLinux::InspectableWebContentsViewLinux\n");
}
InspectableWebContentsViewLinux::~InspectableWebContentsViewLinux() {
2013-11-08 05:42:15 +00:00
// TODO
fprintf(stderr, "InspectableWebContentsViewLinux::~InspectableWebContentsViewLinux\n");
}
gfx::NativeView InspectableWebContentsViewLinux::GetNativeView() const {
2013-11-08 05:42:15 +00:00
return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView();
}
void InspectableWebContentsViewLinux::ShowDevTools() {
2013-11-08 05:42:15 +00:00
// TODO
fprintf(stderr, "InspectableWebContentsViewLinux::ShowDevTools\n");
}
void InspectableWebContentsViewLinux::CloseDevTools() {
2013-11-08 05:42:15 +00:00
// TODO
fprintf(stderr, "InspectableWebContentsViewLinux::CloseDevTools\n");
}
bool InspectableWebContentsViewLinux::SetDockSide(const std::string& side) {
2013-11-08 05:42:15 +00:00
// TODO
fprintf(stderr, "InspectableWebContentsViewLinux::SetDockSide\n");
return false;
}
}