and use the same signature for Windows
This commit is contained in:
parent
4f40b8a42c
commit
dca08c208b
2 changed files with 7 additions and 1 deletions
|
@ -129,7 +129,7 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
||||||
dict.SetMethod("showErrorBox", &atom::ShowErrorBox);
|
dict.SetMethod("showErrorBox", &atom::ShowErrorBox);
|
||||||
dict.SetMethod("showOpenDialog", &ShowOpenDialog);
|
dict.SetMethod("showOpenDialog", &ShowOpenDialog);
|
||||||
dict.SetMethod("showSaveDialog", &ShowSaveDialog);
|
dict.SetMethod("showSaveDialog", &ShowSaveDialog);
|
||||||
#if defined(OS_MACOSX)
|
#if defined(OS_MACOSX) || defined(OS_WIN)
|
||||||
dict.SetMethod("showCertificateTrustDialog",
|
dict.SetMethod("showCertificateTrustDialog",
|
||||||
&certificate_trust::ShowCertificateTrust);
|
&certificate_trust::ShowCertificateTrust);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -8,5 +8,11 @@
|
||||||
|
|
||||||
namespace certificate_trust {
|
namespace certificate_trust {
|
||||||
|
|
||||||
|
void ShowCertificateTrust(atom::NativeWindow* parent_window,
|
||||||
|
const scoped_refptr<net::X509Certificate>& cert,
|
||||||
|
const std::string& message,
|
||||||
|
const ShowTrustCallback& callback) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace certificate_trust
|
} // namespace certificate_trust
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue