| Index: sky/engine/web/AssertMatchingEnums.cpp
|
| diff --git a/sky/engine/web/AssertMatchingEnums.cpp b/sky/engine/web/AssertMatchingEnums.cpp
|
| deleted file mode 100644
|
| index e4821a5eb88c0c46c3dd3b7a29975d1bbc5cafb4..0000000000000000000000000000000000000000
|
| --- a/sky/engine/web/AssertMatchingEnums.cpp
|
| +++ /dev/null
|
| @@ -1,167 +0,0 @@
|
| -/*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| - *
|
| - * Redistribution and use in source and binary forms, with or without
|
| - * modification, are permitted provided that the following conditions are
|
| - * met:
|
| - *
|
| - * * Redistributions of source code must retain the above copyright
|
| - * notice, this list of conditions and the following disclaimer.
|
| - * * Redistributions in binary form must reproduce the above
|
| - * copyright notice, this list of conditions and the following disclaimer
|
| - * in the documentation and/or other materials provided with the
|
| - * distribution.
|
| - * * Neither the name of Google Inc. nor the names of its
|
| - * contributors may be used to endorse or promote products derived from
|
| - * this software without specific prior written permission.
|
| - *
|
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| - */
|
| -
|
| -// Use this file to assert that various public API enum values continue
|
| -// matching blink defined enum values.
|
| -
|
| -
|
| -#include "sky/engine/core/dom/DocumentMarker.h"
|
| -#include "sky/engine/core/dom/ExceptionCode.h"
|
| -#include "sky/engine/core/dom/Node.h"
|
| -#include "sky/engine/core/editing/TextAffinity.h"
|
| -#include "sky/engine/core/frame/ConsoleTypes.h"
|
| -#include "sky/engine/core/frame/Settings.h"
|
| -#include "sky/engine/core/loader/FrameLoaderTypes.h"
|
| -#include "sky/engine/core/loader/NavigationPolicy.h"
|
| -#include "sky/engine/core/page/PageVisibilityState.h"
|
| -#include "sky/engine/core/rendering/style/RenderStyleConstants.h"
|
| -#include "sky/engine/platform/fonts/FontDescription.h"
|
| -#include "sky/engine/platform/fonts/FontSmoothingMode.h"
|
| -#include "sky/engine/platform/graphics/filters/FilterOperation.h"
|
| -#include "sky/engine/platform/network/ResourceLoadPriority.h"
|
| -#include "sky/engine/platform/network/ResourceResponse.h"
|
| -#include "sky/engine/platform/text/TextChecking.h"
|
| -#include "sky/engine/platform/text/TextDecoration.h"
|
| -#include "sky/engine/platform/weborigin/ReferrerPolicy.h"
|
| -#include "sky/engine/public/platform/WebClipboard.h"
|
| -#include "sky/engine/public/platform/WebInputEvent.h"
|
| -#include "sky/engine/public/platform/WebReferrerPolicy.h"
|
| -#include "sky/engine/public/platform/WebURLRequest.h"
|
| -#include "sky/engine/public/platform/WebURLResponse.h"
|
| -#include "sky/engine/public/web/WebConsoleMessage.h"
|
| -#include "sky/engine/public/web/WebFontDescription.h"
|
| -#include "sky/engine/public/web/WebNavigationPolicy.h"
|
| -#include "sky/engine/public/web/WebNavigatorContentUtilsClient.h"
|
| -#include "sky/engine/public/web/WebNode.h"
|
| -#include "sky/engine/public/web/WebSettings.h"
|
| -#include "sky/engine/public/web/WebTextAffinity.h"
|
| -#include "sky/engine/public/web/WebTextCheckingResult.h"
|
| -#include "sky/engine/public/web/WebTextCheckingType.h"
|
| -#include "sky/engine/public/web/WebTextDecorationType.h"
|
| -#include "sky/engine/public/web/WebView.h"
|
| -#include "sky/engine/wtf/Assertions.h"
|
| -#include "sky/engine/wtf/text/StringImpl.h"
|
| -
|
| -namespace blink {
|
| -
|
| -#define COMPILE_ASSERT_MATCHING_ENUM(public_name, core_name) \
|
| - COMPILE_ASSERT(int(public_name) == int(core_name), mismatching_enums)
|
| -
|
| -#define COMPILE_ASSERT_MATCHING_UINT64(public_name, core_name) \
|
| - COMPILE_ASSERT(public_name == core_name, mismatching_enums)
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyNone, FontDescription::NoFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyStandard, FontDescription::StandardFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySerif, FontDescription::SerifFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySansSerif, FontDescription::SansSerifFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyMonospace, FontDescription::MonospaceFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyCursive, FontDescription::CursiveFamily);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyFantasy, FontDescription::FantasyFamily);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingAuto, AutoSmoothing);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingNone, NoSmoothing);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingGrayscale, Antialiased);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingSubpixel, SubpixelAntialiased);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight100, FontWeight100);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight200, FontWeight200);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight300, FontWeight300);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight400, FontWeight400);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight500, FontWeight500);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight600, FontWeight600);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight700, FontWeight700);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNode::ElementNode, Node::ELEMENT_NODE);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNode::TextNode, Node::TEXT_NODE);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentNode, Node::DOCUMENT_NODE);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentFragmentNode, Node::DOCUMENT_FRAGMENT_NODE);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityUpstream, UPSTREAM);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityDownstream, DOWNSTREAM);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelling);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar);
|
| -
|
| -// TODO(rouslan): Remove these comparisons between text-checking and text-decoration enum values after removing the
|
| -// deprecated constructor WebTextCheckingResult(WebTextCheckingType).
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpelling);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGrammar);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeSpelling, TextDecorationTypeSpelling);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeGrammar, TextDecorationTypeGrammar);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeInvisibleSpellcheck, TextDecorationTypeInvisibleSpellcheck);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStateVisible, PageVisibilityStateVisible);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStateHidden, PageVisibilityStateHidden);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyAlways, ReferrerPolicyAlways);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyDefault, ReferrerPolicyDefault);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyNever, ReferrerPolicyNever);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyOrigin, ReferrerPolicyOrigin);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::Unknown, ResourceResponse::Unknown);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_0_9, ResourceResponse::HTTP_0_9);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_0, ResourceResponse::HTTP_1_0);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_1, ResourceResponse::HTTP_1_1);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityUnresolved, ResourceLoadPriorityUnresolved);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryLow, ResourceLoadPriorityVeryLow);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityLow, ResourceLoadPriorityLow);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityMedium, ResourceLoadPriorityMedium);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityHigh, ResourceLoadPriorityHigh);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryHigh, ResourceLoadPriorityVeryHigh);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyIgnore, NavigationPolicyIgnore);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyDownload, NavigationPolicyDownload);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyDownloadTo, NavigationPolicyDownloadTo);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyCurrentTab, NavigationPolicyCurrentTab);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewBackgroundTab, NavigationPolicyNewBackgroundTab);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewForegroundTab, NavigationPolicyNewForegroundTab);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewWindow, NavigationPolicyNewWindow);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewPopup, NavigationPolicyNewPopup);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelDebug, DebugMessageLevel);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelLog, LogMessageLevel);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelWarning, WarningMessageLevel);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelError, ErrorMessageLevel);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelInfo, InfoMessageLevel);
|
| -
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand);
|
| -COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover);
|
| -
|
| -} // namespace blink
|
|
|