Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: public/web/WebAXEnums.h

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/testing/WebTestProxy.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebAXEnums.h
diff --git a/public/web/WebAXEnums.h b/public/web/WebAXEnums.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbe08067f938e089c3f46e643b825458e74bc145
--- /dev/null
+++ b/public/web/WebAXEnums.h
@@ -0,0 +1,213 @@
+/*
+ * Copyright (C) 2013 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebAXEnums_h
+#define WebAXEnums_h
+
+namespace WebKit {
+
+// Accessibility events sent from Blink to the embedder.
+// These values must match WebCore::AXObjectCache::AXNotification values.
+// Enforced in AssertMatchingEnums.cpp.
+enum WebAXEvent {
+ WebAXEventActiveDescendantChanged,
+ WebAXEventAlert,
+ WebAXEventAriaAttributeChanged,
+ WebAXEventAutocorrectionOccured,
+ WebAXEventBlur,
+ WebAXEventCheckedStateChanged,
+ WebAXEventChildrenChanged,
+ WebAXEventFocus,
+ WebAXEventHide,
+ WebAXEventInvalidStatusChanged,
+ WebAXEventLayoutComplete,
+ WebAXEventLiveRegionChanged,
+ WebAXEventLoadComplete,
+ WebAXEventLocationChanged,
+ WebAXEventMenuListItemSelected,
+ WebAXEventMenuListValueChanged,
+ WebAXEventRowCollapsed,
+ WebAXEventRowCountChanged,
+ WebAXEventRowExpanded,
+ WebAXEventScrolledToAnchor,
+ WebAXEventSelectedChildrenChanged,
+ WebAXEventSelectedTextChanged,
+ WebAXEventShow,
+ WebAXEventTextChanged,
+ WebAXEventTextInserted,
+ WebAXEventTextRemoved,
+ WebAXEventValueChanged
+};
+
+// Accessibility roles.
+// These values must match WebCore::AccessibilityRole values.
+// Enforced in AssertMatchingEnums.cpp.
+enum WebAXRole {
+ WebAXRoleAlertDialog = 1,
+ WebAXRoleAlert,
+ WebAXRoleAnnotation,
+ WebAXRoleApplication,
+ WebAXRoleArticle,
+ WebAXRoleBanner,
+ WebAXRoleBrowser,
+ WebAXRoleBusyIndicator,
+ WebAXRoleButton,
+ WebAXRoleCanvas,
+ WebAXRoleCell,
+ WebAXRoleCheckBox,
+ WebAXRoleColorWell,
+ WebAXRoleColumnHeader,
+ WebAXRoleColumn,
+ WebAXRoleComboBox,
+ WebAXRoleComplementary,
+ WebAXRoleContentInfo,
+ WebAXRoleDefinition,
+ WebAXRoleDescriptionListDetail,
+ WebAXRoleDescriptionListTerm,
+ WebAXRoleDialog,
+ WebAXRoleDirectory,
+ WebAXRoleDisclosureTriangle,
+ WebAXRoleDiv,
+ WebAXRoleDocument,
+ WebAXRoleDrawer,
+ WebAXRoleEditableText,
+ WebAXRoleFooter,
+ WebAXRoleForm,
+ WebAXRoleGrid,
+ WebAXRoleGroup,
+ WebAXRoleGrowArea,
+ WebAXRoleHeading,
+ WebAXRoleHelpTag,
+ WebAXRoleHorizontalRule,
+ WebAXRoleIgnored,
+ WebAXRoleImageMapLink,
+ WebAXRoleImageMap,
+ WebAXRoleImage,
+ WebAXRoleIncrementor,
+ WebAXRoleLabel,
+ WebAXRoleLegend,
+ WebAXRoleLink,
+ WebAXRoleListBoxOption,
+ WebAXRoleListBox,
+ WebAXRoleListItem,
+ WebAXRoleListMarker,
+ WebAXRoleList,
+ WebAXRoleLog,
+ WebAXRoleMain,
+ WebAXRoleMarquee,
+ WebAXRoleMathElement,
+ WebAXRoleMath,
+ WebAXRoleMatte,
+ WebAXRoleMenuBar,
+ WebAXRoleMenuButton,
+ WebAXRoleMenuItem,
+ WebAXRoleMenuListOption,
+ WebAXRoleMenuListPopup,
+ WebAXRoleMenu,
+ WebAXRoleNavigation,
+ WebAXRoleNote,
+ WebAXRoleOutline,
+ WebAXRoleParagraph,
+ WebAXRolePopUpButton,
+ WebAXRolePresentational,
+ WebAXRoleProgressIndicator,
+ WebAXRoleRadioButton,
+ WebAXRoleRadioGroup,
+ WebAXRoleRegion,
+ WebAXRoleRootWebArea,
+ WebAXRoleRowHeader,
+ WebAXRoleRow,
+ WebAXRoleRulerMarker,
+ WebAXRoleRuler,
+ WebAXRoleSVGRoot,
+ WebAXRoleScrollArea,
+ WebAXRoleScrollBar,
+ WebAXRoleSeamlessWebArea,
+ WebAXRoleSearch,
+ WebAXRoleSheet,
+ WebAXRoleSlider,
+ WebAXRoleSliderThumb,
+ WebAXRoleSpinButtonPart,
+ WebAXRoleSpinButton,
+ WebAXRoleSplitGroup,
+ WebAXRoleSplitter,
+ WebAXRoleStaticText,
+ WebAXRoleStatus,
+ WebAXRoleSystemWide,
+ WebAXRoleTabGroup,
+ WebAXRoleTabList,
+ WebAXRoleTabPanel,
+ WebAXRoleTab,
+ WebAXRoleTableHeaderContainer,
+ WebAXRoleTable,
+ WebAXRoleTextArea,
+ WebAXRoleTextField,
+ WebAXRoleTimer,
+ WebAXRoleToggleButton,
+ WebAXRoleToolbar,
+ WebAXRoleTreeGrid,
+ WebAXRoleTreeItem,
+ WebAXRoleTree,
+ WebAXRoleUnknown,
+ WebAXRoleUserInterfaceTooltip,
+ WebAXRoleValueIndicator,
+ WebAXRoleWebArea,
+ WebAXRoleWindow,
+};
+
+// Accessibility states, used as a bitmask.
+enum WebAXState {
+ WebAXStateBusy,
+ WebAXStateChecked,
+ WebAXStateCollapsed,
+ WebAXStateEnabled,
+ WebAXStateExpanded,
+ WebAXStateFocusable,
+ WebAXStateFocused,
+ WebAXStateHaspopup,
+ WebAXStateHovered,
+ WebAXStateIndeterminate,
+ WebAXStateInvisible,
+ WebAXStateLinked,
+ WebAXStateMultiselectable,
+ WebAXStateOffscreen,
+ WebAXStatePressed,
+ WebAXStateProtected,
+ WebAXStateReadonly,
+ WebAXStateRequired,
+ WebAXStateSelectable,
+ WebAXStateSelected,
+ WebAXStateVertical,
+ WebAXStateVisited,
+};
+
+} // namespace WebKit
+
+#endif
« no previous file with comments | « public/testing/WebTestProxy.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698