OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 NGLayoutOpportunityIterator_h | 5 #ifndef NGLayoutOpportunityIterator_h |
6 #define NGLayoutOpportunityIterator_h | 6 #define NGLayoutOpportunityIterator_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_constraint_space.h" | 9 #include "core/layout/ng/ng_constraint_space.h" |
10 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" | 10 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" |
11 #include "core/layout/ng/ng_units.h" | 11 #include "core/layout/ng/ng_units.h" |
12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
13 #include "wtf/text/WTFString.h" | |
14 #include "wtf/Optional.h" | 13 #include "wtf/Optional.h" |
15 #include "wtf/Vector.h" | 14 #include "wtf/Vector.h" |
16 | 15 |
17 namespace blink { | 16 namespace blink { |
18 | 17 |
19 typedef NGLogicalRect NGLayoutOpportunity; | 18 typedef NGLogicalRect NGLayoutOpportunity; |
20 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; | 19 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; |
21 | 20 |
22 class CORE_EXPORT NGLayoutOpportunityIterator final | 21 class CORE_EXPORT NGLayoutOpportunityIterator final |
23 : public GarbageCollectedFinalized<NGLayoutOpportunityIterator> { | 22 : public GarbageCollectedFinalized<NGLayoutOpportunityIterator> { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 Member<NGConstraintSpace> constraint_space_; | 60 Member<NGConstraintSpace> constraint_space_; |
62 | 61 |
63 NGLayoutOpportunities opportunities_; | 62 NGLayoutOpportunities opportunities_; |
64 NGLayoutOpportunities::const_iterator opportunity_iter_; | 63 NGLayoutOpportunities::const_iterator opportunity_iter_; |
65 Member<NGLayoutOpportunityTreeNode> opportunity_tree_root_; | 64 Member<NGLayoutOpportunityTreeNode> opportunity_tree_root_; |
66 }; | 65 }; |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
69 | 68 |
70 #endif // NGLayoutOpportunityIterator_h | 69 #endif // NGLayoutOpportunityIterator_h |
OLD | NEW |