Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_a11y_AccTypes_h |
michael@0 | 8 | #define mozilla_a11y_AccTypes_h |
michael@0 | 9 | |
michael@0 | 10 | namespace mozilla { |
michael@0 | 11 | namespace a11y { |
michael@0 | 12 | |
michael@0 | 13 | /** |
michael@0 | 14 | * Accessible object types. Each accessible class can have own type. |
michael@0 | 15 | */ |
michael@0 | 16 | enum AccType { |
michael@0 | 17 | /** |
michael@0 | 18 | * This set of types is used for accessible creation, keep them together in |
michael@0 | 19 | * alphabetical order since they are used in switch statement. |
michael@0 | 20 | */ |
michael@0 | 21 | eNoType, |
michael@0 | 22 | eHTMLBRType, |
michael@0 | 23 | eHTMLButtonType, |
michael@0 | 24 | eHTMLCanvasType, |
michael@0 | 25 | eHTMLCaptionType, |
michael@0 | 26 | eHTMLCheckboxType, |
michael@0 | 27 | eHTMLComboboxType, |
michael@0 | 28 | eHTMLFileInputType, |
michael@0 | 29 | eHTMLGroupboxType, |
michael@0 | 30 | eHTMLHRType, |
michael@0 | 31 | eHTMLImageMapType, |
michael@0 | 32 | eHTMLLiType, |
michael@0 | 33 | eHTMLSelectListType, |
michael@0 | 34 | eHTMLMediaType, |
michael@0 | 35 | eHTMLRadioButtonType, |
michael@0 | 36 | eHTMLRangeType, |
michael@0 | 37 | eHTMLSpinnerType, |
michael@0 | 38 | eHTMLTableType, |
michael@0 | 39 | eHTMLTableCellType, |
michael@0 | 40 | eHTMLTableRowType, |
michael@0 | 41 | eHTMLTextFieldType, |
michael@0 | 42 | eHyperTextType, |
michael@0 | 43 | eImageType, |
michael@0 | 44 | eOuterDocType, |
michael@0 | 45 | ePluginType, |
michael@0 | 46 | eTextLeafType, |
michael@0 | 47 | |
michael@0 | 48 | /** |
michael@0 | 49 | * Other accessible types. |
michael@0 | 50 | */ |
michael@0 | 51 | eApplicationType, |
michael@0 | 52 | eHTMLOptGroupType, |
michael@0 | 53 | eImageMapType, |
michael@0 | 54 | eMenuPopupType, |
michael@0 | 55 | eProgressType, |
michael@0 | 56 | eRootType, |
michael@0 | 57 | eXULLabelType, |
michael@0 | 58 | eXULListItemType, |
michael@0 | 59 | eXULTabpanelsType, |
michael@0 | 60 | eXULTreeType, |
michael@0 | 61 | |
michael@0 | 62 | eLastAccType = eXULTreeType |
michael@0 | 63 | }; |
michael@0 | 64 | |
michael@0 | 65 | /** |
michael@0 | 66 | * Generic accessible type, different accessible classes can share the same |
michael@0 | 67 | * type, the same accessible class can have several types. |
michael@0 | 68 | */ |
michael@0 | 69 | enum AccGenericType { |
michael@0 | 70 | eAutoComplete = 1 << 0, |
michael@0 | 71 | eAutoCompletePopup = 1 << 1, |
michael@0 | 72 | eButton = 1 << 2, |
michael@0 | 73 | eCombobox = 1 << 3, |
michael@0 | 74 | eDocument = 1 << 4, |
michael@0 | 75 | eHyperText = 1 << 5, |
michael@0 | 76 | eList = 1 << 6, |
michael@0 | 77 | eListControl = 1 << 7, |
michael@0 | 78 | eMenuButton = 1 << 8, |
michael@0 | 79 | eSelect = 1 << 9, |
michael@0 | 80 | eTable = 1 << 10, |
michael@0 | 81 | eTableCell = 1 << 11, |
michael@0 | 82 | eTableRow = 1 << 12, |
michael@0 | 83 | |
michael@0 | 84 | eLastAccGenericType = eTableRow |
michael@0 | 85 | }; |
michael@0 | 86 | |
michael@0 | 87 | } // namespace a11y |
michael@0 | 88 | } // namespace mozilla |
michael@0 | 89 | |
michael@0 | 90 | #endif // mozilla_a11y_AccTypes_h |