Bug 1874684 - Part 28: Return DateDuration from DifferenceISODateTime. r=mgaudet
[gecko.git] / accessible / base / AccTypes.h
blob3e9d88e486b66d3f3f7081b82fe9120ca7d2bec5
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_AccTypes_h
8 #define mozilla_a11y_AccTypes_h
10 namespace mozilla {
11 namespace a11y {
13 /**
14 * Accessible object types. Each accessible class can have own type.
16 enum AccType {
17 /**
18 * This set of types is used for accessible creation, keep them together in
19 * alphabetical order since they are used in switch statement.
21 eNoType,
22 eHTMLBRType,
23 eHTMLButtonType,
24 eHTMLCanvasType,
25 eHTMLCaptionType,
26 eHTMLCheckboxType,
27 eHTMLComboboxType,
28 eHTMLDateTimeFieldType,
29 eHTMLFileInputType,
30 eHTMLGroupboxType,
31 eHTMLHRType,
32 eHTMLImageMapType,
33 eHTMLLiType,
34 eHTMLSelectListType,
35 eHTMLMediaType,
36 eHTMLRadioButtonType,
37 eHTMLRangeType,
38 eHTMLSpinnerType,
39 eHTMLTableType,
40 eHTMLTableCellType,
41 eHTMLTableRowType,
42 eHTMLTextFieldType,
43 eHTMLTextPasswordFieldType,
44 eHyperTextType,
45 eImageType,
46 eOuterDocType,
47 eTextLeafType,
49 /**
50 * Other accessible types.
52 eApplicationType,
53 eHTMLLinkType,
54 eHTMLOptGroupType,
55 eImageMapType,
56 eMenuPopupType,
57 eProgressType,
58 eRootType,
59 eXULLabelType,
60 eXULListItemType,
61 eXULTabpanelsType,
62 eXULTooltipType,
63 eXULTreeType,
65 eLastAccType = eXULTreeType
68 /**
69 * Generic accessible type, different accessible classes can share the same
70 * type, the same accessible class can have several types.
72 enum AccGenericType {
73 eAlert = 1 << 0,
74 eAutoCompletePopup = 1 << 1,
75 eButton = 1 << 2,
76 eCombobox = 1 << 3,
77 eDocument = 1 << 4,
78 eHyperText = 1 << 5,
79 eLandmark = 1 << 6,
80 eList = 1 << 7,
81 eListControl = 1 << 8,
82 eMenuButton = 1 << 9,
83 eSelect = 1 << 10,
84 eTable = 1 << 11,
85 eTableCell = 1 << 12,
86 eTableRow = 1 << 13,
87 eText = 1 << 14,
88 eNumericValue = 1 << 15,
89 eActionable = 1 << 16, // This is for remote accessibles
91 eLastAccGenericType = eActionable,
92 eAllGenericTypes = (eLastAccGenericType << 1) - 1
95 } // namespace a11y
96 } // namespace mozilla
98 #endif // mozilla_a11y_AccTypes_h