chromium/extensions/browser/guest_view/web_view/web_view_find_helper.cc

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

#include "extensions/browser/guest_view/web_view/web_view_find_helper.h"

#include <memory>
#include <utility>

#include "base/memory/scoped_refptr.h"
#include "base/not_fatal_until.h"
#include "components/guest_view/browser/guest_view_event.h"
#include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h"
#include "extensions/browser/guest_view/web_view/web_view_constants.h"

GuestViewEvent;

namespace {

// Parameters to callback functions.
const char kFindNumberOfMatches[] =;
const char kFindActiveMatchOrdinal[] =;
const char kFindSelectionRect[] =;
const char kFindRectLeft[] =;
const char kFindRectTop[] =;
const char kFindRectWidth[] =;
const char kFindRectHeight[] =;
const char kFindCanceled[] =;

}  // anonymous namespace

namespace extensions {

WebViewFindHelper::WebViewFindHelper(WebViewGuest* webview_guest)
    :{}

WebViewFindHelper::~WebViewFindHelper() {}

void WebViewFindHelper::CancelAllFindSessions() {}

void WebViewFindHelper::DispatchFindUpdateEvent(bool canceled,
                                                bool final_update) {}

void WebViewFindHelper::EndFindSession(int session_request_id, bool canceled) {}

void WebViewFindHelper::Find(
    content::WebContents* guest_web_contents,
    const std::u16string& search_text,
    blink::mojom::FindOptionsPtr options,
    scoped_refptr<WebViewInternalFindFunction> find_function) {}

void WebViewFindHelper::FindReply(int request_id,
                                  int number_of_matches,
                                  const gfx::Rect& selection_rect,
                                  int active_match_ordinal,
                                  bool final_update) {}

WebViewFindHelper::FindResults::FindResults()
    :{}

WebViewFindHelper::FindResults::~FindResults() {}

void WebViewFindHelper::FindResults::AggregateResults(
    int number_of_matches,
    const gfx::Rect& selection_rect,
    int active_match_ordinal,
    bool final_update) {}

void WebViewFindHelper::FindResults::PrepareResults(
    base::Value::Dict& results) {}

WebViewFindHelper::FindUpdateEvent::FindUpdateEvent(
    const std::u16string& search_text)
    :{}

WebViewFindHelper::FindUpdateEvent::~FindUpdateEvent() {}

void WebViewFindHelper::FindUpdateEvent::AggregateResults(
    int number_of_matches,
    const gfx::Rect& selection_rect,
    int active_match_ordinal,
    bool final_update) {}

void WebViewFindHelper::FindUpdateEvent::PrepareResults(
    base::Value::Dict& results) {}

WebViewFindHelper::FindInfo::FindInfo(
    int request_id,
    const std::u16string& search_text,
    blink::mojom::FindOptionsPtr options,
    scoped_refptr<WebViewInternalFindFunction> find_function)
    :{}

void WebViewFindHelper::FindInfo::AggregateResults(
    int number_of_matches,
    const gfx::Rect& selection_rect,
    int active_match_ordinal,
    bool final_update) {}

base::WeakPtr<WebViewFindHelper::FindInfo>
WebViewFindHelper::FindInfo::AsWeakPtr() {}

void WebViewFindHelper::FindInfo::SendResponse(bool canceled) {}

WebViewFindHelper::FindInfo::~FindInfo() = default;

}  // namespace extensions