| 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/common/input/touch_action.h" | 9 #include "content/common/input/touch_action.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/WebMimeRegistry.h" | |
| 13 #include "third_party/WebKit/public/platform/WebTextInputMode.h" | 12 #include "third_party/WebKit/public/platform/WebTextInputMode.h" |
| 14 #include "third_party/WebKit/public/platform/WebTextInputType.h" | 13 #include "third_party/WebKit/public/platform/WebTextInputType.h" |
| 15 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.h" | 14 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.h" |
| 16 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" | 15 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" |
| 17 #include "third_party/WebKit/public/web/WebTouchAction.h" | 16 #include "third_party/WebKit/public/web/WebTouchAction.h" |
| 18 #include "ui/base/ime/text_input_mode.h" | 17 #include "ui/base/ime/text_input_mode.h" |
| 19 #include "ui/base/ime/text_input_type.h" | 18 #include "ui/base/ime/text_input_type.h" |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 | 21 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 SCREEN_ORIENTATION_VALUES_LANDSCAPE_SECONDARY); | 36 SCREEN_ORIENTATION_VALUES_LANDSCAPE_SECONDARY); |
| 38 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockAny, | 37 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockAny, |
| 39 SCREEN_ORIENTATION_VALUES_ANY); | 38 SCREEN_ORIENTATION_VALUES_ANY); |
| 40 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockLandscape, | 39 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockLandscape, |
| 41 SCREEN_ORIENTATION_VALUES_LANDSCAPE); | 40 SCREEN_ORIENTATION_VALUES_LANDSCAPE); |
| 42 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockPortrait, | 41 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockPortrait, |
| 43 SCREEN_ORIENTATION_VALUES_PORTRAIT); | 42 SCREEN_ORIENTATION_VALUES_PORTRAIT); |
| 44 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural, | 43 STATIC_ASSERT_ENUM(blink::WebScreenOrientationLockNatural, |
| 45 SCREEN_ORIENTATION_VALUES_NATURAL); | 44 SCREEN_ORIENTATION_VALUES_NATURAL); |
| 46 | 45 |
| 47 // SupportsType | |
| 48 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsNotSupported, | |
| 49 media::IsNotSupported); | |
| 50 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::IsSupported, media::IsSupported); | |
| 51 STATIC_ASSERT_ENUM(blink::WebMimeRegistry::MayBeSupported, | |
| 52 media::MayBeSupported); | |
| 53 | |
| 54 // WebTextInputMode | 46 // WebTextInputMode |
| 55 STATIC_ASSERT_ENUM(blink::kWebTextInputModeDefault, | 47 STATIC_ASSERT_ENUM(blink::kWebTextInputModeDefault, |
| 56 ui::TEXT_INPUT_MODE_DEFAULT); | 48 ui::TEXT_INPUT_MODE_DEFAULT); |
| 57 STATIC_ASSERT_ENUM(blink::kWebTextInputModeVerbatim, | 49 STATIC_ASSERT_ENUM(blink::kWebTextInputModeVerbatim, |
| 58 ui::TEXT_INPUT_MODE_VERBATIM); | 50 ui::TEXT_INPUT_MODE_VERBATIM); |
| 59 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatin, ui::TEXT_INPUT_MODE_LATIN); | 51 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatin, ui::TEXT_INPUT_MODE_LATIN); |
| 60 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatinName, | 52 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatinName, |
| 61 ui::TEXT_INPUT_MODE_LATIN_NAME); | 53 ui::TEXT_INPUT_MODE_LATIN_NAME); |
| 62 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatinProse, | 54 STATIC_ASSERT_ENUM(blink::kWebTextInputModeLatinProse, |
| 63 ui::TEXT_INPUT_MODE_LATIN_PROSE); | 55 ui::TEXT_INPUT_MODE_LATIN_PROSE); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 STATIC_ASSERT_ENUM(blink::WebTouchActionPanY, TOUCH_ACTION_PAN_Y); | 100 STATIC_ASSERT_ENUM(blink::WebTouchActionPanY, TOUCH_ACTION_PAN_Y); |
| 109 STATIC_ASSERT_ENUM(blink::WebTouchActionPan, TOUCH_ACTION_PAN); | 101 STATIC_ASSERT_ENUM(blink::WebTouchActionPan, TOUCH_ACTION_PAN); |
| 110 STATIC_ASSERT_ENUM(blink::WebTouchActionPinchZoom, TOUCH_ACTION_PINCH_ZOOM); | 102 STATIC_ASSERT_ENUM(blink::WebTouchActionPinchZoom, TOUCH_ACTION_PINCH_ZOOM); |
| 111 STATIC_ASSERT_ENUM(blink::WebTouchActionManipulation, | 103 STATIC_ASSERT_ENUM(blink::WebTouchActionManipulation, |
| 112 TOUCH_ACTION_MANIPULATION); | 104 TOUCH_ACTION_MANIPULATION); |
| 113 STATIC_ASSERT_ENUM(blink::WebTouchActionDoubleTapZoom, | 105 STATIC_ASSERT_ENUM(blink::WebTouchActionDoubleTapZoom, |
| 114 TOUCH_ACTION_DOUBLE_TAP_ZOOM); | 106 TOUCH_ACTION_DOUBLE_TAP_ZOOM); |
| 115 STATIC_ASSERT_ENUM(blink::WebTouchActionAuto, TOUCH_ACTION_AUTO); | 107 STATIC_ASSERT_ENUM(blink::WebTouchActionAuto, TOUCH_ACTION_AUTO); |
| 116 | 108 |
| 117 } // namespace content | 109 } // namespace content |
| OLD | NEW |