Enable webui in content layer.

Allow to access Chrome's webuis(chrome://gpu, chrome://tracing) in Atom Shell.
This commit is contained in:
Haojian Wu 2015-03-29 16:33:51 +08:00
parent 6090358f16
commit 0eae030f67
2 changed files with 7 additions and 0 deletions

View file

@ -46,4 +46,9 @@ gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const {
resource_id); resource_id);
} }
base::RefCountedStaticMemory* ContentClient::GetDataResourceBytes(
int resource_id) const {
return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
}
} // namespace brightray } // namespace brightray

View file

@ -22,6 +22,8 @@ class ContentClient : public content::ContentClient {
base::StringPiece GetDataResource(int resource_id, base::StringPiece GetDataResource(int resource_id,
ui::ScaleFactor) const override; ui::ScaleFactor) const override;
gfx::Image& GetNativeImageNamed(int resource_id) const override; gfx::Image& GetNativeImageNamed(int resource_id) const override;
base::RefCountedStaticMemory* GetDataResourceBytes(
int resource_id) const override;
DISALLOW_COPY_AND_ASSIGN(ContentClient); DISALLOW_COPY_AND_ASSIGN(ContentClient);
}; };