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

@ -4,6 +4,7 @@
#include "browser/ui/message_box.h"
#include "base/callback.h"
#include "base/message_loop.h"
#include "base/run_loop.h"
#include "base/string_util.h"
@ -253,4 +254,15 @@ int ShowMessageBox(NativeWindow* parent_window,
}
}
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