| 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 NGLayoutCoordinator_h | |
| 6 #define NGLayoutCoordinator_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "core/layout/ng/ng_layout_algorithm.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 #include "wtf/Vector.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class NGLayoutInputNode; | |
| 16 class NGConstraintSpace; | |
| 17 | |
| 18 class CORE_EXPORT NGLayoutCoordinator final | |
| 19 : public GarbageCollectedFinalized<NGLayoutCoordinator> { | |
| 20 public: | |
| 21 NGLayoutCoordinator(NGLayoutInputNode*, NGConstraintSpace*); | |
| 22 | |
| 23 bool Tick(NGPhysicalFragment**); | |
| 24 | |
| 25 DECLARE_TRACE() | |
| 26 | |
| 27 const HeapVector<Member<NGLayoutAlgorithm>>& GetAlgorithmStackForTesting() | |
| 28 const { | |
| 29 return layout_algorithms_; | |
| 30 }; | |
| 31 | |
| 32 private: | |
| 33 HeapVector<Member<NGLayoutAlgorithm>> layout_algorithms_; | |
| 34 Member<NGPhysicalFragment> fragment_; | |
| 35 }; | |
| 36 } | |
| 37 | |
| 38 #endif | |
| OLD | NEW |