seb-win-refactoring/SafeExamBrowser.Browser.Contracts/IBrowserApplication.cs

46 lines
1.6 KiB
C#
Raw Permalink Normal View History

/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* 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/.
*/
using SafeExamBrowser.Applications.Contracts;
using SafeExamBrowser.Browser.Contracts.Events;
namespace SafeExamBrowser.Browser.Contracts
{
/// <summary>
/// Controls the lifetime and functionality of the browser application.
/// </summary>
public interface IBrowserApplication : IApplication<IBrowserWindow>
{
/// <summary>
/// Event fired when the browser application detects a download request for an application configuration file.
/// </summary>
event DownloadRequestedEventHandler ConfigurationDownloadRequested;
2019-12-19 15:02:40 +01:00
/// <summary>
/// Event fired when the user tries to focus the taskbar.
/// </summary>
event LoseFocusRequestedEventHandler LoseFocusRequested;
2019-12-19 15:02:40 +01:00
/// <summary>
/// Event fired when the browser application detects a request to terminate SEB.
/// </summary>
event TerminationRequestedEventHandler TerminationRequested;
2021-11-24 08:42:07 +01:00
/// <summary>
/// Event fired when the browser application detects a user identifier of an LMS.
2021-11-24 08:42:07 +01:00
/// </summary>
event UserIdentifierDetectedEventHandler UserIdentifierDetected;
2021-11-24 08:42:07 +01:00
/// <summary>
/// Transfers the focus to the browser application. If the parameter is <c>true</c>, the first focusable element in the browser window
/// receives focus (passing forward of focus). Otherwise, the last element receives focus.
2021-11-24 08:42:07 +01:00
/// </summary>
void Focus(bool forward);
}
}