OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
27 * OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef LengthPoint_h | 30 #ifndef LengthPoint_h |
31 #define LengthPoint_h | 31 #define LengthPoint_h |
32 | 32 |
33 #include "platform/Length.h" | 33 #include "platform/Length.h" |
34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 struct LengthPoint { | 38 struct LengthPoint { |
39 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 39 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
40 | 40 |
41 public: | 41 public: |
42 LengthPoint() {} | 42 LengthPoint() {} |
43 | 43 |
44 LengthPoint(const Length& x, const Length& y) : x_(x), y_(y) {} | 44 LengthPoint(const Length& x, const Length& y) : x_(x), y_(y) {} |
(...skipping 12 matching lines...) Expand all Loading... |
57 const Length& Y() const { return y_; } | 57 const Length& Y() const { return y_; } |
58 | 58 |
59 private: | 59 private: |
60 Length x_; | 60 Length x_; |
61 Length y_; | 61 Length y_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // LengthPoint_h | 66 #endif // LengthPoint_h |
OLD | NEW |