// Copyright © 2013 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows; using System.Windows.Input; using System.Windows.Threading; using CefSharp.Enums; using CefSharp.Internals; namespace CefSharp.Wpf { /// /// WPF specific implementation, has reference to some of the commands /// and properties the exposes. /// /// public interface IWpfWebBrowser : IWebBrowser, IInputElement { /// /// Navigates to the previous page in the browser history. Will automatically be enabled/disabled depending on the /// browser state. /// /// The back command. ICommand BackCommand { get; } /// /// Navigates to the next page in the browser history. Will automatically be enabled/disabled depending on the /// browser state. /// /// The forward command. ICommand ForwardCommand { get; } /// /// Reloads the content of the current page. Will automatically be enabled/disabled depending on the browser state. /// /// The reload command. ICommand ReloadCommand { get; } /// /// Prints the current browser contents. /// /// The print command. ICommand PrintCommand { get; } /// /// Increases the zoom level. /// /// The zoom in command. ICommand ZoomInCommand { get; } /// /// Decreases the zoom level. /// /// The zoom out command. ICommand ZoomOutCommand { get; } /// /// Resets the zoom level to the default. (100%) /// /// The zoom reset command. ICommand ZoomResetCommand { get; } /// /// Opens up a new program window (using the default text editor) where the source code of the currently displayed web /// page is shown. /// /// The view source command. ICommand ViewSourceCommand { get; } /// /// Command which cleans up the Resources used by the ChromiumWebBrowser /// /// The cleanup command. ICommand CleanupCommand { get; } /// /// Stops loading the current page. /// /// The stop command. ICommand StopCommand { get; } /// /// Cut selected text to the clipboard. /// /// The cut command. ICommand CutCommand { get; } /// /// Copy selected text to the clipboard. /// /// The copy command. ICommand CopyCommand { get; } /// /// Paste text from the clipboard. /// /// The paste command. ICommand PasteCommand { get; } /// /// Select all text. /// /// The select all command. ICommand SelectAllCommand { get; } /// /// Undo last action. /// /// The undo command. ICommand UndoCommand { get; } /// /// Redo last action. /// /// The redo command. ICommand RedoCommand { get; } /// /// Toggles the audio mute for the current browser. /// ICommand ToggleAudioMuteCommand { get; } /// /// Gets the associated with this instance. /// /// The dispatcher. Dispatcher Dispatcher { get; } /// /// The zoom level at which the browser control is currently displaying. /// Can be set to 0 to clear the zoom level (resets to default zoom level). /// /// The zoom level. double ZoomLevel { get; set; } /// /// The increment at which the property will be incremented/decremented. /// /// The zoom level increment. double ZoomLevelIncrement { get; set; } /// /// The title of the web page being currently displayed. /// /// The title. /// This property is implemented as a Dependency Property and fully supports data binding. string Title { get; } /// /// Raised every time is called. You can access the underlying buffer, though it's /// preferable to either override or implement your own as there is no outwardly /// accessible locking (locking is done within the default implementations). /// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread /// event EventHandler Paint; /// /// Raised every time is called. /// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread /// event EventHandler VirtualKeyboardRequested; } }