2019-06-14 15:26:25 +00:00
|
|
|
// Copyright (c) 2019 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_COMMON_NATIVE_MATE_CONVERTERS_MESSAGE_BOX_CONVERTER_H_
|
|
|
|
#define SHELL_COMMON_NATIVE_MATE_CONVERTERS_MESSAGE_BOX_CONVERTER_H_
|
2019-06-14 15:26:25 +00:00
|
|
|
|
|
|
|
#include "native_mate/converter.h"
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/ui/message_box.h"
|
2019-06-14 15:26:25 +00:00
|
|
|
|
|
|
|
namespace mate {
|
|
|
|
|
|
|
|
template <>
|
2019-06-19 21:23:04 +00:00
|
|
|
struct Converter<electron::MessageBoxSettings> {
|
2019-06-14 15:26:25 +00:00
|
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
|
|
v8::Local<v8::Value> val,
|
2019-06-19 21:23:04 +00:00
|
|
|
electron::MessageBoxSettings* out);
|
2019-06-14 15:26:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mate
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_COMMON_NATIVE_MATE_CONVERTERS_MESSAGE_BOX_CONVERTER_H_
|