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 "content/public/common/screen_orientation_values.h" | 10 #include "content/public/common/screen_orientation_values.h" |
10 #include "net/base/mime_util.h" | 11 #include "net/base/mime_util.h" |
| 12 #include "third_party/WebKit/public/platform/WebAnimation.h" |
11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" | 13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" |
12 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" | 14 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" |
13 | 15 |
14 namespace content { | 16 namespace content { |
15 | 17 |
16 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ | 18 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ |
17 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) | 19 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) |
18 | 20 |
19 // ScreenOrientationValues | 21 // ScreenOrientationValues |
20 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault, | 22 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault, |
(...skipping 14 matching lines...) Expand all Loading... |
35 PORTRAIT); | 37 PORTRAIT); |
36 | 38 |
37 // SupportsType | 39 // SupportsType |
38 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported, | 40 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported, |
39 net::IsNotSupported); | 41 net::IsNotSupported); |
40 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported, | 42 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported, |
41 net::IsSupported); | 43 net::IsSupported); |
42 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported, | 44 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported, |
43 net::MayBeSupported); | 45 net::MayBeSupported); |
44 | 46 |
| 47 // TargetProperty |
| 48 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform, |
| 49 cc::Animation::Transform); |
| 50 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity, |
| 51 cc::Animation::Opacity); |
| 52 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter, |
| 53 cc::Animation::Filter); |
| 54 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED |
| 55 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset, |
| 56 cc::Animation::ScrollOffset); |
| 57 #endif |
| 58 |
45 } // namespace content | 59 } // namespace content |
OLD | NEW |