Index: webkit/compositor_bindings/webcore_convert.h |
diff --git a/webkit/compositor_bindings/webcore_convert.h b/webkit/compositor_bindings/webcore_convert.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce11a2c9e0dfbc30a31c327d48353b0140548d8a |
--- /dev/null |
+++ b/webkit/compositor_bindings/webcore_convert.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2012 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 WEBKIT_COMPOSITOR_BINDINGS_WEBCORE_CONVERT_H_ |
+#define WEBKIT_COMPOSITOR_BINDINGS_WEBCORE_CONVERT_H_ |
+ |
+#include "FloatPoint.h" |
+#include "FloatRect.h" |
+#include "IntPoint.h" |
+#include "IntRect.h" |
+#include "IntSize.h" |
+#include <public/WebFloatRect.h> |
+#include <public/WebFloatPoint.h> |
+#include <public/WebRect.h> |
+#include <public/WebPoint.h> |
+#include <public/WebSize.h> |
+ |
+namespace WebKit { |
+ |
+WebCore::FloatRect convert(const WebFloatRect& rect); |
+WebCore::FloatPoint convert(const WebFloatPoint& point); |
+WebCore::IntRect convert(const WebRect& rect); |
+WebCore::IntPoint convert(const WebPoint& point); |
+WebCore::IntSize convert(const WebSize& size); |
+WebRect convert(const WebCore::IntRect& rect); |
+WebSize convert(const WebCore::IntSize& size); |
+ |
+} |
+ |
+#endif // WEBKIT_COMPOSITOR_BINDINGS_WEBCORE_CONVERT_H_ |