Add InspectableWebContentsViewDelegate

This commit is contained in:
Cheng Zhao 2015-06-25 12:29:34 +08:00
parent 9fb30b702a
commit f9dc87ba97
9 changed files with 71 additions and 38 deletions

View file

@ -3,34 +3,20 @@
#include <string>
#include "ui/gfx/image/image_skia.h"
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() {}
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
};
} // namespace brightray