1 /* 2 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: 7 * 8 * * Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * * Redistributions in binary form must reproduce the above 11 * copyright notice, this list of conditions and the following disclaimer 12 * in the documentation and/or other materials provided with the 13 * distribution. 14 * * Neither the name of Google Inc. nor the names of its 15 * contributors may be used to endorse or promote products derived from 16 * this software without specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 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. 29 */ 30 31 // Use this file to assert that various public API enum values continue 32 // matching blink defined enum values. 33 34 #include "config.h" 35 36 #include "bindings/core/v8/SerializedScriptValue.h" 37 #include "core/accessibility/AXObject.h" 38 #include "core/accessibility/AXObjectCache.h" 39 #include "core/dom/DocumentMarker.h" 40 #include "core/dom/ExceptionCode.h" 41 #include "core/dom/IconURL.h" 42 #include "core/editing/TextAffinity.h" 43 #include "core/fileapi/FileError.h" 44 #include "core/frame/Settings.h" 45 #include "core/frame/csp/ContentSecurityPolicy.h" 46 #include "core/html/HTMLFormElement.h" 47 #include "core/html/HTMLInputElement.h" 48 #include "core/html/HTMLMediaElement.h" 49 #include "core/html/shadow/TextControlInnerElements.h" 50 #include "core/loader/FrameLoaderTypes.h" 51 #include "core/loader/NavigationPolicy.h" 52 #include "core/loader/appcache/ApplicationCacheHost.h" 53 #include "core/page/InjectedStyleSheets.h" 54 #include "core/page/PageVisibilityState.h" 55 #include "core/rendering/compositing/CompositedSelectionBound.h" 56 #include "core/rendering/style/RenderStyleConstants.h" 57 #include "modules/geolocation/GeolocationError.h" 58 #include "modules/geolocation/GeolocationPosition.h" 59 #include "modules/indexeddb/IDBKey.h" 60 #include "modules/indexeddb/IDBKeyPath.h" 61 #include "modules/indexeddb/IDBMetadata.h" 62 #include "modules/indexeddb/IndexedDB.h" 63 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 64 #include "modules/notifications/NotificationClient.h" 65 #include "modules/quota/DeprecatedStorageQuota.h" 66 #include "modules/speech/SpeechRecognitionError.h" 67 #include "platform/Cursor.h" 68 #include "platform/FileMetadata.h" 69 #include "platform/FileSystemType.h" 70 #include "platform/PlatformMouseEvent.h" 71 #include "platform/fonts/FontDescription.h" 72 #include "platform/fonts/FontSmoothingMode.h" 73 #include "platform/graphics/filters/FilterOperation.h" 74 #include "platform/graphics/media/MediaPlayer.h" 75 #include "platform/mediastream/MediaStreamSource.h" 76 #include "platform/network/ContentSecurityPolicyParsers.h" 77 #include "platform/network/ResourceLoadPriority.h" 78 #include "platform/network/ResourceResponse.h" 79 #include "platform/text/TextChecking.h" 80 #include "platform/text/TextDecoration.h" 81 #include "platform/weborigin/ReferrerPolicy.h" 82 #include "public/platform/WebApplicationCacheHost.h" 83 #include "public/platform/WebClipboard.h" 84 #include "public/platform/WebCursorInfo.h" 85 #include "public/platform/WebFileError.h" 86 #include "public/platform/WebFileInfo.h" 87 #include "public/platform/WebFileSystem.h" 88 #include "public/platform/WebIDBCursor.h" 89 #include "public/platform/WebIDBDatabase.h" 90 #include "public/platform/WebIDBDatabaseException.h" 91 #include "public/platform/WebIDBFactory.h" 92 #include "public/platform/WebIDBKey.h" 93 #include "public/platform/WebIDBKeyPath.h" 94 #include "public/platform/WebIDBMetadata.h" 95 #include "public/platform/WebIDBTypes.h" 96 #include "public/platform/WebMediaPlayer.h" 97 #include "public/platform/WebMediaPlayerClient.h" 98 #include "public/platform/WebMediaSource.h" 99 #include "public/platform/WebMediaStreamSource.h" 100 #include "public/platform/WebReferrerPolicy.h" 101 #include "public/platform/WebScrollbar.h" 102 #include "public/platform/WebScrollbarBehavior.h" 103 #include "public/platform/WebSelectionBound.h" 104 #include "public/platform/WebStorageQuotaError.h" 105 #include "public/platform/WebStorageQuotaType.h" 106 #include "public/platform/WebURLRequest.h" 107 #include "public/platform/WebURLResponse.h" 108 #include "public/web/WebAXEnums.h" 109 #include "public/web/WebAXObject.h" 110 #include "public/web/WebConsoleMessage.h" 111 #include "public/web/WebContentSecurityPolicy.h" 112 #include "public/web/WebFontDescription.h" 113 #include "public/web/WebFormElement.h" 114 #include "public/web/WebGeolocationError.h" 115 #include "public/web/WebGeolocationPosition.h" 116 #include "public/web/WebHistoryCommitType.h" 117 #include "public/web/WebHistoryItem.h" 118 #include "public/web/WebIconURL.h" 119 #include "public/web/WebInputElement.h" 120 #include "public/web/WebInputEvent.h" 121 #include "public/web/WebNavigationPolicy.h" 122 #include "public/web/WebNavigatorContentUtilsClient.h" 123 #include "public/web/WebNotificationPresenter.h" 124 #include "public/web/WebPageVisibilityState.h" 125 #include "public/web/WebSerializedScriptValueVersion.h" 126 #include "public/web/WebSettings.h" 127 #include "public/web/WebSpeechRecognizerClient.h" 128 #include "public/web/WebTextAffinity.h" 129 #include "public/web/WebTextCheckingResult.h" 130 #include "public/web/WebTextCheckingType.h" 131 #include "public/web/WebTextDecorationType.h" 132 #include "public/web/WebTouchAction.h" 133 #include "public/web/WebView.h" 134 #include "wtf/Assertions.h" 135 #include "wtf/text/StringImpl.h" 136 137 namespace blink { 138 139 #define COMPILE_ASSERT_MATCHING_ENUM(public_name, core_name) \ 140 COMPILE_ASSERT(int(public_name) == int(core_name), mismatching_enums) 141 142 #define COMPILE_ASSERT_MATCHING_UINT64(public_name, core_name) \ 143 COMPILE_ASSERT(public_name == core_name, mismatching_enums) 144 145 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventActiveDescendantChanged, AXObjectCache::AXActiveDescendantChanged); 146 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventAlert, AXObjectCache::AXAlert); 147 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventAriaAttributeChanged, AXObjectCache::AXAriaAttributeChanged); 148 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventAutocorrectionOccured, AXObjectCache::AXAutocorrectionOccured); 149 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventBlur, AXObjectCache::AXBlur); 150 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventCheckedStateChanged, AXObjectCache::AXCheckedStateChanged); 151 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventChildrenChanged, AXObjectCache::AXChildrenChanged); 152 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventFocus, AXObjectCache::AXFocusedUIElementChanged); 153 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventHide, AXObjectCache::AXHide); 154 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventInvalidStatusChanged, AXObjectCache::AXInvalidStatusChanged); 155 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventLayoutComplete, AXObjectCache::AXLayoutComplete); 156 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventLiveRegionChanged, AXObjectCache::AXLiveRegionChanged); 157 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventLoadComplete, AXObjectCache::AXLoadComplete); 158 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventLocationChanged, AXObjectCache::AXLocationChanged); 159 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventMenuListItemSelected, AXObjectCache::AXMenuListItemSelected); 160 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventMenuListValueChanged, AXObjectCache::AXMenuListValueChanged); 161 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventRowCollapsed, AXObjectCache::AXRowCollapsed); 162 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventRowCountChanged, AXObjectCache::AXRowCountChanged); 163 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventRowExpanded, AXObjectCache::AXRowExpanded); 164 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventScrollPositionChanged, AXObjectCache::AXScrollPositionChanged); 165 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventScrolledToAnchor, AXObjectCache::AXScrolledToAnchor); 166 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventSelectedChildrenChanged, AXObjectCache::AXSelectedChildrenChanged); 167 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventSelectedTextChanged, AXObjectCache::AXSelectedTextChanged); 168 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventShow, AXObjectCache::AXShow); 169 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventTextChanged, AXObjectCache::AXTextChanged); 170 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventTextInserted, AXObjectCache::AXTextInserted); 171 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventTextRemoved, AXObjectCache::AXTextRemoved); 172 COMPILE_ASSERT_MATCHING_ENUM(WebAXEventValueChanged, AXObjectCache::AXValueChanged); 173 174 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleAlertDialog, AlertDialogRole); 175 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleAlert, AlertRole); 176 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleAnnotation, AnnotationRole); 177 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleApplication, ApplicationRole); 178 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleArticle, ArticleRole); 179 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleBanner, BannerRole); 180 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleBrowser, BrowserRole); 181 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleBusyIndicator, BusyIndicatorRole); 182 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleButton, ButtonRole); 183 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleCanvas, CanvasRole); 184 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleCell, CellRole); 185 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleCheckBox, CheckBoxRole); 186 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleColorWell, ColorWellRole); 187 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleColumnHeader, ColumnHeaderRole); 188 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleColumn, ColumnRole); 189 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleComboBox, ComboBoxRole); 190 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleComplementary, ComplementaryRole); 191 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleContentInfo, ContentInfoRole); 192 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDefinition, DefinitionRole); 193 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDescriptionListDetail, DescriptionListDetailRole); 194 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDescriptionListTerm, DescriptionListTermRole); 195 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDetails, DetailsRole); 196 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDialog, DialogRole); 197 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDirectory, DirectoryRole); 198 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDisclosureTriangle, DisclosureTriangleRole); 199 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDiv, DivRole); 200 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDocument, DocumentRole); 201 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleDrawer, DrawerRole); 202 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleEditableText, EditableTextRole); 203 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleEmbeddedObject, EmbeddedObjectRole); 204 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleFigcaption, FigcaptionRole); 205 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleFigure, FigureRole); 206 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleFooter, FooterRole); 207 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleForm, FormRole); 208 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleGrid, GridRole); 209 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleGroup, GroupRole); 210 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleGrowArea, GrowAreaRole); 211 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleHeading, HeadingRole); 212 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleHelpTag, HelpTagRole); 213 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleIframe, IframeRole); 214 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleIgnored, IgnoredRole); 215 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleImageMapLink, ImageMapLinkRole); 216 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleImageMap, ImageMapRole); 217 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleImage, ImageRole); 218 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleIncrementor, IncrementorRole); 219 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleInlineTextBox, InlineTextBoxRole); 220 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleLabel, LabelRole); 221 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleLegend, LegendRole); 222 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleLink, LinkRole); 223 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleListBoxOption, ListBoxOptionRole); 224 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleListBox, ListBoxRole); 225 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleListItem, ListItemRole); 226 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleListMarker, ListMarkerRole); 227 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleList, ListRole); 228 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleLog, LogRole); 229 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMain, MainRole); 230 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMarquee, MarqueeRole); 231 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMathElement, MathElementRole); 232 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMath, MathRole); 233 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMatte, MatteRole); 234 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenuBar, MenuBarRole); 235 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenuButton, MenuButtonRole); 236 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenuItem, MenuItemRole); 237 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenuListOption, MenuListOptionRole); 238 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenuListPopup, MenuListPopupRole); 239 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleMenu, MenuRole); 240 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleNavigation, NavigationRole); 241 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleNone, NoneRole); 242 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleNote, NoteRole); 243 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleOutline, OutlineRole); 244 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleParagraph, ParagraphRole); 245 COMPILE_ASSERT_MATCHING_ENUM(WebAXRolePopUpButton, PopUpButtonRole); 246 COMPILE_ASSERT_MATCHING_ENUM(WebAXRolePresentational, PresentationalRole); 247 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleProgressIndicator, ProgressIndicatorRole); 248 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRadioButton, RadioButtonRole); 249 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRadioGroup, RadioGroupRole); 250 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRegion, RegionRole); 251 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRootWebArea, RootWebAreaRole); 252 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRowHeader, RowHeaderRole); 253 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRow, RowRole); 254 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRulerMarker, RulerMarkerRole); 255 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleRuler, RulerRole); 256 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSVGRoot, SVGRootRole); 257 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleScrollArea, ScrollAreaRole); 258 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleScrollBar, ScrollBarRole); 259 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSeamlessWebArea, SeamlessWebAreaRole); 260 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSearch, SearchRole); 261 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSheet, SheetRole); 262 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSlider, SliderRole); 263 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSliderThumb, SliderThumbRole); 264 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSpinButtonPart, SpinButtonPartRole); 265 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSpinButton, SpinButtonRole); 266 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSplitGroup, SplitGroupRole); 267 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSplitter, SplitterRole); 268 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleStaticText, StaticTextRole); 269 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleStatus, StatusRole); 270 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleSystemWide, SystemWideRole); 271 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTabGroup, TabGroupRole); 272 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTabList, TabListRole); 273 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTabPanel, TabPanelRole); 274 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTab, TabRole); 275 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTableHeaderContainer, TableHeaderContainerRole); 276 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTable, TableRole); 277 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTextArea, TextAreaRole); 278 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTextField, TextFieldRole); 279 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTimer, TimerRole); 280 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleToggleButton, ToggleButtonRole); 281 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleToolbar, ToolbarRole); 282 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTreeGrid, TreeGridRole); 283 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTreeItem, TreeItemRole); 284 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleTree, TreeRole); 285 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleUnknown, UnknownRole); 286 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleUserInterfaceTooltip, UserInterfaceTooltipRole); 287 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleValueIndicator, ValueIndicatorRole); 288 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleWebArea, WebAreaRole); 289 COMPILE_ASSERT_MATCHING_ENUM(WebAXRoleWindow, WindowRole); 290 291 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateBusy, AXBusyState); 292 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateChecked, AXCheckedState); 293 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateCollapsed, AXCollapsedState); 294 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateEnabled, AXEnabledState); 295 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateExpanded, AXExpandedState); 296 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateFocusable, AXFocusableState); 297 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateFocused, AXFocusedState); 298 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateHaspopup, AXHaspopupState); 299 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateHovered, AXHoveredState); 300 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateIndeterminate, AXIndeterminateState); 301 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateInvisible, AXInvisibleState); 302 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateLinked, AXLinkedState); 303 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateMultiselectable, AXMultiselectableState); 304 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateOffscreen, AXOffscreenState); 305 COMPILE_ASSERT_MATCHING_ENUM(WebAXStatePressed, AXPressedState); 306 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateProtected, AXProtectedState); 307 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateReadonly, AXReadonlyState); 308 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateRequired, AXRequiredState); 309 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateSelectable, AXSelectableState); 310 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateSelected, AXSelectedState); 311 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateVertical, AXVerticalState); 312 COMPILE_ASSERT_MATCHING_ENUM(WebAXStateVisited, AXVisitedState); 313 314 COMPILE_ASSERT_MATCHING_ENUM(WebAXTextDirectionLR, AccessibilityTextDirectionLeftToRight); 315 COMPILE_ASSERT_MATCHING_ENUM(WebAXTextDirectionRL, AccessibilityTextDirectionRightToLeft); 316 COMPILE_ASSERT_MATCHING_ENUM(WebAXTextDirectionTB, AccessibilityTextDirectionTopToBottom); 317 COMPILE_ASSERT_MATCHING_ENUM(WebAXTextDirectionBT, AccessibilityTextDirectionBottomToTop); 318 319 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Uncached, ApplicationCacheHost::UNCACHED); 320 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Idle, ApplicationCacheHost::IDLE); 321 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Checking, ApplicationCacheHost::CHECKING); 322 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Downloading, ApplicationCacheHost::DOWNLOADING); 323 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::UpdateReady, ApplicationCacheHost::UPDATEREADY); 324 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Obsolete, ApplicationCacheHost::OBSOLETE); 325 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::CheckingEvent, ApplicationCacheHost::CHECKING_EVENT); 326 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ErrorEvent, ApplicationCacheHost::ERROR_EVENT); 327 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::NoUpdateEvent, ApplicationCacheHost::NOUPDATE_EVENT); 328 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::DownloadingEvent, ApplicationCacheHost::DOWNLOADING_EVENT); 329 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ProgressEvent, ApplicationCacheHost::PROGRESS_EVENT); 330 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::UpdateReadyEvent, ApplicationCacheHost::UPDATEREADY_EVENT); 331 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::CachedEvent, ApplicationCacheHost::CACHED_EVENT); 332 COMPILE_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ObsoleteEvent, ApplicationCacheHost::OBSOLETE_EVENT); 333 334 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer); 335 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCross, Cursor::Cross); 336 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeHand, Cursor::Hand); 337 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeIBeam, Cursor::IBeam); 338 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWait, Cursor::Wait); 339 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeHelp, Cursor::Help); 340 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastResize, Cursor::EastResize); 341 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthResize, Cursor::NorthResize); 342 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastResize, Cursor::NorthEastResize); 343 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestResize, Cursor::NorthWestResize); 344 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthResize, Cursor::SouthResize); 345 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthEastResize, Cursor::SouthEastResize); 346 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthWestResize, Cursor::SouthWestResize); 347 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWestResize, Cursor::WestResize); 348 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthSouthResize, Cursor::NorthSouthResize); 349 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastWestResize, Cursor::EastWestResize); 350 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastSouthWestResize, Cursor::NorthEastSouthWestResize); 351 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestSouthEastResize, Cursor::NorthWestSouthEastResize); 352 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeColumnResize, Cursor::ColumnResize); 353 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeRowResize, Cursor::RowResize); 354 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeMiddlePanning, Cursor::MiddlePanning); 355 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastPanning, Cursor::EastPanning); 356 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthPanning, Cursor::NorthPanning); 357 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastPanning, Cursor::NorthEastPanning); 358 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestPanning, Cursor::NorthWestPanning); 359 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthPanning, Cursor::SouthPanning); 360 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthEastPanning, Cursor::SouthEastPanning); 361 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthWestPanning, Cursor::SouthWestPanning); 362 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWestPanning, Cursor::WestPanning); 363 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeMove, Cursor::Move); 364 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeVerticalText, Cursor::VerticalText); 365 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCell, Cursor::Cell); 366 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeContextMenu, Cursor::ContextMenu); 367 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeAlias, Cursor::Alias); 368 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeProgress, Cursor::Progress); 369 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNoDrop, Cursor::NoDrop); 370 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCopy, Cursor::Copy); 371 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNone, Cursor::None); 372 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNotAllowed, Cursor::NotAllowed); 373 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomIn, Cursor::ZoomIn); 374 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomOut, Cursor::ZoomOut); 375 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrab, Cursor::Grab); 376 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrabbing, Cursor::Grabbing); 377 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCustom, Cursor::Custom); 378 379 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyNone, FontDescription::NoFamily); 380 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyStandard, FontDescription::StandardFamily); 381 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySerif, FontDescription::SerifFamily); 382 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySansSerif, FontDescription::SansSerifFamily); 383 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyMonospace, FontDescription::MonospaceFamily); 384 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyCursive, FontDescription::CursiveFamily); 385 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyFantasy, FontDescription::FantasyFamily); 386 387 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingAuto, AutoSmoothing); 388 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingNone, NoSmoothing); 389 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingGrayscale, Antialiased); 390 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingSubpixel, SubpixelAntialiased); 391 392 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight100, FontWeight100); 393 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight200, FontWeight200); 394 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight300, FontWeight300); 395 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight400, FontWeight400); 396 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight500, FontWeight500); 397 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight600, FontWeight600); 398 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight700, FontWeight700); 399 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800); 400 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900); 401 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal); 402 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold); 403 404 COMPILE_ASSERT_MATCHING_ENUM(WebIconURL::TypeInvalid, InvalidIcon); 405 COMPILE_ASSERT_MATCHING_ENUM(WebIconURL::TypeFavicon, Favicon); 406 COMPILE_ASSERT_MATCHING_ENUM(WebIconURL::TypeTouch, TouchIcon); 407 COMPILE_ASSERT_MATCHING_ENUM(WebIconURL::TypeTouchPrecomposed, TouchPrecomposedIcon); 408 409 COMPILE_ASSERT_MATCHING_ENUM(WebNode::ElementNode, Node::ELEMENT_NODE); 410 COMPILE_ASSERT_MATCHING_ENUM(WebNode::AttributeNode, Node::ATTRIBUTE_NODE); 411 COMPILE_ASSERT_MATCHING_ENUM(WebNode::TextNode, Node::TEXT_NODE); 412 COMPILE_ASSERT_MATCHING_ENUM(WebNode::CDataSectionNode, Node::CDATA_SECTION_NODE); 413 COMPILE_ASSERT_MATCHING_ENUM(WebNode::ProcessingInstructionsNode, Node::PROCESSING_INSTRUCTION_NODE); 414 COMPILE_ASSERT_MATCHING_ENUM(WebNode::CommentNode, Node::COMMENT_NODE); 415 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentNode, Node::DOCUMENT_NODE); 416 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentTypeNode, Node::DOCUMENT_TYPE_NODE); 417 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentFragmentNode, Node::DOCUMENT_FRAGMENT_NODE); 418 419 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveNothing, HTMLMediaElement::HAVE_NOTHING); 420 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveMetadata, HTMLMediaElement::HAVE_METADATA); 421 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveCurrentData, HTMLMediaElement::HAVE_CURRENT_DATA); 422 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveFutureData, HTMLMediaElement::HAVE_FUTURE_DATA); 423 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveEnoughData, HTMLMediaElement::HAVE_ENOUGH_DATA); 424 425 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::PreloadNone, MediaPlayer::None); 426 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::PreloadMetaData, MediaPlayer::MetaData); 427 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::PreloadAuto, MediaPlayer::Auto); 428 429 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonNone, NoButton); 430 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonLeft, LeftButton); 431 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonMiddle, MiddleButton); 432 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonRight, RightButton); 433 434 COMPILE_ASSERT_MATCHING_ENUM(WebNotificationPresenter::PermissionAllowed, NotificationClient::PermissionAllowed); 435 COMPILE_ASSERT_MATCHING_ENUM(WebNotificationPresenter::PermissionNotAllowed, NotificationClient::PermissionNotAllowed); 436 COMPILE_ASSERT_MATCHING_ENUM(WebNotificationPresenter::PermissionDenied, NotificationClient::PermissionDenied); 437 438 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::Horizontal, HorizontalScrollbar); 439 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::Vertical, VerticalScrollbar); 440 441 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByLine, ScrollByLine); 442 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByPage, ScrollByPage); 443 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByDocument, ScrollByDocument); 444 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByPixel, ScrollByPixel); 445 446 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::RegularScrollbar, RegularScrollbar); 447 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::SmallScrollbar, SmallScrollbar); 448 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::NoPart, NoPart); 449 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::BackButtonStartPart, BackButtonStartPart); 450 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardButtonStartPart, ForwardButtonStartPart); 451 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::BackTrackPart, BackTrackPart); 452 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ThumbPart, ThumbPart); 453 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardTrackPart, ForwardTrackPart); 454 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::BackButtonEndPart, BackButtonEndPart); 455 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardButtonEndPart, ForwardButtonEndPart); 456 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarBGPart, ScrollbarBGPart); 457 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::TrackBGPart, TrackBGPart); 458 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::AllParts, AllParts); 459 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleDefault, ScrollbarOverlayStyleDefault); 460 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleDark, ScrollbarOverlayStyleDark); 461 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleLight, ScrollbarOverlayStyleLight); 462 463 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonNone, NoButton); 464 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonLeft, LeftButton); 465 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonMiddle, MiddleButton); 466 COMPILE_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonRight, RightButton); 467 468 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorMac, EditingMacBehavior); 469 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorWin, EditingWindowsBehavior); 470 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorUnix, EditingUnixBehavior); 471 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorAndroid, EditingAndroidBehavior); 472 473 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityUpstream, UPSTREAM); 474 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityDownstream, DOWNSTREAM); 475 476 COMPILE_ASSERT_MATCHING_ENUM(WebView::InjectStyleInAllFrames, InjectStyleInAllFrames); 477 COMPILE_ASSERT_MATCHING_ENUM(WebView::InjectStyleInTopFrameOnly, InjectStyleInTopFrameOnly); 478 479 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionUnknownError, UnknownError); 480 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionConstraintError, ConstraintError); 481 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionDataError, DataError); 482 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionVersionError, VersionError); 483 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionAbortError, AbortError); 484 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionQuotaError, QuotaExceededError); 485 COMPILE_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionTimeoutError, TimeoutError); 486 487 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeInvalid, IDBKey::InvalidType); 488 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeArray, IDBKey::ArrayType); 489 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeBinary, IDBKey::BinaryType); 490 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeString, IDBKey::StringType); 491 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeDate, IDBKey::DateType); 492 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeNumber, IDBKey::NumberType); 493 494 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeNull, IDBKeyPath::NullType); 495 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeString, IDBKeyPath::StringType); 496 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeArray, IDBKeyPath::ArrayType); 497 498 COMPILE_ASSERT_MATCHING_ENUM(WebIDBMetadata::NoIntVersion, IDBDatabaseMetadata::NoIntVersion); 499 500 COMPILE_ASSERT_MATCHING_ENUM(WebFileSystem::TypeTemporary, FileSystemTypeTemporary); 501 COMPILE_ASSERT_MATCHING_ENUM(WebFileSystem::TypePersistent, FileSystemTypePersistent); 502 COMPILE_ASSERT_MATCHING_ENUM(WebFileSystem::TypeExternal, FileSystemTypeExternal); 503 COMPILE_ASSERT_MATCHING_ENUM(WebFileSystem::TypeIsolated, FileSystemTypeIsolated); 504 COMPILE_ASSERT_MATCHING_ENUM(WebFileInfo::TypeUnknown, FileMetadata::TypeUnknown); 505 COMPILE_ASSERT_MATCHING_ENUM(WebFileInfo::TypeFile, FileMetadata::TypeFile); 506 COMPILE_ASSERT_MATCHING_ENUM(WebFileInfo::TypeDirectory, FileMetadata::TypeDirectory); 507 508 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorNotFound, FileError::NOT_FOUND_ERR); 509 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorSecurity, FileError::SECURITY_ERR); 510 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorAbort, FileError::ABORT_ERR); 511 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorNotReadable, FileError::NOT_READABLE_ERR); 512 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorEncoding, FileError::ENCODING_ERR); 513 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorNoModificationAllowed, FileError::NO_MODIFICATION_ALLOWED_ERR); 514 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorInvalidState, FileError::INVALID_STATE_ERR); 515 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorSyntax, FileError::SYNTAX_ERR); 516 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorInvalidModification, FileError::INVALID_MODIFICATION_ERR); 517 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorQuotaExceeded, FileError::QUOTA_EXCEEDED_ERR); 518 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorTypeMismatch, FileError::TYPE_MISMATCH_ERR); 519 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorPathExists, FileError::PATH_EXISTS_ERR); 520 521 COMPILE_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPermissionDenied, GeolocationError::PermissionDenied); 522 COMPILE_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPositionUnavailable, GeolocationError::PositionUnavailable); 523 524 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelling); 525 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar); 526 527 // TODO(rouslan): Remove these comparisons between text-checking and text-decoration enum values after removing the 528 // deprecated constructor WebTextCheckingResult(WebTextCheckingType). 529 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpelling); 530 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGrammar); 531 532 COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeSpelling, TextDecorationTypeSpelling); 533 COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeGrammar, TextDecorationTypeGrammar); 534 COMPILE_ASSERT_MATCHING_ENUM(WebTextDecorationTypeInvisibleSpellcheck, TextDecorationTypeInvisibleSpellcheck); 535 536 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorNotSupported, NotSupportedError); 537 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidModification, InvalidModificationError); 538 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidAccess, InvalidAccessError); 539 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorAbort, AbortError); 540 541 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaTypeTemporary, DeprecatedStorageQuota::Temporary); 542 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaTypePersistent, DeprecatedStorageQuota::Persistent); 543 544 COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStateVisible, PageVisibilityStateVisible); 545 COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStateHidden, PageVisibilityStateHidden); 546 COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStatePrerender, PageVisibilityStatePrerender); 547 548 COMPILE_ASSERT_MATCHING_ENUM(WebMediaStreamSource::TypeAudio, MediaStreamSource::TypeAudio); 549 COMPILE_ASSERT_MATCHING_ENUM(WebMediaStreamSource::TypeVideo, MediaStreamSource::TypeVideo); 550 COMPILE_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateLive, MediaStreamSource::ReadyStateLive); 551 COMPILE_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateMuted, MediaStreamSource::ReadyStateMuted); 552 COMPILE_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateEnded, MediaStreamSource::ReadyStateEnded); 553 554 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::OtherError, SpeechRecognitionError::ErrorCodeOther); 555 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NoSpeechError, SpeechRecognitionError::ErrorCodeNoSpeech); 556 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::AbortedError, SpeechRecognitionError::ErrorCodeAborted); 557 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::AudioCaptureError, SpeechRecognitionError::ErrorCodeAudioCapture); 558 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NetworkError, SpeechRecognitionError::ErrorCodeNetwork); 559 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NotAllowedError, SpeechRecognitionError::ErrorCodeNotAllowed); 560 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::ServiceNotAllowedError, SpeechRecognitionError::ErrorCodeServiceNotAllowed); 561 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::BadGrammarError, SpeechRecognitionError::ErrorCodeBadGrammar); 562 COMPILE_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::LanguageNotSupportedError, SpeechRecognitionError::ErrorCodeLanguageNotSupported); 563 564 COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyAlways, ReferrerPolicyAlways); 565 COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyDefault, ReferrerPolicyDefault); 566 COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyNever, ReferrerPolicyNever); 567 COMPILE_ASSERT_MATCHING_ENUM(WebReferrerPolicyOrigin, ReferrerPolicyOrigin); 568 569 COMPILE_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeReport, ContentSecurityPolicyHeaderTypeReport); 570 COMPILE_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeEnforce, ContentSecurityPolicyHeaderTypeEnforce); 571 572 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::Unknown, ResourceResponse::Unknown); 573 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_0_9, ResourceResponse::HTTP_0_9); 574 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_0, ResourceResponse::HTTP_1_0); 575 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_1, ResourceResponse::HTTP_1_1); 576 577 COMPILE_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultSuccess, HTMLFormElement::AutocompleteResultSuccess); 578 COMPILE_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorDisabled, HTMLFormElement::AutocompleteResultErrorDisabled); 579 COMPILE_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorCancel, HTMLFormElement::AutocompleteResultErrorCancel); 580 COMPILE_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorInvalid, HTMLFormElement::AutocompleteResultErrorInvalid); 581 582 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityUnresolved, ResourceLoadPriorityUnresolved); 583 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryLow, ResourceLoadPriorityVeryLow); 584 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityLow, ResourceLoadPriorityLow); 585 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityMedium, ResourceLoadPriorityMedium); 586 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityHigh, ResourceLoadPriorityHigh); 587 COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryHigh, ResourceLoadPriorityVeryHigh); 588 589 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyIgnore, NavigationPolicyIgnore); 590 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyDownload, NavigationPolicyDownload); 591 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyCurrentTab, NavigationPolicyCurrentTab); 592 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewBackgroundTab, NavigationPolicyNewBackgroundTab); 593 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewForegroundTab, NavigationPolicyNewForegroundTab); 594 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewWindow, NavigationPolicyNewWindow); 595 COMPILE_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewPopup, NavigationPolicyNewPopup); 596 597 COMPILE_ASSERT_MATCHING_ENUM(WebStandardCommit, StandardCommit); 598 COMPILE_ASSERT_MATCHING_ENUM(WebBackForwardCommit, BackForwardCommit); 599 COMPILE_ASSERT_MATCHING_ENUM(WebInitialCommitInChildFrame, InitialCommitInChildFrame); 600 COMPILE_ASSERT_MATCHING_ENUM(WebHistoryInertCommit, HistoryInertCommit); 601 602 COMPILE_ASSERT_MATCHING_ENUM(WebHistorySameDocumentLoad, HistorySameDocumentLoad); 603 COMPILE_ASSERT_MATCHING_ENUM(WebHistoryDifferentDocumentLoad, HistoryDifferentDocumentLoad); 604 605 COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelDebug, DebugMessageLevel); 606 COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelLog, LogMessageLevel); 607 COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelWarning, WarningMessageLevel); 608 COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelError, ErrorMessageLevel); 609 COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelInfo, InfoMessageLevel); 610 611 COMPILE_ASSERT_MATCHING_ENUM(WebCustomHandlersNew, NavigatorContentUtilsClient::CustomHandlersNew); 612 COMPILE_ASSERT_MATCHING_ENUM(WebCustomHandlersRegistered, NavigatorContentUtilsClient::CustomHandlersRegistered); 613 COMPILE_ASSERT_MATCHING_ENUM(WebCustomHandlersDeclined, NavigatorContentUtilsClient::CustomHandlersDeclined); 614 615 COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionNone, TouchActionNone); 616 COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionAuto, TouchActionAuto); 617 COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionPanX, TouchActionPanX); 618 COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionPanY, TouchActionPanY); 619 COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionPinchZoom, TouchActionPinchZoom); 620 621 COMPILE_ASSERT_MATCHING_ENUM(WebSelectionBound::Caret, CompositedSelectionBound::Caret); 622 COMPILE_ASSERT_MATCHING_ENUM(WebSelectionBound::SelectionLeft, CompositedSelectionBound::SelectionLeft); 623 COMPILE_ASSERT_MATCHING_ENUM(WebSelectionBound::SelectionRight, CompositedSelectionBound::SelectionRight); 624 625 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsOff, V8CacheOptionsOff); 626 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsParse, V8CacheOptionsParse); 627 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode); 628 629 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone); 630 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse); 631 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine); 632 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone); 633 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand); 634 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover); 635 636 COMPILE_ASSERT_MATCHING_UINT64(kSerializedScriptValueVersion, SerializedScriptValue::wireFormatVersion); 637 638 } // namespace blink 639