| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Use this file to assert that *_list.h enums that are meant to do the bridge | 5 // Use this file to assert that *_list.h enums that are meant to do the bridge |
| 6 // from Blink are valid. | 6 // from Blink are valid. |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/animation/animation.h" | 9 #include "cc/animation/animation.h" |
| 10 #include "content/public/common/screen_orientation_values.h" | 10 #include "content/public/common/screen_orientation_values.h" |
| 11 #include "net/base/mime_util.h" | 11 #include "media/base/mime_util.h" |
| 12 #include "third_party/WebKit/public/platform/WebAnimation.h" | 12 #include "third_party/WebKit/public/platform/WebAnimation.h" |
| 13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" | 13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" |
| 14 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" | 14 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ | 18 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ |
| 19 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) | 19 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) |
| 20 | 20 |
| 21 // ScreenOrientationValues | 21 // ScreenOrientationValues |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 ANY); | 33 ANY); |
| 34 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape, | 34 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape, |
| 35 LANDSCAPE); | 35 LANDSCAPE); |
| 36 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait, | 36 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait, |
| 37 PORTRAIT); | 37 PORTRAIT); |
| 38 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockNatural, | 38 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockNatural, |
| 39 NATURAL); | 39 NATURAL); |
| 40 | 40 |
| 41 // SupportsType | 41 // SupportsType |
| 42 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported, | 42 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported, |
| 43 net::IsNotSupported); | 43 media::IsNotSupported); |
| 44 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported, | 44 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported, |
| 45 net::IsSupported); | 45 media::IsSupported); |
| 46 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported, | 46 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported, |
| 47 net::MayBeSupported); | 47 media::MayBeSupported); |
| 48 | 48 |
| 49 // TargetProperty | 49 // TargetProperty |
| 50 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform, | 50 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform, |
| 51 cc::Animation::Transform); | 51 cc::Animation::Transform); |
| 52 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity, | 52 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity, |
| 53 cc::Animation::Opacity); | 53 cc::Animation::Opacity); |
| 54 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter, | 54 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter, |
| 55 cc::Animation::Filter); | 55 cc::Animation::Filter); |
| 56 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset, | 56 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset, |
| 57 cc::Animation::ScrollOffset); | 57 cc::Animation::ScrollOffset); |
| 58 | 58 |
| 59 } // namespace content | 59 } // namespace content |
| OLD | NEW |