cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / content / child / assert_matching_enums.cc
blobc211ee1537c4346900201859e428e36dcc6c6356
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
3 // found in the LICENSE file.
5 // Use this file to assert that *_list.h enums that are meant to do the bridge
6 // from Blink are valid.
8 #include "base/macros.h"
9 #include "cc/animation/animation.h"
10 #include "content/public/common/screen_orientation_values.h"
11 #include "media/base/mime_util.h"
12 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
14 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
16 namespace content {
18 #define STATIC_ASSERT_MATCHING_ENUM(expected, actual) \
19 static_assert(int(expected) == int(actual), "mismatching enums: " #expected)
21 // ScreenOrientationValues
22 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault,
23 SCREEN_ORIENTATION_VALUES_DEFAULT);
24 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary,
25 SCREEN_ORIENTATION_VALUES_PORTRAIT_PRIMARY);
26 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary,
27 SCREEN_ORIENTATION_VALUES_PORTRAIT_SECONDARY);
28 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary,
29 SCREEN_ORIENTATION_VALUES_LANDSCAPE_PRIMARY);
30 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary,
31 SCREEN_ORIENTATION_VALUES_LANDSCAPE_SECONDARY);
32 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny,
33 SCREEN_ORIENTATION_VALUES_ANY);
34 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape,
35 SCREEN_ORIENTATION_VALUES_LANDSCAPE);
36 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait,
37 SCREEN_ORIENTATION_VALUES_PORTRAIT);
38 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockNatural,
39 SCREEN_ORIENTATION_VALUES_NATURAL);
41 // SupportsType
42 STATIC_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported,
43 media::IsNotSupported);
44 STATIC_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported,
45 media::IsSupported);
46 STATIC_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported,
47 media::MayBeSupported);
49 // TargetProperty
50 STATIC_ASSERT_MATCHING_ENUM(
51 blink::WebCompositorAnimation::TargetPropertyTransform,
52 cc::Animation::TRANSFORM);
53 STATIC_ASSERT_MATCHING_ENUM(
54 blink::WebCompositorAnimation::TargetPropertyOpacity,
55 cc::Animation::OPACITY);
56 STATIC_ASSERT_MATCHING_ENUM(blink::WebCompositorAnimation::TargetPropertyFilter,
57 cc::Animation::FILTER);
58 STATIC_ASSERT_MATCHING_ENUM(
59 blink::WebCompositorAnimation::TargetPropertyScrollOffset,
60 cc::Animation::SCROLL_OFFSET);
62 } // namespace content