2017-07-28 14:52:15 +02:00
|
|
|
|
/*
|
2018-01-16 08:24:00 +01:00
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-28 14:52:15 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-02-15 15:42:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
2017-07-28 14:52:15 +02:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Configuration.Settings
|
|
|
|
|
{
|
2018-02-15 15:42:54 +01:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class BrowserSettings
|
2017-07-28 14:52:15 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the user should be allowed to change the URL of a browser window.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool AllowAddressBar { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the user should be allowed to navigate backwards in a browser window.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool AllowBackwardNavigation { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-31 20:22:53 +02:00
|
|
|
|
/// Determines whether the user should be allowed to open the developer console of a browser window.
|
2017-07-28 14:52:15 +02:00
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool AllowDeveloperConsole { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the user should be allowed to navigate forwards in a browser window.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool AllowForwardNavigation { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the user should be allowed to reload webpages.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool AllowReloading { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the main browser window should be rendered in fullscreen mode, i.e. without window frame.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public bool FullScreenMode { get; set; }
|
2017-07-31 20:22:53 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The start URL with which a new browser window should be loaded.
|
|
|
|
|
/// </summary>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
public string StartUrl { get; set; }
|
2017-07-28 14:52:15 +02:00
|
|
|
|
}
|
|
|
|
|
}
|