summaryrefslogtreecommitdiff
path: root/chromium/pdf/geometry_conversions.h
blob: d922003451164d21cbc42ccbb1f93990d7f2ae35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PDF_GEOMETRY_CONVERSIONS_H_
#define PDF_GEOMETRY_CONVERSIONS_H_

struct PP_Rect;
struct PP_Size;

namespace gfx {
class Rect;
class Size;
}  // namespace gfx

namespace chrome_pdf {

gfx::Rect RectFromPPRect(const PP_Rect& pp_rect);
gfx::Size SizeFromPPSize(const PP_Size& pp_size);

}  // namespace chrome_pdf

#endif  // PDF_GEOMETRY_CONVERSIONS_H_