chromium/ui/gfx/geometry/rect_conversions.cc

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

#include "ui/gfx/geometry/rect_conversions.h"

#include <algorithm>
#include <cmath>

#include "base/check.h"
#include "base/numerics/safe_conversions.h"

namespace gfx {

namespace {

int FloorIgnoringError(float f, float error) {}

int CeilIgnoringError(float f, float error) {}

}  // anonymous namespace

Rect ToEnclosingRect(const RectF& r) {}

Rect ToEnclosingRectIgnoringError(const RectF& r, float error) {}

Rect ToEnclosedRect(const RectF& rect) {}

Rect ToEnclosedRectIgnoringError(const RectF& r, float error) {}

Rect ToNearestRect(const RectF& rect) {}

bool IsNearestRectWithinDistance(const gfx::RectF& rect, float distance) {}

gfx::Rect ToRoundedRect(const gfx::RectF& rect) {}

Rect ToFlooredRectDeprecated(const RectF& rect) {}

}  // namespace gfx