Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: content/public/common/assert_matching_enums.cc

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
jam 2014/06/05 15:24:07 hmm just saw this file, it shouldn't have been in
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"
11 #include "third_party/WebKit/public/platform/WebAnimation.h"
10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" 12 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ 16 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \
15 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) 17 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums)
16 18
17 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault, 19 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault,
18 DEFAULT); 20 DEFAULT);
19 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary, 21 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary,
20 PORTRAIT_PRIMARY); 22 PORTRAIT_PRIMARY);
21 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary, 23 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary,
22 PORTRAIT_SECONDARY); 24 PORTRAIT_SECONDARY);
23 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary, 25 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary,
24 LANDSCAPE_PRIMARY); 26 LANDSCAPE_PRIMARY);
25 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary, 27 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary,
26 LANDSCAPE_SECONDARY); 28 LANDSCAPE_SECONDARY);
27 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny, 29 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny,
28 ANY); 30 ANY);
29 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape, 31 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape,
30 LANDSCAPE); 32 LANDSCAPE);
31 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait, 33 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait,
32 PORTRAIT); 34 PORTRAIT);
33 35
36 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform,
37 cc::Animation::Transform);
38 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity,
39 cc::Animation::Opacity);
40 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter,
41 cc::Animation::Filter);
42 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED
43 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset,
44 cc::Animation::ScrollOffset);
45 #endif
46
34 } // namespace content 47 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698