1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_a11y_Filters_h__
6 #define mozilla_a11y_Filters_h__
11 * Predefined filters used for nsAccIterator and nsAccCollector.
16 class LocalAccessible
;
20 enum EResult
{ eSkip
= 0, eMatch
= 1, eSkipSubtree
= 2 };
23 * Return true if the traversed accessible complies with filter.
25 typedef uint32_t (*FilterFuncPtr
)(LocalAccessible
*);
28 * Matches selected/selectable accessibles in subtree.
30 uint32_t GetSelected(LocalAccessible
* aAccessible
);
31 uint32_t GetSelectable(LocalAccessible
* aAccessible
);
32 } // namespace filters
34 } // namespace mozilla