2017-07-24 17:31:28 +02:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Contracts.UserInterface
|
|
|
|
|
{
|
2017-08-02 08:31:12 +02:00
|
|
|
|
public delegate void AddressChangedEventHandler(string address);
|
|
|
|
|
public delegate void TitleChangedEventHandler(string title);
|
2017-07-31 20:22:53 +02:00
|
|
|
|
|
2017-07-24 17:31:28 +02:00
|
|
|
|
public interface IBrowserControl
|
|
|
|
|
{
|
2017-07-31 20:22:53 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the address of the browser control changes.
|
|
|
|
|
/// </summary>
|
2017-08-02 08:31:12 +02:00
|
|
|
|
event AddressChangedEventHandler AddressChanged;
|
2017-07-31 20:22:53 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the current page (and thus the title) of the browser control changes.
|
|
|
|
|
/// </summary>
|
2017-08-02 08:31:12 +02:00
|
|
|
|
event TitleChangedEventHandler TitleChanged;
|
2017-07-31 20:22:53 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Navigates to the previous page in the browser control history.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void NavigateBackwards();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Navigates to the next page in the browser control history.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void NavigateForwards();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Navigates to the specified web address.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void NavigateTo(string address);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reloads the current web page.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Reload();
|
2017-07-24 17:31:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|