| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 // Use this file to assert that various public API enum values continue | 31 // Use this file to assert that various public API enum values continue |
| 32 // matching blink defined enum values. | 32 // matching blink defined enum values. |
| 33 | 33 |
| 34 #include "config.h" | 34 #include "sky/engine/config.h" |
| 35 | 35 |
| 36 #include "bindings/core/v8/SerializedScriptValue.h" | 36 #include "sky/engine/bindings/core/v8/SerializedScriptValue.h" |
| 37 #include "core/dom/DocumentMarker.h" | 37 #include "sky/engine/core/dom/DocumentMarker.h" |
| 38 #include "core/dom/ExceptionCode.h" | 38 #include "sky/engine/core/dom/ExceptionCode.h" |
| 39 #include "core/dom/Node.h" | 39 #include "sky/engine/core/dom/Node.h" |
| 40 #include "core/editing/TextAffinity.h" | 40 #include "sky/engine/core/editing/TextAffinity.h" |
| 41 #include "core/frame/ConsoleTypes.h" | 41 #include "sky/engine/core/frame/ConsoleTypes.h" |
| 42 #include "core/frame/Settings.h" | 42 #include "sky/engine/core/frame/Settings.h" |
| 43 #include "core/loader/FrameLoaderTypes.h" | 43 #include "sky/engine/core/loader/FrameLoaderTypes.h" |
| 44 #include "core/loader/NavigationPolicy.h" | 44 #include "sky/engine/core/loader/NavigationPolicy.h" |
| 45 #include "core/page/PageVisibilityState.h" | 45 #include "sky/engine/core/page/PageVisibilityState.h" |
| 46 #include "core/rendering/style/RenderStyleConstants.h" | 46 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 47 #include "platform/Cursor.h" | 47 #include "sky/engine/platform/Cursor.h" |
| 48 #include "platform/PlatformMouseEvent.h" | 48 #include "sky/engine/platform/PlatformMouseEvent.h" |
| 49 #include "platform/fonts/FontDescription.h" | 49 #include "sky/engine/platform/fonts/FontDescription.h" |
| 50 #include "platform/fonts/FontSmoothingMode.h" | 50 #include "sky/engine/platform/fonts/FontSmoothingMode.h" |
| 51 #include "platform/graphics/filters/FilterOperation.h" | 51 #include "sky/engine/platform/graphics/filters/FilterOperation.h" |
| 52 #include "platform/network/ResourceLoadPriority.h" | 52 #include "sky/engine/platform/network/ResourceLoadPriority.h" |
| 53 #include "platform/network/ResourceResponse.h" | 53 #include "sky/engine/platform/network/ResourceResponse.h" |
| 54 #include "platform/scroll/ScrollTypes.h" | 54 #include "sky/engine/platform/scroll/ScrollTypes.h" |
| 55 #include "platform/text/TextChecking.h" | 55 #include "sky/engine/platform/text/TextChecking.h" |
| 56 #include "platform/text/TextDecoration.h" | 56 #include "sky/engine/platform/text/TextDecoration.h" |
| 57 #include "platform/weborigin/ReferrerPolicy.h" | 57 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" |
| 58 #include "public/platform/WebClipboard.h" | 58 #include "sky/engine/public/platform/WebClipboard.h" |
| 59 #include "public/platform/WebCursorInfo.h" | 59 #include "sky/engine/public/platform/WebCursorInfo.h" |
| 60 #include "public/platform/WebReferrerPolicy.h" | 60 #include "sky/engine/public/platform/WebReferrerPolicy.h" |
| 61 #include "public/platform/WebURLRequest.h" | 61 #include "sky/engine/public/platform/WebURLRequest.h" |
| 62 #include "public/platform/WebURLResponse.h" | 62 #include "sky/engine/public/platform/WebURLResponse.h" |
| 63 #include "public/web/WebConsoleMessage.h" | 63 #include "sky/engine/public/web/WebConsoleMessage.h" |
| 64 #include "public/web/WebFontDescription.h" | 64 #include "sky/engine/public/web/WebFontDescription.h" |
| 65 #include "public/web/WebInputEvent.h" | 65 #include "sky/engine/public/web/WebInputEvent.h" |
| 66 #include "public/web/WebNavigationPolicy.h" | 66 #include "sky/engine/public/web/WebNavigationPolicy.h" |
| 67 #include "public/web/WebNavigatorContentUtilsClient.h" | 67 #include "sky/engine/public/web/WebNavigatorContentUtilsClient.h" |
| 68 #include "public/web/WebNode.h" | 68 #include "sky/engine/public/web/WebNode.h" |
| 69 #include "public/web/WebSettings.h" | 69 #include "sky/engine/public/web/WebSettings.h" |
| 70 #include "public/web/WebTextAffinity.h" | 70 #include "sky/engine/public/web/WebTextAffinity.h" |
| 71 #include "public/web/WebTextCheckingResult.h" | 71 #include "sky/engine/public/web/WebTextCheckingResult.h" |
| 72 #include "public/web/WebTextCheckingType.h" | 72 #include "sky/engine/public/web/WebTextCheckingType.h" |
| 73 #include "public/web/WebTextDecorationType.h" | 73 #include "sky/engine/public/web/WebTextDecorationType.h" |
| 74 #include "public/web/WebTouchAction.h" | 74 #include "sky/engine/public/web/WebTouchAction.h" |
| 75 #include "public/web/WebView.h" | 75 #include "sky/engine/public/web/WebView.h" |
| 76 #include "wtf/Assertions.h" | 76 #include "sky/engine/wtf/Assertions.h" |
| 77 #include "wtf/text/StringImpl.h" | 77 #include "sky/engine/wtf/text/StringImpl.h" |
| 78 | 78 |
| 79 namespace blink { | 79 namespace blink { |
| 80 | 80 |
| 81 #define COMPILE_ASSERT_MATCHING_ENUM(public_name, core_name) \ | 81 #define COMPILE_ASSERT_MATCHING_ENUM(public_name, core_name) \ |
| 82 COMPILE_ASSERT(int(public_name) == int(core_name), mismatching_enums) | 82 COMPILE_ASSERT(int(public_name) == int(core_name), mismatching_enums) |
| 83 | 83 |
| 84 #define COMPILE_ASSERT_MATCHING_UINT64(public_name, core_name) \ | 84 #define COMPILE_ASSERT_MATCHING_UINT64(public_name, core_name) \ |
| 85 COMPILE_ASSERT(public_name == core_name, mismatching_enums) | 85 COMPILE_ASSERT(public_name == core_name, mismatching_enums) |
| 86 | 86 |
| 87 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer); | 87 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode
); | 225 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode
); |
| 226 | 226 |
| 227 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone); | 227 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone); |
| 228 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse); | 228 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse); |
| 229 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine); | 229 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine); |
| 230 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone); | 230 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone); |
| 231 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand); | 231 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand); |
| 232 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover); | 232 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover); |
| 233 | 233 |
| 234 } // namespace blink | 234 } // namespace blink |
| OLD | NEW |