2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-08-04 16:00:39 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_GIN_CONVERTERS_ACCELERATOR_CONVERTER_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_GIN_CONVERTERS_ACCELERATOR_CONVERTER_H_
|
2014-08-04 16:00:39 +00:00
|
|
|
|
2019-10-25 13:03:28 +00:00
|
|
|
#include "gin/converter.h"
|
2014-08-04 16:00:39 +00:00
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
class Accelerator;
|
|
|
|
}
|
|
|
|
|
2019-10-25 13:03:28 +00:00
|
|
|
namespace gin {
|
2014-08-04 16:00:39 +00:00
|
|
|
|
2018-04-18 01:44:10 +00:00
|
|
|
template <>
|
2014-08-04 16:00:39 +00:00
|
|
|
struct Converter<ui::Accelerator> {
|
2018-04-18 01:44:10 +00:00
|
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
|
|
v8::Local<v8::Value> val,
|
2014-08-04 16:00:39 +00:00
|
|
|
ui::Accelerator* out);
|
|
|
|
};
|
|
|
|
|
2019-10-25 13:03:28 +00:00
|
|
|
} // namespace gin
|
2014-08-04 16:00:39 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_GIN_CONVERTERS_ACCELERATOR_CONVERTER_H_
|