Index: public/web/WebAccessibilityEnums.h |
diff --git a/public/web/WebAccessibilityEnums.h b/public/web/WebAccessibilityEnums.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1ede374d3d7f118164c4e3b9bb16f4894949698 |
--- /dev/null |
+++ b/public/web/WebAccessibilityEnums.h |
@@ -0,0 +1,211 @@ |
+/* |
+ * 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 WebAccessibilityEnums_h |
+#define WebAccessibilityEnums_h |
+ |
+#include "../platform/WebCommon.h" |
tfarina
2013/08/07 17:22:52
do you need this include here?
dmazzoni
2013/08/07 18:27:29
Done.
|
+ |
+namespace WebKit { |
+ |
+// These values must match WebCore::AXObjectCache::AXNotification values. |
+// Enforced in AssertMatchingEnums.cpp. |
+enum AXNotification { |
jamesr
2013/08/07 17:26:09
all public Blink API types should have a 'Web' pre
dmazzoni
2013/08/07 18:27:29
No problem.
|
+ AXActiveDescendantChanged, |
jamesr
2013/08/07 17:26:09
all enum values in the Blink public API should be
dmazzoni
2013/08/07 18:27:29
OK, how about this?
|
+ AXAlert, |
+ AXAriaAttributeChanged, |
+ AXAutocorrectionOccured, |
+ AXBlur, |
+ AXCheckedStateChanged, |
+ AXChildrenChanged, |
+ AXFocus, |
+ AXHide, |
+ AXInvalidStatusChanged, |
+ AXLayoutComplete, |
+ AXLiveRegionChanged, |
+ AXLoadComplete, |
+ AXLocationChanged, |
+ AXMenuListItemSelected, |
+ AXMenuListValueChanged, |
+ AXRowCollapsed, |
+ AXRowCountChanged, |
+ AXRowExpanded, |
+ AXScrolledToAnchor, |
+ AXSelectedChildrenChanged, |
+ AXSelectedTextChanged, |
+ AXShow, |
+ AXTextChanged, |
+ AXTextInserted, |
+ AXTextRemoved, |
+ AXValueChanged |
+}; |
+ |
+// These values must match WebCore::AccessibilityRole values. |
+// Enforced in AssertMatchingEnums.cpp. |
+enum AXRole { |
+ AXAlertDialogRole = 1, |
+ AXAlertRole, |
+ AXAnnotationRole, |
+ AXApplicationRole, |
+ AXArticleRole, |
+ AXBannerRole, |
+ AXBrowserRole, |
+ AXBusyIndicatorRole, |
+ AXButtonRole, |
+ AXCanvasRole, |
+ AXCellRole, |
+ AXCheckBoxRole, |
+ AXColorWellRole, |
+ AXColumnHeaderRole, |
+ AXColumnRole, |
+ AXComboBoxRole, |
+ AXComplementaryRole, |
+ AXContentInfoRole, |
+ AXDefinitionRole, |
+ AXDescriptionListDetailRole, |
+ AXDescriptionListTermRole, |
+ AXDialogRole, |
+ AXDirectoryRole, |
+ AXDisclosureTriangleRole, |
+ AXDivRole, |
+ AXDocumentRole, |
+ AXDrawerRole, |
+ AXEditableTextRole, |
+ AXFooterRole, |
+ AXFormRole, |
+ AXGridRole, |
+ AXGroupRole, |
+ AXGrowAreaRole, |
+ AXHeadingRole, |
+ AXHelpTagRole, |
+ AXHorizontalRuleRole, |
+ AXIgnoredRole, |
+ AXImageMapLinkRole, |
+ AXImageMapRole, |
+ AXImageRole, |
+ AXIncrementorRole, |
+ AXLabelRole, |
+ AXLegendRole, |
+ AXLinkRole, |
+ AXListBoxOptionRole, |
+ AXListBoxRole, |
+ AXListItemRole, |
+ AXListMarkerRole, |
+ AXListRole, |
+ AXLogRole, |
+ AXMainRole, |
+ AXMarqueeRole, |
+ AXMathElementRole, |
+ AXMathRole, |
+ AXMatteRole, |
+ AXMenuBarRole, |
+ AXMenuButtonRole, |
+ AXMenuItemRole, |
+ AXMenuListOptionRole, |
+ AXMenuListPopupRole, |
+ AXMenuRole, |
+ AXNavigationRole, |
+ AXNoteRole, |
+ AXOutlineRole, |
+ AXParagraphRole, |
+ AXPopUpButtonRole, |
+ AXPresentationalRole, |
+ AXProgressIndicatorRole, |
+ AXRadioButtonRole, |
+ AXRadioGroupRole, |
+ AXRegionRole, |
+ AXRowHeaderRole, |
+ AXRowRole, |
+ AXRulerMarkerRole, |
+ AXRulerRole, |
+ AXSVGRootRole, |
+ AXScrollAreaRole, |
+ AXScrollBarRole, |
+ AXSeamlessWebAreaRole, |
+ AXSearchRole, |
+ AXSheetRole, |
+ AXSliderRole, |
+ AXSliderThumbRole, |
+ AXSpinButtonPartRole, |
+ AXSpinButtonRole, |
+ AXSplitGroupRole, |
+ AXSplitterRole, |
+ AXStaticTextRole, |
+ AXStatusRole, |
+ AXSystemWideRole, |
+ AXTabGroupRole, |
+ AXTabListRole, |
+ AXTabPanelRole, |
+ AXTabRole, |
+ AXTableHeaderContainerRole, |
+ AXTableRole, |
+ AXTextAreaRole, |
+ AXTextFieldRole, |
+ AXTimerRole, |
+ AXToggleButtonRole, |
+ AXToolbarRole, |
+ AXTreeGridRole, |
+ AXTreeItemRole, |
+ AXTreeRole, |
+ AXUnknownRole, |
+ AXUserInterfaceTooltipRole, |
+ AXValueIndicatorRole, |
+ AXWebAreaRole, |
+ AXWindowRole, |
+}; |
+ |
+enum AXState { |
+ AXBusyState, |
+ AXCheckedState, |
+ AXCollapsedState, |
+ AXEnabledState, |
+ AXExpandedState, |
+ AXFocusableState, |
+ AXFocusedState, |
+ AXHaspopupState, |
+ AXHoveredState, |
+ AXIndeterminateState, |
+ AXInvisibleState, |
+ AXLinkedState, |
+ AXMultiselectableState, |
+ AXOffscreenState, |
+ AXPressedState, |
+ AXProtectedState, |
+ AXReadonlyState, |
+ AXRequiredState, |
+ AXSelectableState, |
+ AXSelectedState, |
+ AXVerticalState, |
+ AXVisitedState, |
+}; |
+ |
+} // namespace WebKit |
+ |
+#endif |