2013-11-07 20:02:35 +00:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_LINUX_INSPECTABLE_WEB_CONTENTS_VIEW_LINUX_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_LINUX_INSPECTABLE_WEB_CONTENTS_VIEW_LINUX_H_
|
|
|
|
|
2014-07-02 12:59:51 +00:00
|
|
|
#include "browser/devtools_contents_resizing_strategy.h"
|
2013-11-07 20:02:35 +00:00
|
|
|
#include "browser/inspectable_web_contents_view.h"
|
|
|
|
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsImpl;
|
|
|
|
|
|
|
|
class InspectableWebContentsViewLinux : public InspectableWebContentsView {
|
2013-11-17 23:52:02 +00:00
|
|
|
public:
|
|
|
|
explicit InspectableWebContentsViewLinux(
|
|
|
|
InspectableWebContentsImpl* inspectable_web_contents_impl);
|
2013-11-07 20:02:35 +00:00
|
|
|
~InspectableWebContentsViewLinux();
|
|
|
|
|
|
|
|
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;
|
2014-07-02 12:59:51 +00:00
|
|
|
virtual void SetIsDocked(bool docked) OVERRIDE;
|
|
|
|
virtual void SetContentsResizingStrategy(
|
|
|
|
const DevToolsContentsResizingStrategy& strategy) OVERRIDE;
|
2013-11-07 20:02:35 +00:00
|
|
|
|
2013-11-17 23:52:02 +00:00
|
|
|
InspectableWebContentsImpl* inspectable_web_contents() {
|
|
|
|
return inspectable_web_contents_;
|
|
|
|
}
|
2013-11-07 20:02:35 +00:00
|
|
|
|
2013-11-17 23:52:02 +00:00
|
|
|
private:
|
2013-11-16 04:22:25 +00:00
|
|
|
// Owns us.
|
|
|
|
InspectableWebContentsImpl* inspectable_web_contents_;
|
|
|
|
|
2014-07-02 12:59:51 +00:00
|
|
|
DevToolsContentsResizingStrategy strategy_;
|
2013-11-16 04:22:25 +00:00
|
|
|
|
2013-11-07 20:02:35 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewLinux);
|
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-11-07 20:02:35 +00:00
|
|
|
|
|
|
|
#endif
|