Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NGUnits_h | |
| 6 #define NGUnits_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "core/layout/ng/ng_writing_mode.h" | |
| 10 #include "platform/LayoutUnit.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 struct CORE_EXPORT MinAndMaxContentSizes { | |
|
mstensho (USE GERRIT)
2017/02/28 12:19:47
Should this be named NGMinMaxContentSize, to match
eae
2017/02/28 12:26:34
Yes! :) I'll rename one of them.
| |
| 15 LayoutUnit min_content; | |
| 16 LayoutUnit max_content; | |
| 17 LayoutUnit ShrinkToFit(LayoutUnit available_size) const; | |
| 18 bool operator==(const MinAndMaxContentSizes& other) const; | |
| 19 }; | |
| 20 | |
| 21 inline std::ostream& operator<<(std::ostream& stream, | |
| 22 const MinAndMaxContentSizes& value) { | |
| 23 return stream << "(" << value.min_content << ", " << value.max_content << ")"; | |
| 24 } | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // NGUnits_h | |
| OLD | NEW |