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);
}
window,
callback
+ showErrorBox: (args...) ->
+ binding.showErrorBox args...
+
# Mark standard asynchronous functions.
v8Util.setHiddenValue f, 'asynchronous', true for k, f of module.exports
#include <vector>
#include "base/callback_forward.h"
+#include "base/strings/string16.h"
namespace atom {
const std::string& detail,
const MessageBoxCallback& callback);
+// Like ShowMessageBox with simplest settings, but safe to call at very early
+// stage of application.
+void ShowErrorBox(const base::string16& title, const base::string16& content);
+
} // namespace atom
#endif // ATOM_BROWSER_UI_MESSAGE_BOX_H_