Add header for asynchronous version of ShowMessageBox.

This commit is contained in:
Cheng Zhao 2013-09-22 17:11:09 +08:00
parent 68bdad9a23
commit bfe59480e3
3 changed files with 36 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#import <Cocoa/Cocoa.h>
#include "base/callback.h"
#include "base/strings/sys_string_conversions.h"
#include "browser/native_window.h"
#include "browser/ui/nsalert_synchronous_sheet_mac.h"
@ -46,4 +47,15 @@ int ShowMessageBox(NativeWindow* parent_window,
return [alert runModal];
}
void ShowMessageBox(NativeWindow* parent_window,
MessageBoxType type,
const std::vector<std::string>& buttons,
const std::string& title,
const std::string& message,
const std::string& detail,
const MessageBoxCallback& callback) {
callback.Run(ShowMessageBox(
parent_window, type, buttons, title, message, detail));
}
} // namespace atom