2014-03-04 08:12:02 +00:00
|
|
|
#ifndef BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
|
|
|
#define BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2014-09-09 07:28:48 +00:00
|
|
|
#include "ui/gfx/image/image_skia.h"
|
|
|
|
|
2014-03-04 08:12:02 +00:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsDelegate {
|
|
|
|
public:
|
|
|
|
virtual ~InspectableWebContentsDelegate() {}
|
|
|
|
|
2014-09-09 07:28:48 +00:00
|
|
|
// Returns the icon of devtools window.
|
|
|
|
virtual gfx::ImageSkia GetDevToolsWindowIcon();
|
|
|
|
|
2014-04-04 16:10:09 +00:00
|
|
|
// Requested by WebContents of devtools.
|
|
|
|
virtual void DevToolsSaveToFile(
|
|
|
|
const std::string& url, const std::string& content, bool save_as) {}
|
|
|
|
virtual void DevToolsAppendToFile(
|
|
|
|
const std::string& url, const std::string& content) {}
|
2015-03-31 15:47:28 +00:00
|
|
|
virtual void DevToolsFocused() {}
|
2014-11-24 08:03:55 +00:00
|
|
|
|
|
|
|
#if defined(USE_X11)
|
|
|
|
// Called when creating devtools window.
|
|
|
|
virtual void GetDevToolsWindowWMClass(
|
|
|
|
std::string* name, std::string* class_name) {}
|
|
|
|
#endif
|
2014-03-04 08:12:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace brightray
|
|
|
|
|
|
|
|
#endif // BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|