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 SquashingDisallowedReasons_h | 5 #ifndef SquashingDisallowedReasons_h |
6 #define SquashingDisallowedReasons_h | 6 #define SquashingDisallowedReasons_h |
7 | 7 |
| 8 #include <stdint.h> |
8 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
10 #include <stdint.h> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 enum SquashingDisallowedReason { | 14 enum SquashingDisallowedReason { |
15 SquashingDisallowedReasonsNone = 0, | 15 SquashingDisallowedReasonsNone = 0, |
16 SquashingDisallowedReasonScrollsWithRespectToSquashingLayer = 1 << 0, | 16 SquashingDisallowedReasonScrollsWithRespectToSquashingLayer = 1 << 0, |
17 SquashingDisallowedReasonSquashingSparsityExceeded = 1 << 1, | 17 SquashingDisallowedReasonSquashingSparsityExceeded = 1 << 1, |
18 SquashingDisallowedReasonClippingContainerMismatch = 1 << 2, | 18 SquashingDisallowedReasonClippingContainerMismatch = 1 << 2, |
19 SquashingDisallowedReasonOpacityAncestorMismatch = 1 << 3, | 19 SquashingDisallowedReasonOpacityAncestorMismatch = 1 << 3, |
20 SquashingDisallowedReasonTransformAncestorMismatch = 1 << 4, | 20 SquashingDisallowedReasonTransformAncestorMismatch = 1 << 4, |
(...skipping 20 matching lines...) Expand all Loading... |
41 const char* description; | 41 const char* description; |
42 }; | 42 }; |
43 | 43 |
44 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap | 44 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap |
45 kSquashingDisallowedReasonStringMap[]; | 45 kSquashingDisallowedReasonStringMap[]; |
46 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; | 46 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif // SquashingDisallowedReasons_h | 50 #endif // SquashingDisallowedReasons_h |
OLD | NEW |