Chromium Code Reviews| 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 #include <string> | |
| 9 | |
| 8 struct WebPoint { | 10 struct WebPoint { |
| 9 WebPoint(); | 11 WebPoint(); |
| 10 WebPoint(int x, int y); | 12 WebPoint(int x, int y); |
| 11 ~WebPoint(); | 13 ~WebPoint(); |
| 12 | 14 |
| 13 void offset(int x_, int y_); | 15 void Offset(int x_, int y_); |
| 14 | 16 |
| 15 int x; | 17 int x; |
| 16 int y; | 18 int y; |
| 17 }; | 19 }; |
| 18 | 20 |
| 19 struct WebSize { | 21 struct WebSize { |
| 20 WebSize(); | 22 WebSize(); |
| 21 WebSize(int width, int height); | 23 WebSize(int width, int height); |
| 22 ~WebSize(); | 24 ~WebSize(); |
| 23 | 25 |
| 24 int width; | 26 int width; |
| 25 int height; | 27 int height; |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 struct WebRect { | 30 struct WebRect { |
| 29 WebRect(); | 31 WebRect(); |
| 30 WebRect(int x, int y, int width, int height); | 32 WebRect(int x, int y, int width, int height); |
| 31 WebRect(const WebPoint& origin, const WebSize& size); | 33 WebRect(const WebPoint& origin, const WebSize& size); |
| 32 ~WebRect(); | 34 ~WebRect(); |
| 33 | 35 |
| 34 int x(); | 36 int width() const; |
| 35 int y(); | 37 int height() const; |
| 36 int width(); | |
| 37 int height(); | |
| 38 | 38 |
| 39 WebPoint origin; | 39 WebPoint origin; |
| 40 WebSize size; | 40 WebSize size; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 struct FrameInfo { | |
|
kkania
2013/03/12 18:34:25
i don't think i'd call this a basic type. how abou
kkania
2013/03/12 18:34:25
can you think of a better name?
chrisgao (Use stgao instead)
2013/03/12 23:17:41
Done.
chrisgao (Use stgao instead)
2013/03/12 23:17:41
FrameElement.
| |
| 44 FrameInfo(const std::string& parent_id, const std::string& xpath); | |
| 45 | |
| 46 std::string parent_id; | |
| 47 std::string xpath; | |
|
kkania
2013/03/12 18:34:25
at first read, it is a bit unclear what this refer
chrisgao (Use stgao instead)
2013/03/12 23:17:41
chromedriver_frame_id, holding the random value of
| |
| 48 }; | |
| 49 | |
| 43 #endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ | 50 #endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_ |
| OLD | NEW |