OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "config.h" | |
6 | |
7 #include "webcore_convert.h" | |
8 | |
9 namespace WebKit { | |
10 | |
11 WebCore::FloatPoint convert(const WebFloatPoint& point) | |
12 { | |
13 return WebCore::FloatPoint(point.x, point.y); | |
14 } | |
15 | |
16 WebCore::IntPoint convert(const WebPoint& point) | |
17 { | |
18 return WebCore::IntPoint(point.x, point.y); | |
19 } | |
20 | |
21 WebCore::IntSize convert(const WebSize& size) | |
22 { | |
23 return WebCore::IntSize(size.width, size.height); | |
24 } | |
25 | |
26 WebSize convert(const WebCore::IntSize& size) | |
27 { | |
28 return WebSize(size.width(), size.height()); | |
29 } | |
30 | |
31 WebFloatPoint convert(const WebCore::FloatPoint& point) | |
32 { | |
33 return WebFloatPoint(point.x(), point.y()); | |
34 } | |
35 | |
36 } | |
37 | |
38 | |
OLD | NEW |