Inject node bindings to renderer's DOM.

This commit is contained in:
Cheng Zhao 2013-04-20 11:13:06 +08:00
parent 855b42551d
commit 4c0a162963
6 changed files with 76 additions and 7 deletions

View file

@ -9,14 +9,21 @@
namespace atom {
class NodeBindings;
class AtomRendererClient : public content::ContentRendererClient {
public:
AtomRendererClient();
virtual ~AtomRendererClient();
NodeBindings* node_bindings() const { return node_bindings_.get(); }
private:
virtual void RenderThreadStarted() OVERRIDE;
virtual void RenderViewCreated(content::RenderView*) OVERRIDE;
scoped_ptr<NodeBindings> node_bindings_;
DISALLOW_COPY_AND_ASSIGN(AtomRendererClient);
};