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 NGUnits_h | 5 #ifndef NGUnits_h |
6 #define NGUnits_h | 6 #define NGUnits_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_writing_mode.h" | 9 #include "core/layout/ng/ng_writing_mode.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const NGLogicalRect& value) { | 163 const NGLogicalRect& value) { |
164 return stream << value.ToString(); | 164 return stream << value.ToString(); |
165 } | 165 } |
166 | 166 |
167 // Struct that represents NG exclusion. | 167 // Struct that represents NG exclusion. |
168 struct CORE_EXPORT NGExclusion { | 168 struct CORE_EXPORT NGExclusion { |
169 // Type of NG exclusion. | 169 // Type of NG exclusion. |
170 enum Type { | 170 enum Type { |
171 // Undefined exclusion type. | 171 // Undefined exclusion type. |
172 // At this moment it's also used to represent CSS3 exclusion. | 172 // At this moment it's also used to represent CSS3 exclusion. |
173 NG_EXCLUSION_TYPE_UNDEFINED = 0, | 173 kExclusionTypeUndefined = 0, |
174 // Exclusion that is created by LEFT float. | 174 // Exclusion that is created by LEFT float. |
175 NG_FLOAT_LEFT = 1, | 175 kFloatLeft = 1, |
176 // Exclusion that is created by RIGHT float. | 176 // Exclusion that is created by RIGHT float. |
177 NG_FLOAT_RIGHT = 2 | 177 kFloatRight = 2 |
178 }; | 178 }; |
179 | 179 |
180 // Rectangle in logical coordinates the represents this exclusion. | 180 // Rectangle in logical coordinates the represents this exclusion. |
181 NGLogicalRect rect; | 181 NGLogicalRect rect; |
182 | 182 |
183 // Type of this exclusion. | 183 // Type of this exclusion. |
184 Type type; | 184 Type type; |
185 }; | 185 }; |
186 | 186 |
187 struct NGPixelSnappedPhysicalRect { | 187 struct NGPixelSnappedPhysicalRect { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 263 |
264 // Struct to represent a simple edge that has start and end. | 264 // Struct to represent a simple edge that has start and end. |
265 struct NGEdge { | 265 struct NGEdge { |
266 LayoutUnit start; | 266 LayoutUnit start; |
267 LayoutUnit end; | 267 LayoutUnit end; |
268 }; | 268 }; |
269 | 269 |
270 } // namespace blink | 270 } // namespace blink |
271 | 271 |
272 #endif // NGUnits_h | 272 #endif // NGUnits_h |
OLD | NEW |