Bug 1668452 require an exact match of Window, rate, and device when selecting a Media...
[gecko.git] / accessible / base / AccTypes.h
blob75fda6740e16fdaa98835b3e2354937a9bac8ac0
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 eProxyType,
58 eProgressType,
59 eRootType,
60 eXULLabelType,
61 eXULListItemType,
62 eXULTabpanelsType,
63 eXULTooltipType,
64 eXULTreeType,
66 eLastAccType = eXULTreeType
69 /**
70 * Generic accessible type, different accessible classes can share the same
71 * type, the same accessible class can have several types.
73 enum AccGenericType {
74 eAlert = 1 << 0,
75 eAutoCompletePopup = 1 << 1,
76 eButton = 1 << 2,
77 eCombobox = 1 << 3,
78 eDocument = 1 << 4,
79 eHyperText = 1 << 5,
80 eLandmark = 1 << 6,
81 eList = 1 << 7,
82 eListControl = 1 << 8,
83 eMenuButton = 1 << 9,
84 eSelect = 1 << 10,
85 eTable = 1 << 11,
86 eTableCell = 1 << 12,
87 eTableRow = 1 << 13,
88 eText = 1 << 14,
89 eNumericValue = 1 << 15,
90 eActionable = 1 << 16, // This is for remote accessibles
92 eLastAccGenericType = eActionable,
93 eAllGenericTypes = (eLastAccGenericType << 1) - 1
96 } // namespace a11y
97 } // namespace mozilla
99 #endif // mozilla_a11y_AccTypes_h