2013-05-22 20:57:32 +00:00
|
|
|
#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"
|
2013-06-04 18:31:37 +00:00
|
|
|
#include "base/memory/weak_ptr.h"
|
2013-05-22 20:57:32 +00:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
2013-06-04 18:31:37 +00:00
|
|
|
class DevToolsWindow;
|
2013-05-22 20:57:32 +00:00
|
|
|
class InspectableWebContentsImpl;
|
|
|
|
|
|
|
|
class InspectableWebContentsViewWin : public InspectableWebContentsView {
|
2013-11-18 00:03:41 +00:00
|
|
|
public:
|
|
|
|
explicit InspectableWebContentsViewWin(
|
|
|
|
InspectableWebContentsImpl* inspectable_web_contents_impl);
|
2013-05-22 20:57:32 +00:00
|
|
|
~InspectableWebContentsViewWin();
|
|
|
|
|
|
|
|
virtual gfx::NativeView GetNativeView() const OVERRIDE;
|
|
|
|
virtual void ShowDevTools() OVERRIDE;
|
|
|
|
virtual void CloseDevTools() OVERRIDE;
|
2013-12-09 12:34:44 +00:00
|
|
|
virtual bool IsDevToolsViewShowing() OVERRIDE;
|
2013-05-22 20:57:32 +00:00
|
|
|
virtual bool SetDockSide(const std::string& side) OVERRIDE;
|
|
|
|
|
2013-11-18 00:03:41 +00:00
|
|
|
InspectableWebContentsImpl* inspectable_web_contents() {
|
|
|
|
return inspectable_web_contents_;
|
|
|
|
}
|
2013-05-22 20:57:32 +00:00
|
|
|
|
2013-11-18 00:03:41 +00:00
|
|
|
private:
|
2013-05-22 20:57:32 +00:00
|
|
|
// Owns us.
|
|
|
|
InspectableWebContentsImpl* inspectable_web_contents_;
|
|
|
|
|
2013-06-04 18:31:37 +00:00
|
|
|
base::WeakPtr<DevToolsWindow> devtools_window_;
|
|
|
|
|
2013-05-22 20:57:32 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewWin);
|
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-05-22 20:57:32 +00:00
|
|
|
|
|
|
|
#endif
|