// Copyright © 2018 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; namespace CefSharp.Event { /// /// Event arguments for the event /// public class JavascriptBindingCompleteEventArgs : EventArgs { /// /// The javascript object repository, used to register objects /// public IJavascriptObjectRepository ObjectRepository { get; private set; } /// /// Name of the object /// public string ObjectName { get; private set; } /// /// Was the object already bound. The default is false for the first js call to /// CefSharp.BindObjectAsync, and subsiquently true if already bound in a given context. /// public bool AlreadyBound { get; private set; } /// /// Is the object cached /// public bool IsCached { get; private set; } /// /// JavascriptBindingCompleteEventArgs /// /// javascript object repository /// object name /// is the object already bound /// is the object cached public JavascriptBindingCompleteEventArgs(IJavascriptObjectRepository objectRepository, string name, bool alreadyBound, bool isCached) { ObjectRepository = objectRepository; ObjectName = name; AlreadyBound = alreadyBound; IsCached = isCached; } } }