Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / AssertMatchingEnums.cpp
bloba77917db62e08f316b7a863044c7f61d07baae8c
1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
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.
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.
31 // Use this file to assert that various public API enum values continue
32 // matching blink defined enum values.
34 #include "config.h"
36 #include "bindings/core/v8/SerializedScriptValue.h"
37 #include "core/dom/AXObjectCache.h"
38 #include "core/dom/ExceptionCode.h"
39 #include "core/dom/IconURL.h"
40 #include "core/editing/SelectionType.h"
41 #include "core/editing/TextAffinity.h"
42 #include "core/editing/markers/DocumentMarker.h"
43 #include "core/fileapi/FileError.h"
44 #include "core/frame/Frame.h"
45 #include "core/frame/Settings.h"
46 #include "core/frame/csp/ContentSecurityPolicy.h"
47 #include "core/html/HTMLFormElement.h"
48 #include "core/html/HTMLInputElement.h"
49 #include "core/html/HTMLMediaElement.h"
50 #include "core/html/shadow/TextControlInnerElements.h"
51 #include "core/layout/compositing/CompositedSelectionBound.h"
52 #include "core/loader/FrameLoaderClient.h"
53 #include "core/loader/FrameLoaderTypes.h"
54 #include "core/loader/NavigationPolicy.h"
55 #include "core/loader/appcache/ApplicationCacheHost.h"
56 #include "core/page/PageVisibilityState.h"
57 #include "core/style/ComputedStyleConstants.h"
58 #include "modules/accessibility/AXObject.h"
59 #include "modules/geolocation/GeolocationError.h"
60 #include "modules/geolocation/GeolocationPosition.h"
61 #include "modules/indexeddb/IDBKey.h"
62 #include "modules/indexeddb/IDBKeyPath.h"
63 #include "modules/indexeddb/IDBMetadata.h"
64 #include "modules/indexeddb/IndexedDB.h"
65 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
66 #include "modules/quota/DeprecatedStorageQuota.h"
67 #include "modules/speech/SpeechRecognitionError.h"
68 #include "platform/Cursor.h"
69 #include "platform/FileMetadata.h"
70 #include "platform/FileSystemType.h"
71 #include "platform/PlatformMouseEvent.h"
72 #include "platform/fonts/FontDescription.h"
73 #include "platform/fonts/FontSmoothingMode.h"
74 #include "platform/graphics/filters/FilterOperation.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/scroll/ScrollTypes.h"
80 #include "platform/text/TextChecking.h"
81 #include "platform/text/TextDecoration.h"
82 #include "platform/weborigin/ReferrerPolicy.h"
83 #include "platform/weborigin/SchemeRegistry.h"
84 #include "public/platform/WebApplicationCacheHost.h"
85 #include "public/platform/WebClipboard.h"
86 #include "public/platform/WebCursorInfo.h"
87 #include "public/platform/WebFileError.h"
88 #include "public/platform/WebFileInfo.h"
89 #include "public/platform/WebFileSystem.h"
90 #include "public/platform/WebHistoryScrollRestorationType.h"
91 #include "public/platform/WebMediaPlayer.h"
92 #include "public/platform/WebMediaPlayerClient.h"
93 #include "public/platform/WebMediaSource.h"
94 #include "public/platform/WebMediaStreamSource.h"
95 #include "public/platform/WebPageVisibilityState.h"
96 #include "public/platform/WebReferrerPolicy.h"
97 #include "public/platform/WebScrollbar.h"
98 #include "public/platform/WebScrollbarBehavior.h"
99 #include "public/platform/WebSelectionBound.h"
100 #include "public/platform/WebStorageQuotaError.h"
101 #include "public/platform/WebStorageQuotaType.h"
102 #include "public/platform/WebURLRequest.h"
103 #include "public/platform/WebURLResponse.h"
104 #include "public/platform/modules/indexeddb/WebIDBCursor.h"
105 #include "public/platform/modules/indexeddb/WebIDBDatabase.h"
106 #include "public/platform/modules/indexeddb/WebIDBDatabaseException.h"
107 #include "public/platform/modules/indexeddb/WebIDBFactory.h"
108 #include "public/platform/modules/indexeddb/WebIDBKey.h"
109 #include "public/platform/modules/indexeddb/WebIDBKeyPath.h"
110 #include "public/platform/modules/indexeddb/WebIDBMetadata.h"
111 #include "public/platform/modules/indexeddb/WebIDBTypes.h"
112 #include "public/web/WebAXEnums.h"
113 #include "public/web/WebAXObject.h"
114 #include "public/web/WebConsoleMessage.h"
115 #include "public/web/WebContentSecurityPolicy.h"
116 #include "public/web/WebFontDescription.h"
117 #include "public/web/WebFormElement.h"
118 #include "public/web/WebFrameClient.h"
119 #include "public/web/WebFrameLoadType.h"
120 #include "public/web/WebGeolocationError.h"
121 #include "public/web/WebGeolocationPosition.h"
122 #include "public/web/WebHistoryCommitType.h"
123 #include "public/web/WebHistoryItem.h"
124 #include "public/web/WebIconURL.h"
125 #include "public/web/WebInputElement.h"
126 #include "public/web/WebInputEvent.h"
127 #include "public/web/WebNavigationPolicy.h"
128 #include "public/web/WebNavigatorContentUtilsClient.h"
129 #include "public/web/WebRemoteFrameClient.h"
130 #include "public/web/WebSandboxFlags.h"
131 #include "public/web/WebSecurityPolicy.h"
132 #include "public/web/WebSelection.h"
133 #include "public/web/WebSerializedScriptValueVersion.h"
134 #include "public/web/WebSettings.h"
135 #include "public/web/WebSpeechRecognizerClient.h"
136 #include "public/web/WebTextAffinity.h"
137 #include "public/web/WebTextCheckingResult.h"
138 #include "public/web/WebTextCheckingType.h"
139 #include "public/web/WebTextDecorationType.h"
140 #include "public/web/WebTouchAction.h"
141 #include "public/web/WebView.h"
142 #include "wtf/Assertions.h"
143 #include "wtf/text/StringImpl.h"
145 namespace blink {
147 #define STATIC_ASSERT_MATCHING_ENUM(public_name, core_name) \
148 static_assert(int(public_name) == int(core_name), "mismatching enum values")
150 #define STATIC_ASSERT_MATCHING_UINT64(public_name, core_name) \
151 static_assert(public_name == core_name, "mismatching enum values")
153 STATIC_ASSERT_MATCHING_ENUM(WebAXEventActiveDescendantChanged, AXObjectCache::AXActiveDescendantChanged);
154 STATIC_ASSERT_MATCHING_ENUM(WebAXEventAlert, AXObjectCache::AXAlert);
155 STATIC_ASSERT_MATCHING_ENUM(WebAXEventAriaAttributeChanged, AXObjectCache::AXAriaAttributeChanged);
156 STATIC_ASSERT_MATCHING_ENUM(WebAXEventAutocorrectionOccured, AXObjectCache::AXAutocorrectionOccured);
157 STATIC_ASSERT_MATCHING_ENUM(WebAXEventBlur, AXObjectCache::AXBlur);
158 STATIC_ASSERT_MATCHING_ENUM(WebAXEventCheckedStateChanged, AXObjectCache::AXCheckedStateChanged);
159 STATIC_ASSERT_MATCHING_ENUM(WebAXEventChildrenChanged, AXObjectCache::AXChildrenChanged);
160 STATIC_ASSERT_MATCHING_ENUM(WebAXEventFocus, AXObjectCache::AXFocusedUIElementChanged);
161 STATIC_ASSERT_MATCHING_ENUM(WebAXEventHide, AXObjectCache::AXHide);
162 STATIC_ASSERT_MATCHING_ENUM(WebAXEventInvalidStatusChanged, AXObjectCache::AXInvalidStatusChanged);
163 STATIC_ASSERT_MATCHING_ENUM(WebAXEventLayoutComplete, AXObjectCache::AXLayoutComplete);
164 STATIC_ASSERT_MATCHING_ENUM(WebAXEventLiveRegionChanged, AXObjectCache::AXLiveRegionChanged);
165 STATIC_ASSERT_MATCHING_ENUM(WebAXEventLoadComplete, AXObjectCache::AXLoadComplete);
166 STATIC_ASSERT_MATCHING_ENUM(WebAXEventLocationChanged, AXObjectCache::AXLocationChanged);
167 STATIC_ASSERT_MATCHING_ENUM(WebAXEventMenuListItemSelected, AXObjectCache::AXMenuListItemSelected);
168 STATIC_ASSERT_MATCHING_ENUM(WebAXEventMenuListItemUnselected, AXObjectCache::AXMenuListItemUnselected);
169 STATIC_ASSERT_MATCHING_ENUM(WebAXEventMenuListValueChanged, AXObjectCache::AXMenuListValueChanged);
170 STATIC_ASSERT_MATCHING_ENUM(WebAXEventRowCollapsed, AXObjectCache::AXRowCollapsed);
171 STATIC_ASSERT_MATCHING_ENUM(WebAXEventRowCountChanged, AXObjectCache::AXRowCountChanged);
172 STATIC_ASSERT_MATCHING_ENUM(WebAXEventRowExpanded, AXObjectCache::AXRowExpanded);
173 STATIC_ASSERT_MATCHING_ENUM(WebAXEventScrollPositionChanged, AXObjectCache::AXScrollPositionChanged);
174 STATIC_ASSERT_MATCHING_ENUM(WebAXEventScrolledToAnchor, AXObjectCache::AXScrolledToAnchor);
175 STATIC_ASSERT_MATCHING_ENUM(WebAXEventSelectedChildrenChanged, AXObjectCache::AXSelectedChildrenChanged);
176 STATIC_ASSERT_MATCHING_ENUM(WebAXEventSelectedTextChanged, AXObjectCache::AXSelectedTextChanged);
177 STATIC_ASSERT_MATCHING_ENUM(WebAXEventShow, AXObjectCache::AXShow);
178 STATIC_ASSERT_MATCHING_ENUM(WebAXEventTextChanged, AXObjectCache::AXTextChanged);
179 STATIC_ASSERT_MATCHING_ENUM(WebAXEventTextInserted, AXObjectCache::AXTextInserted);
180 STATIC_ASSERT_MATCHING_ENUM(WebAXEventTextRemoved, AXObjectCache::AXTextRemoved);
181 STATIC_ASSERT_MATCHING_ENUM(WebAXEventValueChanged, AXObjectCache::AXValueChanged);
183 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleAlertDialog, AlertDialogRole);
184 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleAlert, AlertRole);
185 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleAnnotation, AnnotationRole);
186 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleApplication, ApplicationRole);
187 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleArticle, ArticleRole);
188 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleBanner, BannerRole);
189 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleBlockquote, BlockquoteRole);
190 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleBusyIndicator, BusyIndicatorRole);
191 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleButton, ButtonRole);
192 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleCanvas, CanvasRole);
193 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleCaption, CaptionRole);
194 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleCell, CellRole);
195 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleCheckBox, CheckBoxRole);
196 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleColorWell, ColorWellRole);
197 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleColumnHeader, ColumnHeaderRole);
198 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleColumn, ColumnRole);
199 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleComboBox, ComboBoxRole);
200 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleComplementary, ComplementaryRole);
201 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleContentInfo, ContentInfoRole);
202 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDate, DateRole);
203 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDateTime, DateTimeRole);
204 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDefinition, DefinitionRole);
205 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDescriptionListDetail, DescriptionListDetailRole);
206 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDescriptionList, DescriptionListRole);
207 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDescriptionListTerm, DescriptionListTermRole);
208 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDetails, DetailsRole);
209 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDialog, DialogRole);
210 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDirectory, DirectoryRole);
211 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDisclosureTriangle, DisclosureTriangleRole);
212 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDiv, DivRole);
213 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleDocument, DocumentRole);
214 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleEmbeddedObject, EmbeddedObjectRole);
215 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleFigcaption, FigcaptionRole);
216 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleFigure, FigureRole);
217 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleFooter, FooterRole);
218 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleForm, FormRole);
219 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleGrid, GridRole);
220 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleGroup, GroupRole);
221 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleHeading, HeadingRole);
222 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleIframe, IframeRole);
223 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleIframePresentational, IframePresentationalRole);
224 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleIgnored, IgnoredRole);
225 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleImageMapLink, ImageMapLinkRole);
226 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleImageMap, ImageMapRole);
227 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleImage, ImageRole);
228 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleInlineTextBox, InlineTextBoxRole);
229 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleInputTime, InputTimeRole);
230 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleLabel, LabelRole);
231 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleLegend, LegendRole);
232 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleLink, LinkRole);
233 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleListBoxOption, ListBoxOptionRole);
234 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleListBox, ListBoxRole);
235 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleListItem, ListItemRole);
236 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleListMarker, ListMarkerRole);
237 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleList, ListRole);
238 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleLog, LogRole);
239 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMain, MainRole);
240 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMark, MarkRole);
241 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMarquee, MarqueeRole);
242 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMath, MathRole);
243 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuBar, MenuBarRole);
244 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuButton, MenuButtonRole);
245 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuItem, MenuItemRole);
246 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuItemCheckBox, MenuItemCheckBoxRole);
247 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuItemRadio, MenuItemRadioRole);
248 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuListOption, MenuListOptionRole);
249 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenuListPopup, MenuListPopupRole);
250 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMenu, MenuRole);
251 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleMeter, MeterRole);
252 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleNavigation, NavigationRole);
253 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleNone, NoneRole);
254 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleNote, NoteRole);
255 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleOutline, OutlineRole);
256 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleParagraph, ParagraphRole);
257 STATIC_ASSERT_MATCHING_ENUM(WebAXRolePopUpButton, PopUpButtonRole);
258 STATIC_ASSERT_MATCHING_ENUM(WebAXRolePre, PreRole);
259 STATIC_ASSERT_MATCHING_ENUM(WebAXRolePresentational, PresentationalRole);
260 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleProgressIndicator, ProgressIndicatorRole);
261 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRadioButton, RadioButtonRole);
262 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRadioGroup, RadioGroupRole);
263 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRegion, RegionRole);
264 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRootWebArea, RootWebAreaRole);
265 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleLineBreak, LineBreakRole);
266 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRowHeader, RowHeaderRole);
267 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRow, RowRole);
268 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRuby, RubyRole);
269 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleRuler, RulerRole);
270 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSVGRoot, SVGRootRole);
271 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleScrollArea, ScrollAreaRole);
272 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleScrollBar, ScrollBarRole);
273 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSeamlessWebArea, SeamlessWebAreaRole);
274 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSearch, SearchRole);
275 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSearchBox, SearchBoxRole);
276 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSlider, SliderRole);
277 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSliderThumb, SliderThumbRole);
278 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSpinButtonPart, SpinButtonPartRole);
279 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSpinButton, SpinButtonRole);
280 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSplitter, SplitterRole);
281 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleStaticText, StaticTextRole);
282 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleStatus, StatusRole);
283 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleSwitch, SwitchRole);
284 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTabGroup, TabGroupRole);
285 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTabList, TabListRole);
286 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTabPanel, TabPanelRole);
287 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTab, TabRole);
288 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTableHeaderContainer, TableHeaderContainerRole);
289 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTable, TableRole);
290 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTextField, TextFieldRole);
291 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTime, TimeRole);
292 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTimer, TimerRole);
293 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleToggleButton, ToggleButtonRole);
294 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleToolbar, ToolbarRole);
295 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTreeGrid, TreeGridRole);
296 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTreeItem, TreeItemRole);
297 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleTree, TreeRole);
298 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleUnknown, UnknownRole);
299 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleUserInterfaceTooltip, UserInterfaceTooltipRole);
300 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleWebArea, WebAreaRole);
301 STATIC_ASSERT_MATCHING_ENUM(WebAXRoleWindow, WindowRole);
303 STATIC_ASSERT_MATCHING_ENUM(WebAXStateBusy, AXBusyState);
304 STATIC_ASSERT_MATCHING_ENUM(WebAXStateChecked, AXCheckedState);
305 STATIC_ASSERT_MATCHING_ENUM(WebAXStateEnabled, AXEnabledState);
306 STATIC_ASSERT_MATCHING_ENUM(WebAXStateExpanded, AXExpandedState);
307 STATIC_ASSERT_MATCHING_ENUM(WebAXStateFocusable, AXFocusableState);
308 STATIC_ASSERT_MATCHING_ENUM(WebAXStateFocused, AXFocusedState);
309 STATIC_ASSERT_MATCHING_ENUM(WebAXStateHaspopup, AXHaspopupState);
310 STATIC_ASSERT_MATCHING_ENUM(WebAXStateHovered, AXHoveredState);
311 STATIC_ASSERT_MATCHING_ENUM(WebAXStateIndeterminate, AXIndeterminateState);
312 STATIC_ASSERT_MATCHING_ENUM(WebAXStateInvisible, AXInvisibleState);
313 STATIC_ASSERT_MATCHING_ENUM(WebAXStateLinked, AXLinkedState);
314 STATIC_ASSERT_MATCHING_ENUM(WebAXStateMultiline, AXMultilineState);
315 STATIC_ASSERT_MATCHING_ENUM(WebAXStateMultiselectable, AXMultiselectableState);
316 STATIC_ASSERT_MATCHING_ENUM(WebAXStateOffscreen, AXOffscreenState);
317 STATIC_ASSERT_MATCHING_ENUM(WebAXStatePressed, AXPressedState);
318 STATIC_ASSERT_MATCHING_ENUM(WebAXStateProtected, AXProtectedState);
319 STATIC_ASSERT_MATCHING_ENUM(WebAXStateReadonly, AXReadonlyState);
320 STATIC_ASSERT_MATCHING_ENUM(WebAXStateRequired, AXRequiredState);
321 STATIC_ASSERT_MATCHING_ENUM(WebAXStateSelectable, AXSelectableState);
322 STATIC_ASSERT_MATCHING_ENUM(WebAXStateSelected, AXSelectedState);
323 STATIC_ASSERT_MATCHING_ENUM(WebAXStateVertical, AXVerticalState);
324 STATIC_ASSERT_MATCHING_ENUM(WebAXStateVisited, AXVisitedState);
326 STATIC_ASSERT_MATCHING_ENUM(WebAXTextDirectionLR, AccessibilityTextDirectionLTR);
327 STATIC_ASSERT_MATCHING_ENUM(WebAXTextDirectionRL, AccessibilityTextDirectionRTL);
328 STATIC_ASSERT_MATCHING_ENUM(WebAXTextDirectionTB, AccessibilityTextDirectionTTB);
329 STATIC_ASSERT_MATCHING_ENUM(WebAXTextDirectionBT, AccessibilityTextDirectionBTT);
331 STATIC_ASSERT_MATCHING_ENUM(WebAXSortDirectionUndefined, SortDirectionUndefined);
332 STATIC_ASSERT_MATCHING_ENUM(WebAXSortDirectionNone, SortDirectionNone);
333 STATIC_ASSERT_MATCHING_ENUM(WebAXSortDirectionAscending, SortDirectionAscending);
334 STATIC_ASSERT_MATCHING_ENUM(WebAXSortDirectionDescending, SortDirectionDescending);
335 STATIC_ASSERT_MATCHING_ENUM(WebAXSortDirectionOther, SortDirectionOther);
337 STATIC_ASSERT_MATCHING_ENUM(WebAXExpandedUndefined, ExpandedUndefined);
338 STATIC_ASSERT_MATCHING_ENUM(WebAXExpandedCollapsed, ExpandedCollapsed);
339 STATIC_ASSERT_MATCHING_ENUM(WebAXExpandedExpanded, ExpandedExpanded);
341 STATIC_ASSERT_MATCHING_ENUM(WebAXOrientationUndefined, AccessibilityOrientationUndefined);
342 STATIC_ASSERT_MATCHING_ENUM(WebAXOrientationVertical, AccessibilityOrientationVertical);
343 STATIC_ASSERT_MATCHING_ENUM(WebAXOrientationHorizontal, AccessibilityOrientationHorizontal);
345 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateUndefined, InvalidStateUndefined);
346 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateFalse, InvalidStateFalse);
347 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateTrue, InvalidStateTrue);
348 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateSpelling, InvalidStateSpelling);
349 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateGrammar, InvalidStateGrammar);
350 STATIC_ASSERT_MATCHING_ENUM(WebAXInvalidStateOther, InvalidStateOther);
352 STATIC_ASSERT_MATCHING_ENUM(WebAXTextStyleNone, TextStyleNone);
353 STATIC_ASSERT_MATCHING_ENUM(WebAXTextStyleBold, TextStyleBold);
354 STATIC_ASSERT_MATCHING_ENUM(WebAXTextStyleItalic, TextStyleItalic);
355 STATIC_ASSERT_MATCHING_ENUM(WebAXTextStyleUnderline, TextStyleUnderline);
356 STATIC_ASSERT_MATCHING_ENUM(WebAXTextStyleLineThrough, TextStyleLineThrough);
358 STATIC_ASSERT_MATCHING_ENUM(WebAXNameFromAttribute, AXNameFromAttribute);
359 STATIC_ASSERT_MATCHING_ENUM(WebAXNameFromContents, AXNameFromContents);
360 STATIC_ASSERT_MATCHING_ENUM(WebAXNameFromPlaceholder, AXNameFromPlaceholder);
361 STATIC_ASSERT_MATCHING_ENUM(WebAXNameFromRelatedElement, AXNameFromRelatedElement);
363 STATIC_ASSERT_MATCHING_ENUM(WebAXDescriptionFromPlaceholder, AXDescriptionFromPlaceholder);
364 STATIC_ASSERT_MATCHING_ENUM(WebAXDescriptionFromRelatedElement, AXDescriptionFromRelatedElement);
366 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Uncached, ApplicationCacheHost::UNCACHED);
367 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Idle, ApplicationCacheHost::IDLE);
368 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Checking, ApplicationCacheHost::CHECKING);
369 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Downloading, ApplicationCacheHost::DOWNLOADING);
370 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::UpdateReady, ApplicationCacheHost::UPDATEREADY);
371 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::Obsolete, ApplicationCacheHost::OBSOLETE);
372 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::CheckingEvent, ApplicationCacheHost::CHECKING_EVENT);
373 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ErrorEvent, ApplicationCacheHost::ERROR_EVENT);
374 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::NoUpdateEvent, ApplicationCacheHost::NOUPDATE_EVENT);
375 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::DownloadingEvent, ApplicationCacheHost::DOWNLOADING_EVENT);
376 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ProgressEvent, ApplicationCacheHost::PROGRESS_EVENT);
377 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::UpdateReadyEvent, ApplicationCacheHost::UPDATEREADY_EVENT);
378 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::CachedEvent, ApplicationCacheHost::CACHED_EVENT);
379 STATIC_ASSERT_MATCHING_ENUM(WebApplicationCacheHost::ObsoleteEvent, ApplicationCacheHost::OBSOLETE_EVENT);
381 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer);
382 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCross, Cursor::Cross);
383 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeHand, Cursor::Hand);
384 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeIBeam, Cursor::IBeam);
385 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWait, Cursor::Wait);
386 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeHelp, Cursor::Help);
387 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastResize, Cursor::EastResize);
388 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthResize, Cursor::NorthResize);
389 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastResize, Cursor::NorthEastResize);
390 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestResize, Cursor::NorthWestResize);
391 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthResize, Cursor::SouthResize);
392 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthEastResize, Cursor::SouthEastResize);
393 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthWestResize, Cursor::SouthWestResize);
394 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWestResize, Cursor::WestResize);
395 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthSouthResize, Cursor::NorthSouthResize);
396 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastWestResize, Cursor::EastWestResize);
397 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastSouthWestResize, Cursor::NorthEastSouthWestResize);
398 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestSouthEastResize, Cursor::NorthWestSouthEastResize);
399 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeColumnResize, Cursor::ColumnResize);
400 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeRowResize, Cursor::RowResize);
401 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeMiddlePanning, Cursor::MiddlePanning);
402 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeEastPanning, Cursor::EastPanning);
403 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthPanning, Cursor::NorthPanning);
404 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthEastPanning, Cursor::NorthEastPanning);
405 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNorthWestPanning, Cursor::NorthWestPanning);
406 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthPanning, Cursor::SouthPanning);
407 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthEastPanning, Cursor::SouthEastPanning);
408 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeSouthWestPanning, Cursor::SouthWestPanning);
409 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeWestPanning, Cursor::WestPanning);
410 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeMove, Cursor::Move);
411 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeVerticalText, Cursor::VerticalText);
412 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCell, Cursor::Cell);
413 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeContextMenu, Cursor::ContextMenu);
414 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeAlias, Cursor::Alias);
415 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeProgress, Cursor::Progress);
416 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNoDrop, Cursor::NoDrop);
417 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCopy, Cursor::Copy);
418 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNone, Cursor::None);
419 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeNotAllowed, Cursor::NotAllowed);
420 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomIn, Cursor::ZoomIn);
421 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomOut, Cursor::ZoomOut);
422 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrab, Cursor::Grab);
423 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrabbing, Cursor::Grabbing);
424 STATIC_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCustom, Cursor::Custom);
426 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyNone, FontDescription::NoFamily);
427 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyStandard, FontDescription::StandardFamily);
428 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySerif, FontDescription::SerifFamily);
429 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySansSerif, FontDescription::SansSerifFamily);
430 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyMonospace, FontDescription::MonospaceFamily);
431 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyCursive, FontDescription::CursiveFamily);
432 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyFantasy, FontDescription::FantasyFamily);
434 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingAuto, AutoSmoothing);
435 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingNone, NoSmoothing);
436 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingGrayscale, Antialiased);
437 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingSubpixel, SubpixelAntialiased);
439 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight100, FontWeight100);
440 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight200, FontWeight200);
441 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight300, FontWeight300);
442 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight400, FontWeight400);
443 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight500, FontWeight500);
444 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight600, FontWeight600);
445 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight700, FontWeight700);
446 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800);
447 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900);
448 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal);
449 STATIC_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold);
451 STATIC_ASSERT_MATCHING_ENUM(WebIconURL::TypeInvalid, InvalidIcon);
452 STATIC_ASSERT_MATCHING_ENUM(WebIconURL::TypeFavicon, Favicon);
453 STATIC_ASSERT_MATCHING_ENUM(WebIconURL::TypeTouch, TouchIcon);
454 STATIC_ASSERT_MATCHING_ENUM(WebIconURL::TypeTouchPrecomposed, TouchPrecomposedIcon);
456 STATIC_ASSERT_MATCHING_ENUM(WebNode::ElementNode, Node::ELEMENT_NODE);
457 STATIC_ASSERT_MATCHING_ENUM(WebNode::AttributeNode, Node::ATTRIBUTE_NODE);
458 STATIC_ASSERT_MATCHING_ENUM(WebNode::TextNode, Node::TEXT_NODE);
459 STATIC_ASSERT_MATCHING_ENUM(WebNode::CDataSectionNode, Node::CDATA_SECTION_NODE);
460 STATIC_ASSERT_MATCHING_ENUM(WebNode::ProcessingInstructionsNode, Node::PROCESSING_INSTRUCTION_NODE);
461 STATIC_ASSERT_MATCHING_ENUM(WebNode::CommentNode, Node::COMMENT_NODE);
462 STATIC_ASSERT_MATCHING_ENUM(WebNode::DocumentNode, Node::DOCUMENT_NODE);
463 STATIC_ASSERT_MATCHING_ENUM(WebNode::DocumentTypeNode, Node::DOCUMENT_TYPE_NODE);
464 STATIC_ASSERT_MATCHING_ENUM(WebNode::DocumentFragmentNode, Node::DOCUMENT_FRAGMENT_NODE);
466 STATIC_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveNothing, HTMLMediaElement::HAVE_NOTHING);
467 STATIC_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveMetadata, HTMLMediaElement::HAVE_METADATA);
468 STATIC_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveCurrentData, HTMLMediaElement::HAVE_CURRENT_DATA);
469 STATIC_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveFutureData, HTMLMediaElement::HAVE_FUTURE_DATA);
470 STATIC_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveEnoughData, HTMLMediaElement::HAVE_ENOUGH_DATA);
472 STATIC_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonNone, NoButton);
473 STATIC_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonLeft, LeftButton);
474 STATIC_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonMiddle, MiddleButton);
475 STATIC_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonRight, RightButton);
477 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::Horizontal, HorizontalScrollbar);
478 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::Vertical, VerticalScrollbar);
480 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByLine, ScrollByLine);
481 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByPage, ScrollByPage);
482 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByDocument, ScrollByDocument);
483 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollByPixel, ScrollByPixel);
485 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::RegularScrollbar, RegularScrollbar);
486 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::SmallScrollbar, SmallScrollbar);
487 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::NoPart, NoPart);
488 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::BackButtonStartPart, BackButtonStartPart);
489 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardButtonStartPart, ForwardButtonStartPart);
490 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::BackTrackPart, BackTrackPart);
491 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ThumbPart, ThumbPart);
492 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardTrackPart, ForwardTrackPart);
493 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::BackButtonEndPart, BackButtonEndPart);
494 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ForwardButtonEndPart, ForwardButtonEndPart);
495 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarBGPart, ScrollbarBGPart);
496 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::TrackBGPart, TrackBGPart);
497 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::AllParts, AllParts);
498 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleDefault, ScrollbarOverlayStyleDefault);
499 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleDark, ScrollbarOverlayStyleDark);
500 STATIC_ASSERT_MATCHING_ENUM(WebScrollbar::ScrollbarOverlayStyleLight, ScrollbarOverlayStyleLight);
502 STATIC_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonNone, NoButton);
503 STATIC_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonLeft, LeftButton);
504 STATIC_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonMiddle, MiddleButton);
505 STATIC_ASSERT_MATCHING_ENUM(WebScrollbarBehavior::ButtonRight, RightButton);
507 STATIC_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorMac, EditingMacBehavior);
508 STATIC_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorWin, EditingWindowsBehavior);
509 STATIC_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorUnix, EditingUnixBehavior);
510 STATIC_ASSERT_MATCHING_ENUM(WebSettings::EditingBehaviorAndroid, EditingAndroidBehavior);
512 STATIC_ASSERT_MATCHING_ENUM(WebTextAffinityUpstream, TextAffinity::Upstream);
513 STATIC_ASSERT_MATCHING_ENUM(WebTextAffinityDownstream, TextAffinity::Downstream);
515 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionUnknownError, UnknownError);
516 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionConstraintError, ConstraintError);
517 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionDataError, DataError);
518 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionVersionError, VersionError);
519 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionAbortError, AbortError);
520 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionQuotaError, QuotaExceededError);
521 STATIC_ASSERT_MATCHING_ENUM(WebIDBDatabaseExceptionTimeoutError, TimeoutError);
523 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeInvalid, IDBKey::InvalidType);
524 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeArray, IDBKey::ArrayType);
525 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeBinary, IDBKey::BinaryType);
526 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeString, IDBKey::StringType);
527 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeDate, IDBKey::DateType);
528 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyTypeNumber, IDBKey::NumberType);
530 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeNull, IDBKeyPath::NullType);
531 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeString, IDBKeyPath::StringType);
532 STATIC_ASSERT_MATCHING_ENUM(WebIDBKeyPathTypeArray, IDBKeyPath::ArrayType);
534 STATIC_ASSERT_MATCHING_ENUM(WebIDBMetadata::NoIntVersion, IDBDatabaseMetadata::NoIntVersion);
536 STATIC_ASSERT_MATCHING_ENUM(WebFileSystem::TypeTemporary, FileSystemTypeTemporary);
537 STATIC_ASSERT_MATCHING_ENUM(WebFileSystem::TypePersistent, FileSystemTypePersistent);
538 STATIC_ASSERT_MATCHING_ENUM(WebFileSystem::TypeExternal, FileSystemTypeExternal);
539 STATIC_ASSERT_MATCHING_ENUM(WebFileSystem::TypeIsolated, FileSystemTypeIsolated);
540 STATIC_ASSERT_MATCHING_ENUM(WebFileInfo::TypeUnknown, FileMetadata::TypeUnknown);
541 STATIC_ASSERT_MATCHING_ENUM(WebFileInfo::TypeFile, FileMetadata::TypeFile);
542 STATIC_ASSERT_MATCHING_ENUM(WebFileInfo::TypeDirectory, FileMetadata::TypeDirectory);
544 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorNotFound, FileError::NOT_FOUND_ERR);
545 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorSecurity, FileError::SECURITY_ERR);
546 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorAbort, FileError::ABORT_ERR);
547 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorNotReadable, FileError::NOT_READABLE_ERR);
548 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorEncoding, FileError::ENCODING_ERR);
549 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorNoModificationAllowed, FileError::NO_MODIFICATION_ALLOWED_ERR);
550 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorInvalidState, FileError::INVALID_STATE_ERR);
551 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorSyntax, FileError::SYNTAX_ERR);
552 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorInvalidModification, FileError::INVALID_MODIFICATION_ERR);
553 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorQuotaExceeded, FileError::QUOTA_EXCEEDED_ERR);
554 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorTypeMismatch, FileError::TYPE_MISMATCH_ERR);
555 STATIC_ASSERT_MATCHING_ENUM(WebFileErrorPathExists, FileError::PATH_EXISTS_ERR);
557 STATIC_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPermissionDenied, GeolocationError::PermissionDenied);
558 STATIC_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPositionUnavailable, GeolocationError::PositionUnavailable);
560 STATIC_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelling);
561 STATIC_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar);
563 // TODO(rouslan): Remove these comparisons between text-checking and text-decoration enum values after removing the
564 // deprecated constructor WebTextCheckingResult(WebTextCheckingType).
565 STATIC_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpelling);
566 STATIC_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGrammar);
568 STATIC_ASSERT_MATCHING_ENUM(WebTextDecorationTypeSpelling, TextDecorationTypeSpelling);
569 STATIC_ASSERT_MATCHING_ENUM(WebTextDecorationTypeGrammar, TextDecorationTypeGrammar);
570 STATIC_ASSERT_MATCHING_ENUM(WebTextDecorationTypeInvisibleSpellcheck, TextDecorationTypeInvisibleSpellcheck);
572 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorNotSupported, NotSupportedError);
573 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidModification, InvalidModificationError);
574 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidAccess, InvalidAccessError);
575 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorAbort, AbortError);
577 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaTypeTemporary, DeprecatedStorageQuota::Temporary);
578 STATIC_ASSERT_MATCHING_ENUM(WebStorageQuotaTypePersistent, DeprecatedStorageQuota::Persistent);
580 STATIC_ASSERT_MATCHING_ENUM(WebPageVisibilityStateVisible, PageVisibilityStateVisible);
581 STATIC_ASSERT_MATCHING_ENUM(WebPageVisibilityStateHidden, PageVisibilityStateHidden);
582 STATIC_ASSERT_MATCHING_ENUM(WebPageVisibilityStatePrerender, PageVisibilityStatePrerender);
584 STATIC_ASSERT_MATCHING_ENUM(WebMediaStreamSource::TypeAudio, MediaStreamSource::TypeAudio);
585 STATIC_ASSERT_MATCHING_ENUM(WebMediaStreamSource::TypeVideo, MediaStreamSource::TypeVideo);
586 STATIC_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateLive, MediaStreamSource::ReadyStateLive);
587 STATIC_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateMuted, MediaStreamSource::ReadyStateMuted);
588 STATIC_ASSERT_MATCHING_ENUM(WebMediaStreamSource::ReadyStateEnded, MediaStreamSource::ReadyStateEnded);
590 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::OtherError, SpeechRecognitionError::ErrorCodeOther);
591 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NoSpeechError, SpeechRecognitionError::ErrorCodeNoSpeech);
592 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::AbortedError, SpeechRecognitionError::ErrorCodeAborted);
593 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::AudioCaptureError, SpeechRecognitionError::ErrorCodeAudioCapture);
594 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NetworkError, SpeechRecognitionError::ErrorCodeNetwork);
595 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::NotAllowedError, SpeechRecognitionError::ErrorCodeNotAllowed);
596 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::ServiceNotAllowedError, SpeechRecognitionError::ErrorCodeServiceNotAllowed);
597 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::BadGrammarError, SpeechRecognitionError::ErrorCodeBadGrammar);
598 STATIC_ASSERT_MATCHING_ENUM(WebSpeechRecognizerClient::LanguageNotSupportedError, SpeechRecognitionError::ErrorCodeLanguageNotSupported);
600 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyAlways, ReferrerPolicyAlways);
601 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyDefault, ReferrerPolicyDefault);
602 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyNoReferrerWhenDowngrade, ReferrerPolicyNoReferrerWhenDowngrade);
603 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyNever, ReferrerPolicyNever);
604 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyOrigin, ReferrerPolicyOrigin);
605 STATIC_ASSERT_MATCHING_ENUM(WebReferrerPolicyOriginWhenCrossOrigin, ReferrerPolicyOriginWhenCrossOrigin);
607 STATIC_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeReport, ContentSecurityPolicyHeaderTypeReport);
608 STATIC_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeEnforce, ContentSecurityPolicyHeaderTypeEnforce);
610 STATIC_ASSERT_MATCHING_ENUM(WebURLResponse::Unknown, ResourceResponse::Unknown);
611 STATIC_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_0_9, ResourceResponse::HTTP_0_9);
612 STATIC_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_0, ResourceResponse::HTTP_1_0);
613 STATIC_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_1, ResourceResponse::HTTP_1_1);
615 STATIC_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultSuccess, HTMLFormElement::AutocompleteResultSuccess);
616 STATIC_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorDisabled, HTMLFormElement::AutocompleteResultErrorDisabled);
617 STATIC_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorCancel, HTMLFormElement::AutocompleteResultErrorCancel);
618 STATIC_ASSERT_MATCHING_ENUM(WebFormElement::AutocompleteResultErrorInvalid, HTMLFormElement::AutocompleteResultErrorInvalid);
620 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityUnresolved, ResourceLoadPriorityUnresolved);
621 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryLow, ResourceLoadPriorityVeryLow);
622 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityLow, ResourceLoadPriorityLow);
623 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityMedium, ResourceLoadPriorityMedium);
624 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityHigh, ResourceLoadPriorityHigh);
625 STATIC_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryHigh, ResourceLoadPriorityVeryHigh);
627 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyIgnore, NavigationPolicyIgnore);
628 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyDownload, NavigationPolicyDownload);
629 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyCurrentTab, NavigationPolicyCurrentTab);
630 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewBackgroundTab, NavigationPolicyNewBackgroundTab);
631 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewForegroundTab, NavigationPolicyNewForegroundTab);
632 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewWindow, NavigationPolicyNewWindow);
633 STATIC_ASSERT_MATCHING_ENUM(WebNavigationPolicyNewPopup, NavigationPolicyNewPopup);
635 STATIC_ASSERT_MATCHING_ENUM(WebStandardCommit, StandardCommit);
636 STATIC_ASSERT_MATCHING_ENUM(WebBackForwardCommit, BackForwardCommit);
637 STATIC_ASSERT_MATCHING_ENUM(WebInitialCommitInChildFrame, InitialCommitInChildFrame);
638 STATIC_ASSERT_MATCHING_ENUM(WebHistoryInertCommit, HistoryInertCommit);
640 STATIC_ASSERT_MATCHING_ENUM(WebHistorySameDocumentLoad, HistorySameDocumentLoad);
641 STATIC_ASSERT_MATCHING_ENUM(WebHistoryDifferentDocumentLoad, HistoryDifferentDocumentLoad);
643 STATIC_ASSERT_MATCHING_ENUM(WebHistoryScrollRestorationManual, ScrollRestorationManual);
644 STATIC_ASSERT_MATCHING_ENUM(WebHistoryScrollRestorationAuto, ScrollRestorationAuto);
646 STATIC_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelDebug, DebugMessageLevel);
647 STATIC_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelLog, LogMessageLevel);
648 STATIC_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelWarning, WarningMessageLevel);
649 STATIC_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelError, ErrorMessageLevel);
650 STATIC_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelInfo, InfoMessageLevel);
652 STATIC_ASSERT_MATCHING_ENUM(WebCustomHandlersNew, NavigatorContentUtilsClient::CustomHandlersNew);
653 STATIC_ASSERT_MATCHING_ENUM(WebCustomHandlersRegistered, NavigatorContentUtilsClient::CustomHandlersRegistered);
654 STATIC_ASSERT_MATCHING_ENUM(WebCustomHandlersDeclined, NavigatorContentUtilsClient::CustomHandlersDeclined);
656 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionNone, TouchActionNone);
657 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionAuto, TouchActionAuto);
658 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanLeft, TouchActionPanLeft);
659 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanRight, TouchActionPanRight);
660 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanX, TouchActionPanX);
661 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanUp, TouchActionPanUp);
662 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanDown, TouchActionPanDown);
663 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPanY, TouchActionPanY);
664 STATIC_ASSERT_MATCHING_ENUM(WebTouchActionPinchZoom, TouchActionPinchZoom);
666 STATIC_ASSERT_MATCHING_ENUM(WebSelection::NoSelection, NoSelection);
667 STATIC_ASSERT_MATCHING_ENUM(WebSelection::CaretSelection, CaretSelection);
668 STATIC_ASSERT_MATCHING_ENUM(WebSelection::RangeSelection, RangeSelection);
670 STATIC_ASSERT_MATCHING_ENUM(WebSettings::ImageAnimationPolicyAllowed, ImageAnimationPolicyAllowed);
671 STATIC_ASSERT_MATCHING_ENUM(WebSettings::ImageAnimationPolicyAnimateOnce, ImageAnimationPolicyAnimateOnce);
672 STATIC_ASSERT_MATCHING_ENUM(WebSettings::ImageAnimationPolicyNoAnimation, ImageAnimationPolicyNoAnimation);
674 STATIC_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsDefault, V8CacheOptionsDefault);
675 STATIC_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsNone, V8CacheOptionsNone);
676 STATIC_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsParse, V8CacheOptionsParse);
677 STATIC_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode);
679 STATIC_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone);
680 STATIC_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse);
681 STATIC_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine);
682 STATIC_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone);
683 STATIC_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand);
684 STATIC_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover);
686 STATIC_ASSERT_MATCHING_ENUM(WebSecurityPolicy::PolicyAreaNone, SchemeRegistry::PolicyAreaNone);
687 STATIC_ASSERT_MATCHING_ENUM(WebSecurityPolicy::PolicyAreaImage, SchemeRegistry::PolicyAreaImage);
688 STATIC_ASSERT_MATCHING_ENUM(WebSecurityPolicy::PolicyAreaStyle, SchemeRegistry::PolicyAreaStyle);
689 STATIC_ASSERT_MATCHING_ENUM(WebSecurityPolicy::PolicyAreaAll, SchemeRegistry::PolicyAreaAll);
691 STATIC_ASSERT_MATCHING_UINT64(kSerializedScriptValueVersion, SerializedScriptValue::wireFormatVersion);
693 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::None, SandboxNone);
694 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Navigation, SandboxNavigation);
695 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Plugins, SandboxPlugins);
696 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Origin, SandboxOrigin);
697 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Forms, SandboxForms);
698 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Scripts, SandboxScripts);
699 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::TopNavigation, SandboxTopNavigation);
700 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Popups, SandboxPopups);
701 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::AutomaticFeatures, SandboxAutomaticFeatures);
702 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::PointerLock, SandboxPointerLock);
703 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::DocumentDomain, SandboxDocumentDomain);
704 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::OrientationLock, SandboxOrientationLock);
705 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::PropagatesToAuxiliaryBrowsingContexts, SandboxPropagatesToAuxiliaryBrowsingContexts);
706 STATIC_ASSERT_MATCHING_ENUM(WebSandboxFlags::Modals, SandboxModals);
708 STATIC_ASSERT_MATCHING_ENUM(FrameLoaderClient::BeforeUnloadHandler, WebFrameClient::BeforeUnloadHandler);
709 STATIC_ASSERT_MATCHING_ENUM(FrameLoaderClient::UnloadHandler, WebFrameClient::UnloadHandler);
711 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::Standard, FrameLoadTypeStandard);
712 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::BackForward, FrameLoadTypeBackForward);
713 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::Reload, FrameLoadTypeReload);
714 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::Same, FrameLoadTypeSame);
715 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::ReplaceCurrentItem, FrameLoadTypeReplaceCurrentItem);
716 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::InitialInChildFrame, FrameLoadTypeInitialInChildFrame);
717 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::InitialHistoryLoad, FrameLoadTypeInitialHistoryLoad);
718 STATIC_ASSERT_MATCHING_ENUM(WebFrameLoadType::ReloadFromOrigin, FrameLoadTypeReloadFromOrigin);
720 STATIC_ASSERT_MATCHING_ENUM(FrameDetachType::Remove, WebFrameClient::DetachType::Remove);
721 STATIC_ASSERT_MATCHING_ENUM(FrameDetachType::Swap, WebFrameClient::DetachType::Swap);
722 STATIC_ASSERT_MATCHING_ENUM(FrameDetachType::Remove, WebRemoteFrameClient::DetachType::Remove);
723 STATIC_ASSERT_MATCHING_ENUM(FrameDetachType::Swap, WebRemoteFrameClient::DetachType::Swap);
724 } // namespace blink