mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
3a749c0bf2
Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
43 lines
1.5 KiB
C#
43 lines
1.5 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>
|
|
/// URL of frame the <see cref="IJavascriptObjectRepository.ResolveObject"/> call originated from.
|
|
/// </summary>
|
|
public string Url { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="objectRepository">object repository</param>
|
|
/// <param name="url">URL of frame the <see cref="IJavascriptObjectRepository.ResolveObject"/> call originated from.</param>
|
|
/// <param name="name">object name</param>
|
|
public JavascriptBindingEventArgs(IJavascriptObjectRepository objectRepository, string url, string name)
|
|
{
|
|
ObjectRepository = objectRepository;
|
|
ObjectName = name;
|
|
Url = url;
|
|
}
|
|
}
|
|
}
|