chromium/content/browser/find_in_page_client.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/find_in_page_client.h"

#include <utility>

#include "content/browser/find_request_manager.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "mojo/public/cpp/bindings/pending_remote.h"

namespace content {

FindInPageClient::FindInPageClient(FindRequestManager* find_request_manager,
                                   RenderFrameHostImpl* rfh)
    :{}

FindInPageClient::~FindInPageClient() {}

void FindInPageClient::SetNumberOfMatches(
    int request_id,
    unsigned int number_of_matches,
    blink::mojom::FindMatchUpdateType update_type) {}

void FindInPageClient::SetActiveMatch(
    int request_id,
    const gfx::Rect& active_match_rect,
    int active_match_ordinal,
    blink::mojom::FindMatchUpdateType update_type) {}

#if BUILDFLAG(IS_ANDROID)
void FindInPageClient::ActivateNearestFindResult(int request_id,
                                                 const gfx::PointF& point) {
  frame_->GetFindInPage()->ActivateNearestFindResult(request_id, point);
}
#endif

void FindInPageClient::HandleUpdateType(
    int request_id,
    blink::mojom::FindMatchUpdateType update_type) {}

}  // namespace content