summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings/webcore_convert.h
blob: c81c5336dfb402125a11010e69f3e7d00aeebd7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 "IntPoint.h"
#include "IntSize.h"
#include <public/WebFloatPoint.h>
#include <public/WebRect.h>
#include <public/WebPoint.h>
#include <public/WebSize.h>

namespace WebKit {

WebCore::FloatPoint convert(const WebFloatPoint& point);
WebCore::IntPoint convert(const WebPoint& point);
WebCore::IntSize convert(const WebSize& size);
WebSize convert(const WebCore::IntSize& size);
WebFloatPoint convert(const WebCore::FloatPoint& point);

}

#endif  // WEBKIT_COMPOSITOR_BINDINGS_WEBCORE_CONVERT_H_