Allow showing message dialog as sheet.

This commit is contained in:
Cheng Zhao 2013-06-07 15:59:12 +08:00
parent a897d5b715
commit dfbbaa9efb
4 changed files with 32 additions and 7 deletions

View file

@ -10,13 +10,16 @@
namespace atom {
class NativeWindow;
enum MessageBoxType {
MESSAGE_BOX_TYPE_NONE = 0,
MESSAGE_BOX_TYPE_INFORMATION,
MESSAGE_BOX_TYPE_WARNING
};
int ShowMessageBox(MessageBoxType type,
int ShowMessageBox(NativeWindow* parent_window,
MessageBoxType type,
const std::vector<std::string>& buttons,
const std::string& title,
const std::string& message,