// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_UI_MESSAGE_BOX_H_ #define ATOM_BROWSER_UI_MESSAGE_BOX_H_ #include #include #include "base/callback_forward.h" namespace atom { class NativeWindow; enum MessageBoxType { MESSAGE_BOX_TYPE_NONE = 0, MESSAGE_BOX_TYPE_INFORMATION, MESSAGE_BOX_TYPE_WARNING }; typedef base::Callback MessageBoxCallback; int ShowMessageBox(NativeWindow* parent_window, MessageBoxType type, const std::vector& buttons, const std::string& title, const std::string& message, const std::string& detail); void ShowMessageBox(NativeWindow* parent_window, MessageBoxType type, const std::vector& buttons, const std::string& title, const std::string& message, const std::string& detail, const MessageBoxCallback& callback); } // namespace atom #endif // ATOM_BROWSER_UI_MESSAGE_BOX_H_