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

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

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 years, 10 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.
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"
10 #include "content/public/common/screen_orientation_values.h" 9 #include "content/public/common/screen_orientation_values.h"
11 #include "media/base/mime_util.h" 10 #include "media/base/mime_util.h"
12 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" 11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
14 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h" 12 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h"
15 13
16 namespace content { 14 namespace content {
17 15
18 #define STATIC_ASSERT_ENUM(a, b) \ 16 #define STATIC_ASSERT_ENUM(a, b) \
19 static_assert(static_cast<int>(a) == static_cast<int>(b), \ 17 static_assert(static_cast<int>(a) == static_cast<int>(b), \
20 "mismatching enums: " #a) 18 "mismatching enums: " #a)
21 19
22 // ScreenOrientationValues 20 // ScreenOrientationValues
(...skipping 16 matching lines...) Expand all
39 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural, 37 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural,
40 SCREEN_ORIENTATION_VALUES_NATURAL); 38 SCREEN_ORIENTATION_VALUES_NATURAL);
41 39
42 // SupportsType 40 // SupportsType
43 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsNotSupported, 41 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsNotSupported,
44 media::IsNotSupported); 42 media::IsNotSupported);
45 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsSupported, media::IsSupported); 43 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsSupported, media::IsSupported);
46 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::MayBeSupported, 44 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::MayBeSupported,
47 media::MayBeSupported); 45 media::MayBeSupported);
48 46
49 // TargetProperty
50 STATIC_ASSERT_ENUM(blink::WebCompositorAnimation::TargetPropertyTransform,
51 cc::Animation::TRANSFORM);
52 STATIC_ASSERT_ENUM(blink::WebCompositorAnimation::TargetPropertyOpacity,
53 cc::Animation::OPACITY);
54 STATIC_ASSERT_ENUM(blink::WebCompositorAnimation::TargetPropertyFilter,
55 cc::Animation::FILTER);
56 STATIC_ASSERT_ENUM(blink::WebCompositorAnimation::TargetPropertyScrollOffset,
57 cc::Animation::SCROLL_OFFSET);
58
59 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « cc/blink/web_transform_operations_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698