mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
2e01de8250
To support this use case added IJavascriptObjectRepository.ObjectsBoundInJavascript (called a single time with names of all objects bound) Implements the idea put forward in #2362 # Conflicts: # CefSharp/Internals/JavascriptObjectRepository.cs
32 lines
952 B
C#
32 lines
952 B
C#
// Copyright © 2010-2017 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;
|
|
using System.Collections.Generic;
|
|
|
|
namespace CefSharp.Event
|
|
{
|
|
/// <summary>
|
|
/// Event arguments for the <see cref="IJavascriptObjectRepository.ObjectsBoundInJavascript"/> event
|
|
/// </summary>
|
|
public class JavascriptBindingMultipleCompleteEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// The javascript object repository, used to register objects
|
|
/// </summary>
|
|
public IJavascriptObjectRepository ObjectRepository { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Name of the objects bound
|
|
/// </summary>
|
|
public IList<string> ObjectNames { get; private set; }
|
|
|
|
public JavascriptBindingMultipleCompleteEventArgs(IJavascriptObjectRepository objectRepository, IList<string> names)
|
|
{
|
|
ObjectRepository = objectRepository;
|
|
ObjectNames = names;
|
|
}
|
|
}
|
|
}
|