michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_a11y_AccTypes_h michael@0: #define mozilla_a11y_AccTypes_h michael@0: michael@0: namespace mozilla { michael@0: namespace a11y { michael@0: michael@0: /** michael@0: * Accessible object types. Each accessible class can have own type. michael@0: */ michael@0: enum AccType { michael@0: /** michael@0: * This set of types is used for accessible creation, keep them together in michael@0: * alphabetical order since they are used in switch statement. michael@0: */ michael@0: eNoType, michael@0: eHTMLBRType, michael@0: eHTMLButtonType, michael@0: eHTMLCanvasType, michael@0: eHTMLCaptionType, michael@0: eHTMLCheckboxType, michael@0: eHTMLComboboxType, michael@0: eHTMLFileInputType, michael@0: eHTMLGroupboxType, michael@0: eHTMLHRType, michael@0: eHTMLImageMapType, michael@0: eHTMLLiType, michael@0: eHTMLSelectListType, michael@0: eHTMLMediaType, michael@0: eHTMLRadioButtonType, michael@0: eHTMLRangeType, michael@0: eHTMLSpinnerType, michael@0: eHTMLTableType, michael@0: eHTMLTableCellType, michael@0: eHTMLTableRowType, michael@0: eHTMLTextFieldType, michael@0: eHyperTextType, michael@0: eImageType, michael@0: eOuterDocType, michael@0: ePluginType, michael@0: eTextLeafType, michael@0: michael@0: /** michael@0: * Other accessible types. michael@0: */ michael@0: eApplicationType, michael@0: eHTMLOptGroupType, michael@0: eImageMapType, michael@0: eMenuPopupType, michael@0: eProgressType, michael@0: eRootType, michael@0: eXULLabelType, michael@0: eXULListItemType, michael@0: eXULTabpanelsType, michael@0: eXULTreeType, michael@0: michael@0: eLastAccType = eXULTreeType michael@0: }; michael@0: michael@0: /** michael@0: * Generic accessible type, different accessible classes can share the same michael@0: * type, the same accessible class can have several types. michael@0: */ michael@0: enum AccGenericType { michael@0: eAutoComplete = 1 << 0, michael@0: eAutoCompletePopup = 1 << 1, michael@0: eButton = 1 << 2, michael@0: eCombobox = 1 << 3, michael@0: eDocument = 1 << 4, michael@0: eHyperText = 1 << 5, michael@0: eList = 1 << 6, michael@0: eListControl = 1 << 7, michael@0: eMenuButton = 1 << 8, michael@0: eSelect = 1 << 9, michael@0: eTable = 1 << 10, michael@0: eTableCell = 1 << 11, michael@0: eTableRow = 1 << 12, michael@0: michael@0: eLastAccGenericType = eTableRow michael@0: }; michael@0: michael@0: } // namespace a11y michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_a11y_AccTypes_h