| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, Google Inc. All rights reserved. | 2 * Copyright (c) 2012, Google Inc. 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef LayoutSize_h | 31 #ifndef LayoutSize_h |
| 32 #define LayoutSize_h | 32 #define LayoutSize_h |
| 33 | 33 |
| 34 #include "platform/LayoutUnit.h" | 34 #include "platform/LayoutUnit.h" |
| 35 #include "platform/geometry/DoubleSize.h" | 35 #include "platform/geometry/DoubleSize.h" |
| 36 #include "platform/geometry/FloatPoint.h" | 36 #include "platform/geometry/FloatPoint.h" |
| 37 #include "platform/geometry/FloatSize.h" | 37 #include "platform/geometry/FloatSize.h" |
| 38 #include "platform/geometry/IntSize.h" | 38 #include "platform/geometry/IntSize.h" |
| 39 #include "wtf/Allocator.h" | 39 #include "platform/wtf/Allocator.h" |
| 40 #include "wtf/Forward.h" | 40 #include "platform/wtf/Forward.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 enum AspectRatioFit { AspectRatioFitShrink, AspectRatioFitGrow }; | 44 enum AspectRatioFit { AspectRatioFitShrink, AspectRatioFitGrow }; |
| 45 | 45 |
| 46 class PLATFORM_EXPORT LayoutSize { | 46 class PLATFORM_EXPORT LayoutSize { |
| 47 DISALLOW_NEW(); | 47 DISALLOW_NEW(); |
| 48 | 48 |
| 49 public: | 49 public: |
| 50 LayoutSize() {} | 50 LayoutSize() {} |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 return LayoutSize(s); | 213 return LayoutSize(s); |
| 214 } | 214 } |
| 215 | 215 |
| 216 // Redeclared here to avoid ODR issues. | 216 // Redeclared here to avoid ODR issues. |
| 217 // See platform/testing/GeometryPrinters.h. | 217 // See platform/testing/GeometryPrinters.h. |
| 218 void PrintTo(const LayoutSize&, std::ostream*); | 218 void PrintTo(const LayoutSize&, std::ostream*); |
| 219 | 219 |
| 220 } // namespace blink | 220 } // namespace blink |
| 221 | 221 |
| 222 #endif // LayoutSize_h | 222 #endif // LayoutSize_h |
| OLD | NEW |