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

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

Issue 1151373005: Update Blink's screen orientation path in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix one include Created 5 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.
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 "media/base/mime_util.h" 11 #include "media/base/mime_util.h"
12 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" 12 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" 13 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
14 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" 14 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 #define STATIC_ASSERT_MATCHING_ENUM(expected, actual) \ 18 #define STATIC_ASSERT_MATCHING_ENUM(expected, actual) \
19 static_assert(int(expected) == int(actual), "mismatching enums: " #expected) 19 static_assert(int(expected) == int(actual), "mismatching enums: " #expected)
20 20
21 // ScreenOrientationValues 21 // ScreenOrientationValues
22 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault, 22 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockDefault,
23 SCREEN_ORIENTATION_VALUES_DEFAULT); 23 SCREEN_ORIENTATION_VALUES_DEFAULT);
24 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary, 24 STATIC_ASSERT_MATCHING_ENUM(blink::WebScreenOrientationLockPortraitPrimary,
(...skipping 28 matching lines...) Expand all
53 STATIC_ASSERT_MATCHING_ENUM( 53 STATIC_ASSERT_MATCHING_ENUM(
54 blink::WebCompositorAnimation::TargetPropertyOpacity, 54 blink::WebCompositorAnimation::TargetPropertyOpacity,
55 cc::Animation::OPACITY); 55 cc::Animation::OPACITY);
56 STATIC_ASSERT_MATCHING_ENUM(blink::WebCompositorAnimation::TargetPropertyFilter, 56 STATIC_ASSERT_MATCHING_ENUM(blink::WebCompositorAnimation::TargetPropertyFilter,
57 cc::Animation::FILTER); 57 cc::Animation::FILTER);
58 STATIC_ASSERT_MATCHING_ENUM( 58 STATIC_ASSERT_MATCHING_ENUM(
59 blink::WebCompositorAnimation::TargetPropertyScrollOffset, 59 blink::WebCompositorAnimation::TargetPropertyScrollOffset,
60 cc::Animation::SCROLL_OFFSET); 60 cc::Animation::SCROLL_OFFSET);
61 61
62 } // namespace content 62 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.h ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698