Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size.h

Issue 2721613003: [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Rebase w/HEAD Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698