2013-03-14 13:03:50 +00:00
|
|
|
#ifndef BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_H_
|
|
|
|
#define BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_H_
|
|
|
|
|
|
|
|
#include "content/public/browser/web_contents.h"
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsView;
|
|
|
|
|
|
|
|
class InspectableWebContents {
|
2013-11-17 23:20:54 +00:00
|
|
|
public:
|
|
|
|
static InspectableWebContents* Create(
|
|
|
|
const content::WebContents::CreateParams&);
|
2013-04-22 12:41:58 +00:00
|
|
|
|
2013-11-17 23:20:54 +00:00
|
|
|
// The returned InspectableWebContents takes ownership of the passed-in
|
|
|
|
// WebContents.
|
2013-04-20 05:24:45 +00:00
|
|
|
static InspectableWebContents* Create(content::WebContents*);
|
2013-04-22 12:41:58 +00:00
|
|
|
|
2013-03-14 13:03:50 +00:00
|
|
|
virtual ~InspectableWebContents() {}
|
|
|
|
|
|
|
|
virtual InspectableWebContentsView* GetView() const = 0;
|
|
|
|
virtual content::WebContents* GetWebContents() const = 0;
|
|
|
|
|
|
|
|
virtual void ShowDevTools() = 0;
|
2013-12-09 12:34:44 +00:00
|
|
|
virtual bool IsDevToolsViewShowing() = 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
|