// 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
{
///
/// Event arguments to the FrameLoadEnd event handler set up in IWebBrowser.
///
public class FrameLoadEndEventArgs : EventArgs
{
public FrameLoadEndEventArgs(string url, bool isMainFrame, int httpStatusCode)
{
Url = url;
IsMainFrame = isMainFrame;
HttpStatusCode = httpStatusCode;
}
///
/// The URL that was loaded.
///
public string Url { get; private set; }
///
/// Is this the Main Frame
///
public bool IsMainFrame { get; private set; }
///
/// Http Status Code
///
public int HttpStatusCode { get; set; }
};
///
/// A delegate type used to listen to FrameLoadEnd events.
///
/// The object that raised the event.
/// The event arguments.
public delegate void FrameLoadEndEventHandler(object sender, FrameLoadEndEventArgs url);
}