| 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_layout_opportunity_tree_node.h" | 9 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" |
| 10 #include "wtf/Optional.h" | 10 #include "platform/wtf/Optional.h" |
| 11 #include "wtf/Vector.h" | 11 #include "platform/wtf/Vector.h" |
| 12 #include "wtf/text/StringBuilder.h" | 12 #include "platform/wtf/text/StringBuilder.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class NGConstraintSpace; | 16 class NGConstraintSpace; |
| 17 typedef NGLogicalRect NGLayoutOpportunity; | 17 typedef NGLogicalRect NGLayoutOpportunity; |
| 18 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; | 18 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; |
| 19 | 19 |
| 20 class CORE_EXPORT NGLayoutOpportunityIterator final { | 20 class CORE_EXPORT NGLayoutOpportunityIterator final { |
| 21 public: | 21 public: |
| 22 // Default constructor. | 22 // Default constructor. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 NGLayoutOpportunities opportunities_; | 65 NGLayoutOpportunities opportunities_; |
| 66 NGLayoutOpportunities::const_iterator opportunity_iter_; | 66 NGLayoutOpportunities::const_iterator opportunity_iter_; |
| 67 std::unique_ptr<NGLayoutOpportunityTreeNode> opportunity_tree_root_; | 67 std::unique_ptr<NGLayoutOpportunityTreeNode> opportunity_tree_root_; |
| 68 NGLogicalOffset offset_; | 68 NGLogicalOffset offset_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // NGLayoutOpportunityIterator_h | 73 #endif // NGLayoutOpportunityIterator_h |
| OLD | NEW |