// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/common/gin_converters/accelerator_converter.h" #include #include "shell/browser/ui/accelerator_util.h" namespace gin { // static bool Converter::FromV8(v8::Isolate* isolate, v8::Local val, ui::Accelerator* out) { std::string keycode; if (!ConvertFromV8(isolate, val, &keycode)) return false; return accelerator_util::StringToAccelerator(keycode, out); } } // namespace gin