Files
cefsharp/CefSharp/NavStateChangedEventArgs.cs
T
amaitland c7fe363126 Renamed CanReload param on SetNavState to isLoading as that's the value passed through from Cef
Add IsLoading property to NavStateChangedEventArgs (inverse of CanReload)
Whilst `CanReload` is the inverse of `IsLoading` I think from a support point of view it's easier to have both as users are looking for some sort of loading flag
2014-12-22 16:44:05 +10:00

28 lines
872 B
C#

// Copyright © 2010-2014 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
{
/// <summary>
/// Event arguments to the NavStateChanged event handler set up in IWebBrowser.
/// </summary>
public class NavStateChangedEventArgs : EventArgs
{
public bool CanGoForward { get; private set; }
public bool CanGoBack { get; private set; }
public bool CanReload { get; private set; }
public bool IsLoading { get; private set; }
public NavStateChangedEventArgs(bool canGoBack, bool canGoForward, bool isLoading)
{
CanGoBack = canGoBack;
CanGoForward = canGoForward;
IsLoading = isLoading;
CanReload = !isLoading;
}
}
}