/*
* Copyright (c) 2019 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/.
*/
using System;
namespace SafeExamBrowser.Contracts.Configuration.Settings
{
///
/// Defines all configuration options for the browser of the application.
///
[Serializable]
public class BrowserSettings
{
///
/// Determines whether the user will be allowed to change the URL of a browser window.
///
public bool AllowAddressBar { get; set; }
///
/// Determines whether the user will be allowed to navigate backwards in a browser window.
///
public bool AllowBackwardNavigation { get; set; }
///
/// Determines whether the user will be allowed to download configuration files.
///
public bool AllowConfigurationDownloads { get; set; }
///
/// Determines whether the user will be allowed to open the developer console of a browser window.
///
public bool AllowDeveloperConsole { get; set; }
///
/// Determines whether the user will be allowed to download files (excluding configuration files).
///
public bool AllowDownloads { get; set; }
///
/// Determines whether the user will be allowed to navigate forwards in a browser window.
///
public bool AllowForwardNavigation { get; set; }
///
/// Determines whether the user will be allowed to zoom webpages.
///
public bool AllowPageZoom { get; set; }
///
/// Determines whether popup windows will be opened or not.
///
public bool AllowPopups { get; set; }
///
/// Determines whether the user will be allowed to reload webpages.
///
public bool AllowReloading { get; set; }
///
/// The custom user agent to optionally be used for all requests.
///
public string CustomUserAgent { get; set; }
///
/// Determines whether the main browser window will be rendered in fullscreen mode, i.e. without window frame.
///
public bool FullScreenMode { get; set; }
///
/// Determines whether the user will need to confirm every reload attempt.
///
public bool ShowReloadWarning { get; set; }
///
/// The start URL with which a new browser window will be loaded.
///
public string StartUrl { get; set; }
///
/// Determines whether a custom user agent will be used for all requests, see .
///
public bool UseCustomUserAgent { get; set; }
}
}