/* * Copyright (c) 2018 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/. */ namespace SafeExamBrowser.Contracts.UserInterface { public delegate void ActionRequestedEventHandler(); /// /// Defines the functionality of a browser window, i.e. a window with an embedded browser instance (see ). /// public interface IBrowserWindow : IWindow { /// /// Event fired when the user changed the URL. /// event AddressChangedEventHandler AddressChanged; /// /// Event fired when the user would like to navigate backwards. /// event ActionRequestedEventHandler BackwardNavigationRequested; /// /// Event fired when the user would like to navigate forwards. /// event ActionRequestedEventHandler ForwardNavigationRequested; /// /// Event fired when the user would like to reload the current page. /// event ActionRequestedEventHandler ReloadRequested; /// /// Determines whether this window is the main browser window. /// bool IsMainWindow { get; set; } /// /// Updates the address bar of the browser window to the given value; /// void UpdateAddress(string adress); /// /// Updates the loading state according to the given value. /// void UpdateLoadingState(bool isLoading); /// /// Sets the title of the browser window to the given value; /// void UpdateTitle(string title); } }