/* * Copyright (c) 2023 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.Settings.Browser { /// /// Defines all settings for a window of the browser engine. /// [Serializable] public class WindowSettings { /// /// Optionally defines the height of the browser window in physical pixels. /// public int? AbsoluteHeight { get; set; } /// /// Optionally defines the width of the browser window in physical pixels. /// public int? AbsoluteWidth { get; set; } /// /// Determines whether the user will be allowed to change the URL in the address bar. /// public bool AllowAddressBar { get; set; } /// /// Determines whether the user will be allowed to navigate backwards. /// public bool AllowBackwardNavigation { get; set; } /// /// Determines whether the user will be allowed to open the developer console. /// public bool AllowDeveloperConsole { get; set; } /// /// Determines whether the user will be allowed to navigate forwards. /// public bool AllowForwardNavigation { get; set; } /// /// Determines whether the user will be allowed to reload webpages. /// public bool AllowReloading { get; set; } /// /// Determines whether the browser window will be rendered in fullscreen mode, i.e. without window frame. /// public bool FullScreenMode { get; set; } /// /// Determines the initial position of the browser window (if it is not maximized). /// public WindowPosition Position { get; set; } /// /// Optionally defines the height of the browser window as percentage of the working area height. /// public int? RelativeHeight { get; set; } /// /// Optionally defines the width of the browser window as percentage of the working area width. /// public int? RelativeWidth { get; set; } /// /// Determines whether the home button is visible. /// public bool ShowHomeButton { get; set; } /// /// Determines whether the reload button is visible. /// public bool ShowReloadButton { get; set; } /// /// Determines whether the user will need to confirm every reload attempt. /// public bool ShowReloadWarning { get; set; } /// /// Determines whether the window toolbar is visible. /// public bool ShowToolbar { get; set; } /// /// Determines how URLs are handled in the user interface and log. /// public UrlPolicy UrlPolicy { get; set; } } }