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!
33 lines
915 B
C++
33 lines
915 B
C++
#ifndef BRIGHTRAY_BROWSER_WIN_INSPECTABLE_WEB_CONTENTS_VIEW_WIN_H_
|
|
#define BRIGHTRAY_BROWSER_WIN_INSPECTABLE_WEB_CONTENTS_VIEW_WIN_H_
|
|
|
|
#include "browser/inspectable_web_contents_view.h"
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
namespace brightray {
|
|
|
|
class InspectableWebContentsImpl;
|
|
|
|
class InspectableWebContentsViewWin : public InspectableWebContentsView {
|
|
public:
|
|
InspectableWebContentsViewWin(InspectableWebContentsImpl*);
|
|
~InspectableWebContentsViewWin();
|
|
|
|
virtual gfx::NativeView GetNativeView() const OVERRIDE;
|
|
virtual void ShowDevTools() OVERRIDE;
|
|
virtual void CloseDevTools() OVERRIDE;
|
|
virtual bool SetDockSide(const std::string& side) OVERRIDE;
|
|
|
|
InspectableWebContentsImpl* inspectable_web_contents() { return inspectable_web_contents_; }
|
|
|
|
private:
|
|
// Owns us.
|
|
InspectableWebContentsImpl* inspectable_web_contents_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewWin);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|