// Copyright (c) 2020 Samuel Maddock . // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/common/gin_converters/frame_converter.h" #include "content/public/browser/render_frame_host.h" #include "shell/browser/api/electron_api_web_frame_main.h" namespace gin { // static v8::Local Converter::ToV8( v8::Isolate* isolate, content::RenderFrameHost* val) { if (!val) return v8::Null(isolate); return electron::api::WebFrameMain::From(isolate, val).ToV8(); } } // namespace gin