| 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 "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 SquashingDisallowedReasonSquashingVideoIsDisallowed = 1 << 7, | 23 SquashingDisallowedReasonSquashingVideoIsDisallowed = 1 << 7, |
| 24 SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants = 1 << 8, | 24 SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants = 1 << 8, |
| 25 SquashingDisallowedReasonSquashingLayoutPartIsDisallowed = 1 << 9, | 25 SquashingDisallowedReasonSquashingLayoutPartIsDisallowed = 1 << 9, |
| 26 SquashingDisallowedReasonSquashingBlendingIsDisallowed = 1 << 10, | 26 SquashingDisallowedReasonSquashingBlendingIsDisallowed = 1 << 10, |
| 27 SquashingDisallowedReasonNearestFixedPositionMismatch = 1 << 11, | 27 SquashingDisallowedReasonNearestFixedPositionMismatch = 1 << 11, |
| 28 SquashingDisallowedReasonScrollChildWithCompositedDescendants = 1 << 12, | 28 SquashingDisallowedReasonScrollChildWithCompositedDescendants = 1 << 12, |
| 29 SquashingDisallowedReasonSquashingLayerIsAnimating = 1 << 13, | 29 SquashingDisallowedReasonSquashingLayerIsAnimating = 1 << 13, |
| 30 SquashingDisallowedReasonRenderingContextMismatch = 1 << 14, | 30 SquashingDisallowedReasonRenderingContextMismatch = 1 << 14, |
| 31 SquashingDisallowedReasonNonTranslationTransform = 1 << 15, | 31 SquashingDisallowedReasonNonTranslationTransform = 1 << 15, |
| 32 SquashingDisallowedReasonFragmentedContent = 1 << 16, | 32 SquashingDisallowedReasonFragmentedContent = 1 << 16, |
| 33 SquashingDisallowedReasonCompositedScrolling = 1 << 17, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 typedef unsigned SquashingDisallowedReasons; | 36 typedef unsigned SquashingDisallowedReasons; |
| 36 | 37 |
| 37 struct SquashingDisallowedReasonStringMap { | 38 struct SquashingDisallowedReasonStringMap { |
| 38 STACK_ALLOCATED(); | 39 STACK_ALLOCATED(); |
| 39 SquashingDisallowedReasons reason; | 40 SquashingDisallowedReasons reason; |
| 40 const char* shortName; | 41 const char* shortName; |
| 41 const char* description; | 42 const char* description; |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap | 45 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap |
| 45 kSquashingDisallowedReasonStringMap[]; | 46 kSquashingDisallowedReasonStringMap[]; |
| 46 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; | 47 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; |
| 47 | 48 |
| 48 } // namespace blink | 49 } // namespace blink |
| 49 | 50 |
| 50 #endif // SquashingDisallowedReasons_h | 51 #endif // SquashingDisallowedReasons_h |
| OLD | NEW |