Add 'closed' and 'destroyed' event for Window.

This commit is contained in:
Cheng Zhao 2013-05-02 18:19:07 +08:00
parent afe07521c5
commit 21df63fc9b
3 changed files with 12 additions and 3 deletions

View file

@ -26,6 +26,7 @@ class EventEmitter : public node::ObjectWrap {
virtual ~EventEmitter();
// Emit an event and returns whether the handler has called preventDefault().
bool Emit(const std::string& name);
bool Emit(const std::string& name, base::ListValue* args);
// Small accessor to return handle_, this follows Google C++ Style.