void ShowMessageBox(int type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::vector<std::string>& texts,
const gfx::ImageSkia& icon,
atom::NativeWindow* window,
peek,
&callback)) {
atom::ShowMessageBox(window, (atom::MessageBoxType)type, buttons, cancel_id,
- title, message, detail, icon, callback);
+ options, title, message, detail, icon, callback);
} else {
int chosen = atom::ShowMessageBox(window, (atom::MessageBoxType)type,
- buttons, cancel_id, title, message,
- detail, icon);
+ buttons, cancel_id, options, title,
+ message, detail, icon);
args->Return(chosen);
}
}
binding.showMessageBox messageBoxType,
options.buttons,
options.cancelId,
+ 0,
[options.title, options.message, options.detail],
options.icon,
window,
MESSAGE_BOX_TYPE_QUESTION,
};
+enum MessageBoxOptions {
+ MESSAGE_BOX_NONE = 0,
+ MESSAGE_BOX_NO_LINKS = 1 << 0,
+};
+
typedef base::Callback<void(int code)> MessageBoxCallback;
int ShowMessageBox(NativeWindow* parent_window,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,
MessageBoxType type,
const std::vector<std::string>& buttons,
int cancel_id,
+ int options,
const std::string& title,
const std::string& message,
const std::string& detail,