API cleanup - move non WPF specific commands from IWpfWebBrowser to IWebBrowser

This commit is contained in:
amaitland
2014-05-21 16:46:58 +10:00
parent 5b5dcca256
commit ec4e0650c6
3 changed files with 39 additions and 33 deletions
+6
View File
@@ -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();
-33
View File
@@ -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; }
}
}
+33
View File
@@ -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; }
}
}