| OLD | NEW |
| 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 "content/public/common/mhtml_generation_params.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/WebMimeRegistry.h" | 11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" |
| 13 #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" |
| 14 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" | 13 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" |
| 15 | 14 |
| 16 namespace content { | 15 namespace content { |
| 17 | 16 |
| 18 #define STATIC_ASSERT_ENUM(a, b) \ | 17 #define STATIC_ASSERT_ENUM(a, b) \ |
| 19 static_assert(static_cast<int>(a) == static_cast<int>(b), \ | 18 static_assert(static_cast<int>(a) == static_cast<int>(b), \ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 39 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural, | 38 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural, |
| 40 SCREEN_ORIENTATION_VALUES_NATURAL); | 39 SCREEN_ORIENTATION_VALUES_NATURAL); |
| 41 | 40 |
| 42 // SupportsType | 41 // SupportsType |
| 43 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsNotSupported, | 42 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsNotSupported, |
| 44 media::IsNotSupported); | 43 media::IsNotSupported); |
| 45 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsSupported, media::IsSupported); | 44 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsSupported, media::IsSupported); |
| 46 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::MayBeSupported, | 45 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::MayBeSupported, |
| 47 media::MayBeSupported); | 46 media::MayBeSupported); |
| 48 | 47 |
| 49 // MHTMLCacheControlPolicy | |
| 50 STATIC_ASSERT_ENUM(blink::WebFrameSerializerCacheControlPolicy::None, | |
| 51 MHTMLCacheControlPolicy::NONE); | |
| 52 STATIC_ASSERT_ENUM( | |
| 53 blink::WebFrameSerializerCacheControlPolicy::FailForNoStoreMainFrame, | |
| 54 MHTMLCacheControlPolicy::FAIL_FOR_NO_STORE_MAIN_FRAME); | |
| 55 STATIC_ASSERT_ENUM(blink::WebFrameSerializerCacheControlPolicy::Last, | |
| 56 MHTMLCacheControlPolicy::LAST); | |
| 57 | |
| 58 } // namespace content | 48 } // namespace content |
| OLD | NEW |