Move Find and StopFinding methods from IWpfWebBrowser to IWebBrowser and implement in WinForms WebView

This commit is contained in:
amaitland
2014-05-13 12:42:23 +10:00
parent 4ba0a54f9b
commit 95ae4fd09d
3 changed files with 26 additions and 18 deletions
+9 -1
View File
@@ -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()
{
-17
View File
@@ -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)
+17
View File
@@ -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);
}
}