| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ |
| 7 | 7 |
| 8 struct WebPoint { | 8 struct WebPoint { |
| 9 WebPoint(); | 9 WebPoint(); |
| 10 WebPoint(int x, int y); | 10 WebPoint(int x, int y); |
| 11 ~WebPoint(); | 11 ~WebPoint(); |
| 12 | 12 |
| 13 void offset(int x_, int y_); | 13 void Offset(int x_, int y_); |
| 14 | 14 |
| 15 int x; | 15 int x; |
| 16 int y; | 16 int y; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 struct WebSize { | 19 struct WebSize { |
| 20 WebSize(); | 20 WebSize(); |
| 21 WebSize(int width, int height); | 21 WebSize(int width, int height); |
| 22 ~WebSize(); | 22 ~WebSize(); |
| 23 | 23 |
| 24 int width; | 24 int width; |
| 25 int height; | 25 int height; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 struct WebRect { | 28 struct WebRect { |
| 29 WebRect(); | 29 WebRect(); |
| 30 WebRect(int x, int y, int width, int height); | 30 WebRect(int x, int y, int width, int height); |
| 31 WebRect(const WebPoint& origin, const WebSize& size); | 31 WebRect(const WebPoint& origin, const WebSize& size); |
| 32 ~WebRect(); | 32 ~WebRect(); |
| 33 | 33 |
| 34 int x(); | 34 int X() const; |
| 35 int y(); | 35 int Y() const; |
| 36 int width(); | 36 int Width() const; |
| 37 int height(); | 37 int Height() const; |
| 38 | 38 |
| 39 WebPoint origin; | 39 WebPoint origin; |
| 40 WebSize size; | 40 WebSize size; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ | 43 #endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ |
| OLD | NEW |