1// Copyright (c) 2013 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 "chrome/test/chromedriver/basic_types.h"
6
7WebPoint::WebPoint() : x(0), y(0) {}
8
9WebPoint::WebPoint(int x, int y) : x(x), y(y) {}
10
11WebPoint::~WebPoint() {}
12
13void WebPoint::Offset(int x_, int y_) {
14  x += x_;
15  y += y_;
16}
17
18WebSize::WebSize() : width(0), height(0) {}
19
20WebSize::WebSize(int width, int height) : width(width), height(height) {}
21
22WebSize::~WebSize() {}
23
24WebRect::WebRect() : origin(0, 0), size(0, 0) {}
25
26WebRect::WebRect(int x, int y, int width, int height)
27    : origin(x, y), size(width, height) {}
28
29WebRect::WebRect(const WebPoint& origin, const WebSize& size)
30    : origin(origin), size(size) {}
31
32WebRect::~WebRect() {}
33
34int WebRect::X() const { return origin.x; }
35
36int WebRect::Y() const { return origin.y; }
37
38int WebRect::Width() const { return size.width; }
39
40int WebRect::Height() const { return size.height; }
41