chromium/pdf/document_layout.cc

// Copyright 2019 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/document_layout.h"

#include <algorithm>

#include "base/check_op.h"
#include "base/notreached.h"
#include "base/values.h"
#include "pdf/draw_utils/coordinates.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"

namespace chrome_pdf {

namespace {

constexpr char kDirection[] =;
constexpr char kDefaultPageOrientation[] =;
constexpr char kTwoUpViewEnabled[] =;

int GetWidestPageWidth(const std::vector<gfx::Size>& page_sizes) {}

}  // namespace

DocumentLayout::Options::Options() = default;

DocumentLayout::Options::Options(const Options& other) = default;
DocumentLayout::Options& DocumentLayout::Options::operator=(
    const Options& other) = default;

DocumentLayout::Options::~Options() = default;

base::Value::Dict DocumentLayout::Options::ToValue() const {}

void DocumentLayout::Options::FromValue(const base::Value::Dict& value) {}

void DocumentLayout::Options::RotatePagesClockwise() {}

void DocumentLayout::Options::RotatePagesCounterclockwise() {}

DocumentLayout::DocumentLayout() = default;

DocumentLayout::~DocumentLayout() = default;

void DocumentLayout::SetOptions(const Options& options) {}

void DocumentLayout::ComputeLayout(const std::vector<gfx::Size>& page_sizes) {}

void DocumentLayout::ComputeOneUpLayout(
    const std::vector<gfx::Size>& page_sizes) {}

void DocumentLayout::ComputeTwoUpOddLayout(
    const std::vector<gfx::Size>& page_sizes) {}

void DocumentLayout::CopyRectIfModified(const gfx::Rect& source_rect,
                                        gfx::Rect& destination_rect) {}

}  // namespace chrome_pdf