mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
API cleanup - move non WPF specific commands from IWpfWebBrowser to IWebBrowser
This commit is contained in:
@@ -254,6 +254,12 @@ namespace CefSharp.WinForms
|
||||
managedCefBrowserAdapter.Reload(ignoreCache);
|
||||
}
|
||||
|
||||
public double ZoomLevel
|
||||
{
|
||||
get { return managedCefBrowserAdapter.GetZoomLevel(); }
|
||||
set { managedCefBrowserAdapter.SetZoomLevel(value); }
|
||||
}
|
||||
|
||||
public void Undo()
|
||||
{
|
||||
managedCefBrowserAdapter.Undo();
|
||||
|
||||
@@ -60,38 +60,5 @@ namespace CefSharp.Wpf
|
||||
/// Command which stops loading the current page.
|
||||
/// </summary>
|
||||
ICommand StopCommand { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Opens up a new program window (using the default text editor) where the source code of the currently displayed web
|
||||
/// page is shown.
|
||||
/// </summary>
|
||||
void ViewSource();
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to give focus to the WebBrowser control.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if keyboard focus and logical focus were set to this element; <c>false</c> if only logical focus
|
||||
/// was set to this element, or if the call to this method did not force the focus to change.</returns>
|
||||
bool Focus();
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the current WebView.
|
||||
/// </summary>
|
||||
void Reload();
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the current WebView, optionally ignoring the cache
|
||||
/// (which means the whole page including all .css, .js etc. resources will be re-fetched).
|
||||
/// </summary>
|
||||
/// <param name="ignoreCache"><c>true</c> A reload is performed ignoring borwser cache; <c>false</c> A reload is
|
||||
/// performed using browser cache</param>
|
||||
void Reload(bool ignoreCache);
|
||||
|
||||
/// <summary>
|
||||
/// 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).
|
||||
/// </summary>
|
||||
/// <remarks>This property is a Dependency Property and fully supports data binding.</remarks>
|
||||
double ZoomLevel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,5 +144,38 @@ namespace CefSharp
|
||||
/// </summary>
|
||||
/// <returns>The main frame display text as a string.</returns>
|
||||
string GetText();
|
||||
|
||||
/// <summary>
|
||||
/// Opens up a new program window (using the default text editor) where the source code of the currently displayed web
|
||||
/// page is shown.
|
||||
/// </summary>
|
||||
void ViewSource();
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to give focus to the WebBrowser control.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if keyboard focus and logical focus were set to this element; <c>false</c> if only logical focus
|
||||
/// was set to this element, or if the call to this method did not force the focus to change.</returns>
|
||||
bool Focus();
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the current WebView.
|
||||
/// </summary>
|
||||
void Reload();
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the current WebView, optionally ignoring the cache
|
||||
/// (which means the whole page including all .css, .js etc. resources will be re-fetched).
|
||||
/// </summary>
|
||||
/// <param name="ignoreCache"><c>true</c> A reload is performed ignoring borwser cache; <c>false</c> A reload is
|
||||
/// performed using browser cache</param>
|
||||
void Reload(bool ignoreCache);
|
||||
|
||||
/// <summary>
|
||||
/// 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).
|
||||
/// </summary>
|
||||
/// <remarks>This property is a Dependency Property and fully supports data binding.</remarks>
|
||||
double ZoomLevel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user