Add a method in InspectableWebContentDelegate to set icon for devtools window.

This commit is contained in:
Cheng Zhao 2014-09-09 15:28:48 +08:00
parent c67ba6de6a
commit a6627a7286
6 changed files with 28 additions and 0 deletions

View file

@ -3,12 +3,17 @@
#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) {}