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

Side by Side Diff: content/child/assert_matching_enums.cc

Issue 389383002: Revert 277386 "Fix: Adding list of supported codecs for MP4 cont..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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"
12 #include "third_party/WebKit/public/platform/WebAnimation.h" 11 #include "third_party/WebKit/public/platform/WebAnimation.h"
13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" 12 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
14 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" 13 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
15 14
16 namespace content { 15 namespace content {
17 16
18 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \ 17 #define COMPILE_ASSERT_MATCHING_ENUM(expected, actual) \
19 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums) 18 COMPILE_ASSERT(int(expected) == int(actual), mismatching_enums)
20 19
21 // ScreenOrientationValues 20 // ScreenOrientationValues
22 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault, 21 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault,
23 DEFAULT); 22 DEFAULT);
24 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary, 23 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary,
25 PORTRAIT_PRIMARY); 24 PORTRAIT_PRIMARY);
26 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary, 25 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitSecondary,
27 PORTRAIT_SECONDARY); 26 PORTRAIT_SECONDARY);
28 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary, 27 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapePrimary,
29 LANDSCAPE_PRIMARY); 28 LANDSCAPE_PRIMARY);
30 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary, 29 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscapeSecondary,
31 LANDSCAPE_SECONDARY); 30 LANDSCAPE_SECONDARY);
32 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny, 31 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockAny,
33 ANY); 32 ANY);
34 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape, 33 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockLandscape,
35 LANDSCAPE); 34 LANDSCAPE);
36 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait, 35 COMPILE_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortrait,
37 PORTRAIT); 36 PORTRAIT);
38 37
39 // SupportsType
40 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsNotSupported,
41 net::IsNotSupported);
42 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::IsSupported,
43 net::IsSupported);
44 COMPILE_ASSERT_MATCHING_ENUM(blink::WebMimeRegistry::MayBeSupported,
45 net::MayBeSupported);
46
47 // TargetProperty 38 // TargetProperty
48 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform, 39 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyTransform,
49 cc::Animation::Transform); 40 cc::Animation::Transform);
50 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity, 41 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyOpacity,
51 cc::Animation::Opacity); 42 cc::Animation::Opacity);
52 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter, 43 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyFilter,
53 cc::Animation::Filter); 44 cc::Animation::Filter);
54 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED 45 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED
55 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset, 46 COMPILE_ASSERT_MATCHING_ENUM(blink::WebAnimation::TargetPropertyScrollOffset,
56 cc::Animation::ScrollOffset); 47 cc::Animation::ScrollOffset);
57 #endif 48 #endif
58 49
59 } // namespace content 50 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/media_canplaytype_browsertest.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698