-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathbasic_types.h
43 lines (33 loc) · 850 Bytes
/
basic_types.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_
#define CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_
struct WebPoint {
WebPoint();
WebPoint(double x, double y);
~WebPoint();
void Offset(double x_, double y_);
double x;
double y;
};
struct WebSize {
WebSize();
WebSize(double width, double height);
~WebSize();
double width;
double height;
};
struct WebRect {
WebRect();
WebRect(double x, double y, double width, double height);
WebRect(const WebPoint& origin, const WebSize& size);
~WebRect();
double X() const;
double Y() const;
double Width() const;
double Height() const;
WebPoint origin;
WebSize size;
};
#endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_