mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Move Find and StopFinding methods from IWpfWebBrowser to IWebBrowser and implement in WinForms WebView
This commit is contained in:
@@ -175,7 +175,15 @@ namespace CefSharp.WinForms
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext)
|
||||
{
|
||||
managedCefBrowserAdapter.Find(identifier, searchText, forward, matchCase, findNext);
|
||||
}
|
||||
|
||||
public void StopFinding(bool clearSelection)
|
||||
{
|
||||
managedCefBrowserAdapter.StopFinding(clearSelection);
|
||||
}
|
||||
|
||||
public void ShowDevTools()
|
||||
{
|
||||
|
||||
@@ -98,23 +98,6 @@ namespace CefSharp.Wpf
|
||||
/// performed using browser cache</param>
|
||||
void Reload(bool ignoreCache);
|
||||
|
||||
/// <summary>
|
||||
/// Search for text within the current page
|
||||
/// </summary>
|
||||
/// <param name="identifier">Can be used in can conjunction with searchText to have multiple
|
||||
/// searches running simultaniously.</param>
|
||||
/// <param name="searchText">search text</param>
|
||||
/// <param name="forward">indicates whether to search forward or backward within the page.</param>
|
||||
/// <param name="matchCase">indicates whether the search should be case-sensitive. </param>
|
||||
/// <param name="findNext">indicates whether this is the first request or a follow-up.</param>
|
||||
void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext);
|
||||
|
||||
/// <summary>
|
||||
/// Cancel all searches that are currently going on.
|
||||
/// </summary>
|
||||
/// <param name="clearSelection">clear the current search selection</param>
|
||||
void StopFinding(bool clearSelection);
|
||||
|
||||
/// <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)
|
||||
|
||||
@@ -66,5 +66,22 @@ namespace CefSharp
|
||||
string Address { get; set; }
|
||||
string Title { get; set; }
|
||||
string TooltipText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Search for text within the current page
|
||||
/// </summary>
|
||||
/// <param name="identifier">Can be used in can conjunction with searchText to have multiple
|
||||
/// searches running simultaniously.</param>
|
||||
/// <param name="searchText">search text</param>
|
||||
/// <param name="forward">indicates whether to search forward or backward within the page.</param>
|
||||
/// <param name="matchCase">indicates whether the search should be case-sensitive. </param>
|
||||
/// <param name="findNext">indicates whether this is the first request or a follow-up.</param>
|
||||
void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext);
|
||||
|
||||
/// <summary>
|
||||
/// Cancel all searches that are currently going on.
|
||||
/// </summary>
|
||||
/// <param name="clearSelection">clear the current search selection</param>
|
||||
void StopFinding(bool clearSelection);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user