2012-09-28 14:53:44 -07: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-17 21:22:26 -08:00
|
|
|
#ifndef mozilla_a11y_AccTypes_h
|
|
|
|
#define mozilla_a11y_AccTypes_h
|
2012-09-28 14:53:44 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
|
|
|
/**
|
2012-12-17 21:22:26 -08:00
|
|
|
* Accessible object types. Each accessible class can have own type.
|
2012-09-28 14:53:44 -07:00
|
|
|
*/
|
|
|
|
enum AccType {
|
2012-12-17 21:22:26 -08: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 02:04:12 -08:00
|
|
|
eNoType,
|
2012-12-17 17:25:52 -08:00
|
|
|
eHTMLBRType,
|
|
|
|
eHTMLButtonType,
|
|
|
|
eHTMLCanvasType,
|
|
|
|
eHTMLCaptionType,
|
|
|
|
eHTMLCheckboxType,
|
|
|
|
eHTMLComboboxType,
|
|
|
|
eHTMLFileInputType,
|
|
|
|
eHTMLGroupboxType,
|
|
|
|
eHTMLHRType,
|
|
|
|
eHTMLImageMapType,
|
|
|
|
eHTMLLiType,
|
|
|
|
eHTMLSelectListType,
|
|
|
|
eHTMLMediaType,
|
|
|
|
eHTMLRadioButtonType,
|
2013-04-27 17:54:54 -07:00
|
|
|
eHTMLRangeType,
|
2013-12-10 19:19:26 -08:00
|
|
|
eHTMLSpinnerType,
|
2012-12-17 17:25:52 -08:00
|
|
|
eHTMLTableType,
|
|
|
|
eHTMLTableCellType,
|
|
|
|
eHTMLTableRowType,
|
|
|
|
eHTMLTextFieldType,
|
|
|
|
eHyperTextType,
|
|
|
|
eImageType,
|
|
|
|
eOuterDocType,
|
2012-12-17 21:22:26 -08:00
|
|
|
ePluginType,
|
|
|
|
eTextLeafType,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Other accessible types.
|
|
|
|
*/
|
|
|
|
eApplicationType,
|
2012-11-10 01:41:40 -08:00
|
|
|
eHTMLOptGroupType,
|
2012-12-17 21:22:26 -08:00
|
|
|
eImageMapType,
|
|
|
|
eMenuPopupType,
|
|
|
|
eProgressType,
|
|
|
|
eRootType,
|
2013-02-28 20:06:16 -08:00
|
|
|
eXULLabelType,
|
2014-03-31 07:30:46 -07:00
|
|
|
eXULListItemType,
|
2012-12-28 00:15:02 -08:00
|
|
|
eXULTabpanelsType,
|
2012-12-17 21:22:26 -08: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 {
|
|
|
|
eAutoComplete = 1 << 0,
|
|
|
|
eAutoCompletePopup = 1 << 1,
|
2014-04-04 01:01:19 -07:00
|
|
|
eButton = 1 << 2,
|
|
|
|
eCombobox = 1 << 3,
|
|
|
|
eDocument = 1 << 4,
|
|
|
|
eHyperText = 1 << 5,
|
|
|
|
eList = 1 << 6,
|
|
|
|
eListControl = 1 << 7,
|
|
|
|
eMenuButton = 1 << 8,
|
|
|
|
eSelect = 1 << 9,
|
|
|
|
eTable = 1 << 10,
|
|
|
|
eTableCell = 1 << 11,
|
|
|
|
eTableRow = 1 << 12,
|
2012-12-17 21:22:26 -08:00
|
|
|
|
|
|
|
eLastAccGenericType = eTableRow
|
2012-09-28 14:53:44 -07:00
|
|
|
};
|
|
|
|
|
2012-12-17 21:22:26 -08:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_a11y_AccTypes_h
|