Add 'closed' and 'destroyed' event for Window.
This commit is contained in:
parent
afe07521c5
commit
21df63fc9b
3 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue