2015-10-28 12:13:06 +00:00
|
|
|
// Copyright (c) 2015 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_COMMON_NATIVE_MATE_CONVERTERS_CONTENT_CONVERTER_H_
|
|
|
|
#define ATOM_COMMON_NATIVE_MATE_CONVERTERS_CONTENT_CONVERTER_H_
|
|
|
|
|
|
|
|
#include "native_mate/converter.h"
|
|
|
|
|
2015-10-31 13:39:07 +00:00
|
|
|
namespace content {
|
|
|
|
struct ContextMenuParams;
|
|
|
|
struct MenuItem;
|
2015-10-28 12:13:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace mate {
|
|
|
|
|
|
|
|
template<>
|
2015-10-31 13:39:07 +00:00
|
|
|
struct Converter<content::MenuItem> {
|
2015-10-28 12:13:06 +00:00
|
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
2015-10-31 13:39:07 +00:00
|
|
|
const content::MenuItem& val);
|
2015-10-28 12:13:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template<>
|
2015-10-31 13:39:07 +00:00
|
|
|
struct Converter<content::ContextMenuParams> {
|
2015-10-28 12:13:06 +00:00
|
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
2015-10-31 13:39:07 +00:00
|
|
|
const content::ContextMenuParams& val);
|
2015-10-28 12:13:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mate
|
|
|
|
|
|
|
|
#endif // ATOM_COMMON_NATIVE_MATE_CONVERTERS_CONTENT_CONVERTER_H_
|