Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: webkit/compositor_bindings/webcore_convert.cc

Issue 10915165: Don't depend on WEBKIT_IMPLEMENTATION guarded geometry conversion c'tors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add new files to gyp Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/webcore_convert.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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::FloatRect convert(const WebFloatRect& rect)
12 {
13 return WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height);
14 }
15
16 WebCore::FloatPoint convert(const WebFloatPoint& point)
17 {
18 return WebCore::FloatPoint(point.x, point.y);
19 }
20
21 WebCore::IntRect convert(const WebRect& rect)
22 {
23 return WebCore::IntRect(rect.x, rect.y, rect.width, rect.height);
24 }
25
26 WebCore::IntPoint convert(const WebPoint& point)
27 {
28 return WebCore::IntPoint(point.x, point.y);
29 }
30
31 WebCore::IntSize convert(const WebSize& size)
32 {
33 return WebCore::IntSize(size.width, size.height);
34 }
35
36 WebRect convert(const WebCore::IntRect& rect)
37 {
38 return WebRect(rect.x(), rect.y(), rect.width(), rect.height());
39 }
40
41 WebSize convert(const WebCore::IntSize& size)
42 {
43 return WebSize(size.width(), size.height());
44 }
45
46 }
47
48
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/webcore_convert.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698