OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 NGColumnLayoutAlgorithm_h | 5 #ifndef NGColumnLayoutAlgorithm_h |
6 #define NGColumnLayoutAlgorithm_h | 6 #define NGColumnLayoutAlgorithm_h |
7 | 7 |
8 #include "core/layout/ng/ng_block_layout_algorithm.h" | 8 #include "core/layout/ng/ng_block_layout_algorithm.h" |
9 #include "core/layout/ng/ng_break_token.h" | 9 #include "core/layout/ng/ng_break_token.h" |
10 #include "core/layout/ng/ng_constraint_space.h" | 10 #include "core/layout/ng/ng_constraint_space.h" |
11 #include "core/layout/ng/ng_layout_result.h" | 11 #include "core/layout/ng/ng_layout_result.h" |
12 #include "platform/wtf/RefPtr.h" | 12 #include "platform/wtf/RefPtr.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class NGBlockNode; | 16 class NGBlockNode; |
17 | 17 |
18 class CORE_EXPORT NGColumnLayoutAlgorithm : public NGBlockLayoutAlgorithm { | 18 class CORE_EXPORT NGColumnLayoutAlgorithm : public NGBlockLayoutAlgorithm { |
19 public: | 19 public: |
20 NGColumnLayoutAlgorithm(NGBlockNode* node, | 20 NGColumnLayoutAlgorithm(NGBlockNode node, |
21 NGConstraintSpace* space, | 21 NGConstraintSpace* space, |
22 NGBreakToken* break_token = nullptr); | 22 NGBreakToken* break_token = nullptr); |
23 | 23 |
24 RefPtr<NGLayoutResult> Layout() override; | 24 RefPtr<NGLayoutResult> Layout() override; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace Blink | 27 } // namespace Blink |
28 | 28 |
29 #endif // NGColumnLayoutAlgorithm_h | 29 #endif // NGColumnLayoutAlgorithm_h |
OLD | NEW |