mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
94b77750e6
In GetBrowserWrapper check if _cefBrowser has a valid pointer Add ManagedCefBrowserAdapter IsDisposed check in JavascriptCallbackProxy::GetBrowser Add CanExecute to check if underlying resources are still available
25 lines
715 B
C#
25 lines
715 B
C#
// Copyright © 2010-2015 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.Threading.Tasks;
|
|
|
|
namespace CefSharp
|
|
{
|
|
public interface IJavascriptCallback : IDisposable
|
|
{
|
|
Task<JavascriptResponse> ExecuteAsync(params object[] parms);
|
|
|
|
/// <summary>
|
|
/// Check to see if the underlying resource are still available to execute the callback
|
|
/// </summary>
|
|
bool CanExecute { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether the callback has been disposed of.
|
|
/// </summary>
|
|
bool IsDisposed { get; }
|
|
}
|
|
}
|