chromium/chrome/browser/lens/region_search/lens_region_search_controller.cc

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

#include "chrome/browser/lens/region_search/lens_region_search_controller.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/image_editor/screenshot_flow.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/browser/ui/views/lens/lens_side_panel_helper.h"
#include "components/lens/lens_entrypoints.h"
#include "components/lens/lens_features.h"
#include "components/lens/lens_metadata.mojom.h"
#include "components/lens/lens_metrics.h"
#include "components/lens/lens_rendering_environment.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "ui/views/bubble/bubble_dialog_delegate_view.h"
#include "ui/views/widget/widget.h"

namespace lens {

LensRegionSearchControllerData::LensRegionSearchControllerData() = default;
LensRegionSearchControllerData::~LensRegionSearchControllerData() = default;

RegionSearchCapturedData::RegionSearchCapturedData() = default;
RegionSearchCapturedData::~RegionSearchCapturedData() = default;

LensRegionSearchController::LensRegionSearchController() {}

LensRegionSearchController::~LensRegionSearchController() {}

void LensRegionSearchController::Start(
    content::WebContents* web_contents,
    bool use_fullscreen_capture,
    bool force_open_in_new_tab,
    bool is_google_default_search_provider,
    lens::AmbientSearchEntryPoint entry_point) {}

void LensRegionSearchController::RecordCaptureResult(
    lens::LensRegionSearchCaptureResult result) {}

int LensRegionSearchController::CalculateViewportProportionFromAreas(
    int screen_height,
    int screen_width,
    int image_width,
    int image_height) {}

lens::LensRegionSearchAspectRatio
LensRegionSearchController::GetAspectRatioFromSize(int image_height,
                                                   int image_width) {}

void LensRegionSearchController::RecordRegionSizeRelatedMetrics(
    gfx::Rect screen_bounds,
    gfx::Size image_size) {}

void LensRegionSearchController::OnCaptureCompleted(
    const image_editor::ScreenshotCaptureResult& result) {}

void LensRegionSearchController::WebContentsDestroyed() {}

void LensRegionSearchController::OnVisibilityChanged(
    content::Visibility visibility) {}

void LensRegionSearchController::Close() {}

void LensRegionSearchController::Escape() {}

void LensRegionSearchController::CloseWithReason(
    views::Widget::ClosedReason reason) {}

bool LensRegionSearchController::IsOverlayUIVisibleForTesting() {}

void LensRegionSearchController::SetEntryPointForTesting(
    lens::AmbientSearchEntryPoint entry_point) {}

void LensRegionSearchController::SetWebContentsForTesting(
    content::WebContents* web_contents) {}

}  // namespace lens