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 NGPhysicalConstraintSpace_h | 5 #ifndef NGPhysicalConstraintSpace_h |
6 #define NGPhysicalConstraintSpace_h | 6 #define NGPhysicalConstraintSpace_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_units.h" | 9 #include "core/layout/ng/ng_units.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
11 #include "wtf/DoublyLinkedList.h" | 11 #include "wtf/DoublyLinkedList.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 enum NGExclusionType { | 15 enum NGExclusionType { |
16 NGClearNone = 0, | 16 NGClearNone = 0, |
17 NGClearFloatLeft = 1, | 17 NGClearFloatLeft = 1, |
18 NGClearFloatRight = 2, | 18 NGClearFloatRight = 2, |
19 NGClearFragment = 4 | 19 NGClearFragment = 4 |
20 }; | 20 }; |
21 | 21 |
22 enum NGFragmentationType { | 22 enum NGFragmentationType { |
23 FragmentNone, | 23 FragmentNone, |
24 FragmentPage, | 24 FragmentPage, |
25 FragmentColumn, | 25 FragmentColumn, |
26 FragmentRegion | 26 FragmentRegion |
27 }; | 27 }; |
28 | 28 |
29 enum NGDirection { LeftToRight = 0, RightToLeft = 1 }; | |
30 | |
31 class NGExclusion { | 29 class NGExclusion { |
32 public: | 30 public: |
33 NGExclusion(); | 31 NGExclusion(); |
34 ~NGExclusion() {} | 32 ~NGExclusion() {} |
35 }; | 33 }; |
36 | 34 |
37 // The NGPhysicalConstraintSpace contains the underlying data for the | 35 // The NGPhysicalConstraintSpace contains the underlying data for the |
38 // NGConstraintSpace. It is not meant to be used directly as all members are in | 36 // NGConstraintSpace. It is not meant to be used directly as all members are in |
39 // the physical coordinate space. Instead NGConstraintSpace should be used. | 37 // the physical coordinate space. Instead NGConstraintSpace should be used. |
40 class CORE_EXPORT NGPhysicalConstraintSpace final | 38 class CORE_EXPORT NGPhysicalConstraintSpace final |
(...skipping 22 matching lines...) Expand all Loading... |
63 unsigned height_direction_triggers_scrollbar_ : 1; | 61 unsigned height_direction_triggers_scrollbar_ : 1; |
64 unsigned width_direction_fragmentation_type_ : 2; | 62 unsigned width_direction_fragmentation_type_ : 2; |
65 unsigned height_direction_fragmentation_type_ : 2; | 63 unsigned height_direction_fragmentation_type_ : 2; |
66 | 64 |
67 DoublyLinkedList<const NGExclusion> exclusions_; | 65 DoublyLinkedList<const NGExclusion> exclusions_; |
68 }; | 66 }; |
69 | 67 |
70 } // namespace blink | 68 } // namespace blink |
71 | 69 |
72 #endif // NGPhysicalConstraintSpace_h | 70 #endif // NGPhysicalConstraintSpace_h |
OLD | NEW |