• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
WebPoint()7 WebPoint::WebPoint() : x(0), y(0) {}
8 
WebPoint(int x,int y)9 WebPoint::WebPoint(int x, int y) : x(x), y(y) {}
10 
~WebPoint()11 WebPoint::~WebPoint() {}
12 
Offset(int x_,int y_)13 void WebPoint::Offset(int x_, int y_) {
14   x += x_;
15   y += y_;
16 }
17 
WebSize()18 WebSize::WebSize() : width(0), height(0) {}
19 
WebSize(int width,int height)20 WebSize::WebSize(int width, int height) : width(width), height(height) {}
21 
~WebSize()22 WebSize::~WebSize() {}
23 
WebRect()24 WebRect::WebRect() : origin(0, 0), size(0, 0) {}
25 
WebRect(int x,int y,int width,int height)26 WebRect::WebRect(int x, int y, int width, int height)
27     : origin(x, y), size(width, height) {}
28 
WebRect(const WebPoint & origin,const WebSize & size)29 WebRect::WebRect(const WebPoint& origin, const WebSize& size)
30     : origin(origin), size(size) {}
31 
~WebRect()32 WebRect::~WebRect() {}
33 
X() const34 int WebRect::X() const { return origin.x; }
35 
Y() const36 int WebRect::Y() const { return origin.y; }
37 
Width() const38 int WebRect::Width() const { return size.width; }
39 
Height() const40 int WebRect::Height() const { return size.height; }
41