electron/renderer/api/atom_renderer_bindings.h

47 lines
1 KiB
C
Raw Normal View History

2013-04-22 08:27:34 +00:00
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
#define ATOM_RENDERER_API_ATOM_RENDERER_BINDINGS_H_
#include <string>
2013-04-22 08:27:34 +00:00
#include "common/api/atom_bindings.h"
namespace base {
class ListValue;
}
namespace content {
class RenderView;
}
namespace WebKit {
class WebFrame;
}
2013-04-22 08:27:34 +00:00
namespace atom {
class AtomRendererBindings : public AtomBindings {
public:
explicit AtomRendererBindings(content::RenderView* render_view);
2013-04-22 08:27:34 +00:00
virtual ~AtomRendererBindings();
// Call BindTo for process object of the frame.
void BindToFrame(WebKit::WebFrame* frame);
// Dispatch messages from browser.
2013-04-23 12:57:14 +00:00
void OnBrowserMessage(const std::string& channel,
const base::ListValue& args);
2013-04-22 08:27:34 +00:00
private:
content::RenderView* render_view_;
2013-04-22 08:27:34 +00:00
DISALLOW_COPY_AND_ASSIGN(AtomRendererBindings);
};
} // namespace atom
#endif // ATOM_RENDERER_API_ATOM_BINDINGS_H_