electron/brightray/browser/inspectable_web_contents_delegate.h

39 lines
1.1 KiB
C
Raw Normal View History

2014-03-04 08:12:02 +00:00
#ifndef BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
#define BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
#include <string>
#include "ui/gfx/image/image_skia.h"
2014-03-04 08:12:02 +00:00
namespace brightray {
class InspectableWebContentsDelegate {
public:
virtual ~InspectableWebContentsDelegate() {}
// Returns the icon of devtools window.
virtual gfx::ImageSkia GetDevToolsWindowIcon();
// 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) {}
virtual void DevToolsFocused() {}
2015-06-04 16:51:23 +00:00
virtual void DevToolsAddFileSystem() {}
virtual void DevToolsRemoveFileSystem(
const std::string& file_system_path) {}
virtual void DevToolsOpened() {}
virtual void DevToolsClosed() {}
#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_