chromium/pdf/pdf_ink_brush.cc

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

#include "pdf/pdf_ink_brush.h"

#include <numbers>
#include <optional>
#include <utility>

#include "base/check_op.h"
#include "base/notreached.h"
#include "pdf/ink/ink_brush.h"
#include "pdf/ink/ink_brush_family.h"
#include "pdf/ink/ink_brush_paint.h"
#include "pdf/ink/ink_brush_tip.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect_conversions.h"

namespace chrome_pdf {

namespace {

std::string CreateBrushUri() {}

float GetCornerRounding(PdfInkBrush::Type type) {}

float GetOpacity(PdfInkBrush::Type type) {}

std::unique_ptr<InkBrush> CreateInkBrush(PdfInkBrush::Type type,
                                         PdfInkBrush::Params params) {}

// Determine the area to invalidate centered around a point where a brush is
// applied.
gfx::Rect GetPointInvalidateArea(float brush_diameter,
                                 const gfx::PointF& center) {}

}  // namespace

// static
std::optional<PdfInkBrush::Type> PdfInkBrush::StringToType(
    const std::string& brush_type) {}

// static
void PdfInkBrush::CheckToolSizeIsInRange(float size) {}

PdfInkBrush::PdfInkBrush(Type brush_type, Params brush_params)
    :{}

PdfInkBrush::~PdfInkBrush() = default;

const InkBrush& PdfInkBrush::GetInkBrush() const {}

gfx::Rect PdfInkBrush::GetInvalidateArea(const gfx::PointF& center1,
                                         const gfx::PointF& center2) const {}

}  // namespace chrome_pdf