Merge pull request #95 from hokein/webui

Enable webui in content layer.
This commit is contained in:
Cheng Zhao 2015-03-29 20:57:24 +08:00
commit 17f1fc618e
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);
}
base::RefCountedStaticMemory* ContentClient::GetDataResourceBytes(
int resource_id) const {
return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
}
} // namespace brightray

View file

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