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_aria_ARIAStateMap_h_
8 #define _mozilla_a11y_aria_ARIAStateMap_h_
22 * List of the ARIA state mapping rules.
42 eARIAReadonlyOrEditable
,
45 eARIASelectableIfDefined
,
46 eReadonlyUntilEditable
,
47 eIndeterminateIfNoValue
,
48 eFocusableUntilDisabled
52 * Expose the accessible states for the given element accordingly to state
55 * @param aRule [in] state mapping rule ID
56 * @param aElement [in] node of the accessible
57 * @param aState [in/out] accessible states
58 * @return true if state map rule ID is valid
60 bool MapToState(EStateRule aRule
, dom::Element
* aElement
, uint64_t* aState
);
64 } // namespace mozilla