Enable PPAPI tests for non-SFI mode.
[chromium-blink-merge.git] / chrome / test / chromedriver / basic_types.cc
blob759eda3769a5b465731af7407492fc1e8de93935
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.
5 #include "chrome/test/chromedriver/basic_types.h"
7 WebPoint::WebPoint() : x(0), y(0) {}
9 WebPoint::WebPoint(int x, int y) : x(x), y(y) {}
11 WebPoint::~WebPoint() {}
13 void WebPoint::Offset(int x_, int y_) {
14 x += x_;
15 y += y_;
18 WebSize::WebSize() : width(0), height(0) {}
20 WebSize::WebSize(int width, int height) : width(width), height(height) {}
22 WebSize::~WebSize() {}
24 WebRect::WebRect() : origin(0, 0), size(0, 0) {}
26 WebRect::WebRect(int x, int y, int width, int height)
27 : origin(x, y), size(width, height) {}
29 WebRect::WebRect(const WebPoint& origin, const WebSize& size)
30 : origin(origin), size(size) {}
32 WebRect::~WebRect() {}
34 int WebRect::X() const { return origin.x; }
36 int WebRect::Y() const { return origin.y; }
38 int WebRect::Width() const { return size.width; }
40 int WebRect::Height() const { return size.height; }