#include "chrome/browser/preloading/preview/preview_zoom_controller.h"
#include "base/metrics/histogram_functions.h"
#include "components/zoom/page_zoom.h"
#include "components/zoom/zoom_controller.h"
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/navigation_handle.h"
#include "net/base/url_util.h"
#include "third_party/blink/public/common/page/page_zoom.h"
namespace {
PreviewZoomController::ZoomUsage TransiteZoomUsage(
double default_zoom_level,
PreviewZoomController::ZoomUsage current_zoom_usage,
double next_zoom_level) { … }
}
PreviewZoomController::PreviewZoomController(content::WebContents* web_contents)
: … { … }
PreviewZoomController::~PreviewZoomController() { … }
void PreviewZoomController::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
void PreviewZoomController::InitializeZoom() { … }
void PreviewZoomController::ResetZoomForActivation() { … }
double GetNextZoomLevel(double default_zoom_level,
double current_zoom_level,
content::PageZoom zoom) { … }
void PreviewZoomController::Zoom(content::PageZoom zoom) { … }
void PreviewZoomController::MaybeReportMetrics() { … }