2013-03-14 09:03:50 -04:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_H_
|
|
|
|
|
|
|
|
#include "ui/gfx/native_widget_types.h"
|
|
|
|
|
2014-07-02 16:21:47 +08:00
|
|
|
class DevToolsContentsResizingStrategy;
|
|
|
|
|
2013-03-14 09:03:50 -04:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsView {
|
2013-11-17 18:23:13 -05:00
|
|
|
public:
|
2013-03-14 09:03:50 -04:00
|
|
|
virtual ~InspectableWebContentsView() {}
|
|
|
|
|
|
|
|
virtual gfx::NativeView GetNativeView() const = 0;
|
|
|
|
|
|
|
|
virtual void ShowDevTools() = 0;
|
2014-03-20 09:26:21 +08:00
|
|
|
// Hide the DevTools view.
|
2013-03-27 10:59:40 -04:00
|
|
|
virtual void CloseDevTools() = 0;
|
2013-12-09 04:34:44 -08:00
|
|
|
virtual bool IsDevToolsViewShowing() = 0;
|
2014-07-02 16:21:47 +08:00
|
|
|
virtual void SetIsDocked(bool docked) = 0;
|
|
|
|
virtual void SetContentsResizingStrategy(
|
|
|
|
const DevToolsContentsResizingStrategy& strategy) = 0;
|
2013-03-14 09:03:50 -04:00
|
|
|
};
|
|
|
|
|
2013-11-17 18:20:17 -05:00
|
|
|
} // namespace brightray
|
2013-03-14 09:03:50 -04:00
|
|
|
|
|
|
|
#endif
|