35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
// 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
|
|
{
|
|
/// <summary>
|
|
/// Event arguments for the <see cref="IJavascriptObjectRepository.ResolveObject"/> event
|
|
/// </summary>
|
|
public class JavascriptBindingEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// The javascript object repository, used to register objects
|
|
/// </summary>
|
|
public IJavascriptObjectRepository ObjectRepository { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Name of the object
|
|
/// </summary>
|
|
public string ObjectName { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="objectRepository">object repository</param>
|
|
/// <param name="name">object name</param>
|
|
public JavascriptBindingEventArgs(IJavascriptObjectRepository objectRepository, string name)
|
|
{
|
|
ObjectRepository = objectRepository;
|
|
ObjectName = name;
|
|
}
|
|
}
|
|
}
|