1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/src/base/AccTypes.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,90 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set ts=2 et sw=2 tw=80: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.8 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef mozilla_a11y_AccTypes_h 1.11 +#define mozilla_a11y_AccTypes_h 1.12 + 1.13 +namespace mozilla { 1.14 +namespace a11y { 1.15 + 1.16 +/** 1.17 + * Accessible object types. Each accessible class can have own type. 1.18 + */ 1.19 +enum AccType { 1.20 + /** 1.21 + * This set of types is used for accessible creation, keep them together in 1.22 + * alphabetical order since they are used in switch statement. 1.23 + */ 1.24 + eNoType, 1.25 + eHTMLBRType, 1.26 + eHTMLButtonType, 1.27 + eHTMLCanvasType, 1.28 + eHTMLCaptionType, 1.29 + eHTMLCheckboxType, 1.30 + eHTMLComboboxType, 1.31 + eHTMLFileInputType, 1.32 + eHTMLGroupboxType, 1.33 + eHTMLHRType, 1.34 + eHTMLImageMapType, 1.35 + eHTMLLiType, 1.36 + eHTMLSelectListType, 1.37 + eHTMLMediaType, 1.38 + eHTMLRadioButtonType, 1.39 + eHTMLRangeType, 1.40 + eHTMLSpinnerType, 1.41 + eHTMLTableType, 1.42 + eHTMLTableCellType, 1.43 + eHTMLTableRowType, 1.44 + eHTMLTextFieldType, 1.45 + eHyperTextType, 1.46 + eImageType, 1.47 + eOuterDocType, 1.48 + ePluginType, 1.49 + eTextLeafType, 1.50 + 1.51 + /** 1.52 + * Other accessible types. 1.53 + */ 1.54 + eApplicationType, 1.55 + eHTMLOptGroupType, 1.56 + eImageMapType, 1.57 + eMenuPopupType, 1.58 + eProgressType, 1.59 + eRootType, 1.60 + eXULLabelType, 1.61 + eXULListItemType, 1.62 + eXULTabpanelsType, 1.63 + eXULTreeType, 1.64 + 1.65 + eLastAccType = eXULTreeType 1.66 +}; 1.67 + 1.68 +/** 1.69 + * Generic accessible type, different accessible classes can share the same 1.70 + * type, the same accessible class can have several types. 1.71 + */ 1.72 +enum AccGenericType { 1.73 + eAutoComplete = 1 << 0, 1.74 + eAutoCompletePopup = 1 << 1, 1.75 + eButton = 1 << 2, 1.76 + eCombobox = 1 << 3, 1.77 + eDocument = 1 << 4, 1.78 + eHyperText = 1 << 5, 1.79 + eList = 1 << 6, 1.80 + eListControl = 1 << 7, 1.81 + eMenuButton = 1 << 8, 1.82 + eSelect = 1 << 9, 1.83 + eTable = 1 << 10, 1.84 + eTableCell = 1 << 11, 1.85 + eTableRow = 1 << 12, 1.86 + 1.87 + eLastAccGenericType = eTableRow 1.88 +}; 1.89 + 1.90 +} // namespace a11y 1.91 +} // namespace mozilla 1.92 + 1.93 +#endif // mozilla_a11y_AccTypes_h