2013-03-14 13:03:50 +00: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 08:21:47 +00:00
|
|
|
class DevToolsContentsResizingStrategy;
|
|
|
|
|
2014-07-04 08:25:59 +00:00
|
|
|
#if defined(TOOLKIT_VIEWS)
|
|
|
|
namespace views {
|
|
|
|
class View;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-03-14 13:03:50 +00:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsView {
|
2013-11-17 23:23:13 +00:00
|
|
|
public:
|
2013-03-14 13:03:50 +00:00
|
|
|
virtual ~InspectableWebContentsView() {}
|
|
|
|
|
2014-07-04 08:25:59 +00:00
|
|
|
#if defined(TOOLKIT_VIEWS)
|
|
|
|
// Returns the container control, which has devtools view attached.
|
|
|
|
virtual views::View* GetView() = 0;
|
2013-03-14 13:03:50 +00:00
|
|
|
|
2014-07-04 08:25:59 +00:00
|
|
|
// Returns the web view control, which can be used by the
|
|
|
|
// GetInitiallyFocusedView() to set initial focus to web view.
|
|
|
|
virtual views::View* GetWebView() = 0;
|
2014-07-11 15:32:00 +00:00
|
|
|
#else
|
|
|
|
virtual gfx::NativeView GetNativeView() const = 0;
|
2014-07-04 08:25:59 +00:00
|
|
|
#endif
|
|
|
|
|
2013-03-14 13:03:50 +00:00
|
|
|
virtual void ShowDevTools() = 0;
|
2014-03-20 01:26:21 +00:00
|
|
|
// Hide the DevTools view.
|
2013-03-27 14:59:40 +00:00
|
|
|
virtual void CloseDevTools() = 0;
|
2013-12-09 12:34:44 +00:00
|
|
|
virtual bool IsDevToolsViewShowing() = 0;
|
2014-07-02 08:21:47 +00:00
|
|
|
virtual void SetIsDocked(bool docked) = 0;
|
|
|
|
virtual void SetContentsResizingStrategy(
|
|
|
|
const DevToolsContentsResizingStrategy& strategy) = 0;
|
2013-03-14 13:03:50 +00:00
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-03-14 13:03:50 +00:00
|
|
|
|
|
|
|
#endif
|