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

@ -32,6 +32,11 @@ EventEmitter::EventEmitter(v8::Handle<v8::Object> wrapper) {
EventEmitter::~EventEmitter() {
}
bool EventEmitter::Emit(const std::string& name) {
base::ListValue args;
return Emit(name, &args);
}
bool EventEmitter::Emit(const std::string& name, base::ListValue* args) {
v8::HandleScope scope;