Add header for asynchronous version of ShowMessageBox.
This commit is contained in:
parent
68bdad9a23
commit
bfe59480e3
3 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue