| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 DoubleSize_h | 5 #ifndef DoubleSize_h |
| 6 #define DoubleSize_h | 6 #define DoubleSize_h |
| 7 | 7 |
| 8 #include "platform/geometry/FloatSize.h" | 8 #include "platform/geometry/FloatSize.h" |
| 9 #include "platform/geometry/IntSize.h" | 9 #include "platform/geometry/IntSize.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| 11 #include "wtf/Forward.h" | 11 #include "platform/wtf/Forward.h" |
| 12 #include "wtf/MathExtras.h" | 12 #include "platform/wtf/MathExtras.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class LayoutSize; | 16 class LayoutSize; |
| 17 | 17 |
| 18 class PLATFORM_EXPORT DoubleSize { | 18 class PLATFORM_EXPORT DoubleSize { |
| 19 DISALLOW_NEW(); | 19 DISALLOW_NEW(); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 DoubleSize() : m_width(0), m_height(0) {} | 22 DoubleSize() : m_width(0), m_height(0) {} |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 return FloatSize(p.width(), p.height()); | 100 return FloatSize(p.width(), p.height()); |
| 101 } | 101 } |
| 102 | 102 |
| 103 // Redeclared here to avoid ODR issues. | 103 // Redeclared here to avoid ODR issues. |
| 104 // See platform/testing/GeometryPrinters.h. | 104 // See platform/testing/GeometryPrinters.h. |
| 105 void PrintTo(const DoubleSize&, std::ostream*); | 105 void PrintTo(const DoubleSize&, std::ostream*); |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| 108 | 108 |
| 109 #endif // DoubleSize_h | 109 #endif // DoubleSize_h |
| OLD | NEW |