2012-09-29 01:53:44 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2012-12-18 09:22:26 +04:00
|
|
|
#ifndef mozilla_a11y_AccTypes_h
|
|
|
|
#define mozilla_a11y_AccTypes_h
|
2012-09-29 01:53:44 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
|
|
|
/**
|
2012-12-18 09:22:26 +04:00
|
|
|
* Accessible object types. Each accessible class can have own type.
|
2012-09-29 01:53:44 +04:00
|
|
|
*/
|
|
|
|
enum AccType {
|
2012-12-18 09:22:26 +04:00
|
|
|
/**
|
|
|
|
* This set of types is used for accessible creation, keep them together in
|
|
|
|
* alphabetical order since they are used in switch statement.
|
|
|
|
*/
|
2012-12-12 14:04:12 +04:00
|
|
|
eNoType,
|
2012-12-18 05:25:52 +04:00
|
|
|
eHTMLBRType,
|
|
|
|
eHTMLButtonType,
|
|
|
|
eHTMLCanvasType,
|
|
|
|
eHTMLCaptionType,
|
|
|
|
eHTMLCheckboxType,
|
|
|
|
eHTMLComboboxType,
|
|
|
|
eHTMLFileInputType,
|
|
|
|
eHTMLGroupboxType,
|
|
|
|
eHTMLHRType,
|
|
|
|
eHTMLImageMapType,
|
|
|
|
eHTMLLiType,
|
|
|
|
eHTMLSelectListType,
|
|
|
|
eHTMLMediaType,
|
|
|
|
eHTMLRadioButtonType,
|
2013-04-28 04:54:54 +04:00
|
|
|
eHTMLRangeType,
|
2013-12-11 07:19:26 +04:00
|
|
|
eHTMLSpinnerType,
|
2012-12-18 05:25:52 +04:00
|
|
|
eHTMLTableType,
|
|
|
|
eHTMLTableCellType,
|
|
|
|
eHTMLTableRowType,
|
|
|
|
eHTMLTextFieldType,
|
2018-03-16 14:02:00 +03:00
|
|
|
eHTMLTextPasswordFieldType,
|
2012-12-18 05:25:52 +04:00
|
|
|
eHyperTextType,
|
|
|
|
eImageType,
|
|
|
|
eOuterDocType,
|
2012-12-18 09:22:26 +04:00
|
|
|
ePluginType,
|
|
|
|
eTextLeafType,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Other accessible types.
|
|
|
|
*/
|
|
|
|
eApplicationType,
|
2012-11-10 13:41:40 +04:00
|
|
|
eHTMLOptGroupType,
|
2012-12-18 09:22:26 +04:00
|
|
|
eImageMapType,
|
|
|
|
eMenuPopupType,
|
2015-01-20 00:34:14 +03:00
|
|
|
eProxyType,
|
2012-12-18 09:22:26 +04:00
|
|
|
eProgressType,
|
|
|
|
eRootType,
|
2013-03-01 08:06:16 +04:00
|
|
|
eXULLabelType,
|
2014-03-31 18:30:46 +04:00
|
|
|
eXULListItemType,
|
2012-12-28 12:15:02 +04:00
|
|
|
eXULTabpanelsType,
|
2012-12-18 09:22:26 +04:00
|
|
|
eXULTreeType,
|
|
|
|
|
|
|
|
eLastAccType = eXULTreeType
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generic accessible type, different accessible classes can share the same
|
|
|
|
* type, the same accessible class can have several types.
|
|
|
|
*/
|
|
|
|
enum AccGenericType {
|
2016-02-29 18:08:40 +03:00
|
|
|
eAlert = 1 << 0,
|
|
|
|
eAutoComplete = 1 << 1,
|
|
|
|
eAutoCompletePopup = 1 << 2,
|
|
|
|
eButton = 1 << 3,
|
|
|
|
eCombobox = 1 << 4,
|
|
|
|
eDocument = 1 << 5,
|
|
|
|
eHyperText = 1 << 6,
|
|
|
|
eLandmark = 1 << 7,
|
|
|
|
eList = 1 << 8,
|
|
|
|
eListControl = 1 << 9,
|
|
|
|
eMenuButton = 1 << 10,
|
|
|
|
eSelect = 1 << 11,
|
|
|
|
eTable = 1 << 12,
|
|
|
|
eTableCell = 1 << 13,
|
|
|
|
eTableRow = 1 << 14,
|
2016-04-08 15:35:11 +03:00
|
|
|
eText = 1 << 15,
|
2012-12-18 09:22:26 +04:00
|
|
|
|
2016-04-08 15:35:11 +03:00
|
|
|
eLastAccGenericType = eText
|
2012-09-29 01:53:44 +04:00
|
|
|
};
|
|
|
|
|
2012-12-18 09:22:26 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_a11y_AccTypes_h
|