2018-06-21 07:56:25 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-06-21 07:56:25 +02:00
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Applications.Contracts;
|
2019-09-06 08:13:27 +02:00
|
|
|
|
using SafeExamBrowser.Browser.Contracts.Events;
|
2018-06-21 07:56:25 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Browser.Contracts
|
2018-06-21 07:56:25 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Controls the lifetime and functionality of the browser application.
|
|
|
|
|
/// </summary>
|
2024-02-13 11:04:36 +01:00
|
|
|
|
public interface IBrowserApplication : IApplication<IBrowserWindow>
|
2018-06-21 07:56:25 +02:00
|
|
|
|
{
|
|
|
|
|
/// <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
|
|
|
|
|
2020-07-29 23:39:05 +02:00
|
|
|
|
/// <summary>
|
2023-11-01 13:52:39 +01:00
|
|
|
|
/// Event fired when the user tries to focus the taskbar.
|
2020-07-29 23:39:05 +02:00
|
|
|
|
/// </summary>
|
2023-11-01 13:52:39 +01:00
|
|
|
|
event LoseFocusRequestedEventHandler LoseFocusRequested;
|
2020-07-29 23:39:05 +02:00
|
|
|
|
|
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>
|
2023-11-01 13:52:39 +01:00
|
|
|
|
/// Event fired when the browser application detects a user identifier of an LMS.
|
2021-11-24 08:42:07 +01:00
|
|
|
|
/// </summary>
|
2023-11-01 13:52:39 +01:00
|
|
|
|
event UserIdentifierDetectedEventHandler UserIdentifierDetected;
|
2021-11-24 08:42:07 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-05-13 16:47:18 +02:00
|
|
|
|
/// 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);
|
2018-06-21 07:56:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|