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 "content/public/common/screen_orientation_values.h"
10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
14 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \
15 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums)
17 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault,
19 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary,
21 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary,
23 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary,
25 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary,
27 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny,
29 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape,
31 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait,
34 } // namespace content