Bug 1877642 - Disable browser_fullscreen-tab-close-race.js on apple_silicon !debug...
[gecko.git] / accessible / base / Filters.h
blob486beb5c838ef303e2c3d410ca544c1839f91d7f
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__
8 #include <stdint.h>
10 /**
11 * Predefined filters used for nsAccIterator and nsAccCollector.
13 namespace mozilla {
14 namespace a11y {
16 class LocalAccessible;
18 namespace filters {
20 enum EResult { eSkip = 0, eMatch = 1, eSkipSubtree = 2 };
22 /**
23 * Return true if the traversed accessible complies with filter.
25 typedef uint32_t (*FilterFuncPtr)(LocalAccessible*);
27 /**
28 * Matches selected/selectable accessibles in subtree.
30 uint32_t GetSelected(LocalAccessible* aAccessible);
31 uint32_t GetSelectable(LocalAccessible* aAccessible);
32 } // namespace filters
33 } // namespace a11y
34 } // namespace mozilla
36 #endif