// Copyright © 2021 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 CefSharp.Structs;
namespace CefSharp.Handler
{
///
/// Implement this interface to handle events related to find results.
/// The methods of this class will be called on the CEF UI thread.
///
public class FindHandler : IFindHandler
{
///
void IFindHandler.OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate)
{
OnFindResult(chromiumWebBrowser, browser, identifier, count, selectionRect, activeMatchOrdinal, finalUpdate);
}
///
/// Called to report find results returned by
///
/// the ChromiumWebBrowser control
/// the browser object
/// is a unique incremental identifier for the currently active search.
/// is the number of matches currently identified
/// is the location of where the match was found (in window coordinates)
/// is the current position in the search results
/// is true if this is the last find notification.
protected virtual void OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate)
{
}
}
}