Add dialog.showErrorBox API

This commit is contained in:
Cheng Zhao 2014-11-05 16:04:39 +08:00
parent e004d53d2a
commit 490a12d38a
3 changed files with 9 additions and 0 deletions

View file

@ -103,6 +103,7 @@ void Initialize(v8::Handle<v8::Object> exports, v8::Handle<v8::Value> unused,
v8::Handle<v8::Context> context, void* priv) {
mate::Dictionary dict(context->GetIsolate(), exports);
dict.SetMethod("showMessageBox", &ShowMessageBox);
dict.SetMethod("showErrorBox", &atom::ShowErrorBox);
dict.SetMethod("showOpenDialog", &ShowOpenDialog);
dict.SetMethod("showSaveDialog", &ShowSaveDialog);
}