using System;
using Robust.Client.WebView.Cef;
namespace Robust.Client.WebView
{
public interface IWebViewControl
{
///
/// Current URL of the browser. Set to load a new page.
///
string Url { get; set; }
///
/// Whether the browser is currently loading a page.
///
bool IsLoading { get; }
///
/// Stops loading the current page.
///
void StopLoad();
///
/// Reload the current page.
///
void Reload();
///
/// Navigate back.
///
/// Whether the browser could navigate back.
bool GoBack();
///
/// Navigate forward.
///
/// Whether the browser could navigate forward.
bool GoForward();
///
/// Execute arbitrary JavaScript on the current page.
///
/// JavaScript code.
void ExecuteJavaScript(string code);
void AddResourceRequestHandler(Action handler);
void RemoveResourceRequestHandler(Action handler);
}
}