tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Filters.h (882B)


      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/. */
      4 
      5 #ifndef mozilla_a11y_Filters_h__
      6 #define mozilla_a11y_Filters_h__
      7 
      8 #include <stdint.h>
      9 
     10 /**
     11 * Predefined filters used for nsAccIterator and nsAccCollector.
     12 */
     13 namespace mozilla {
     14 namespace a11y {
     15 
     16 class LocalAccessible;
     17 
     18 namespace filters {
     19 
     20 enum EResult { eSkip = 0, eMatch = 1, eSkipSubtree = 2 };
     21 
     22 /**
     23 * Return true if the traversed accessible complies with filter.
     24 */
     25 typedef uint32_t (*FilterFuncPtr)(LocalAccessible*);
     26 
     27 /**
     28 * Matches selected/selectable accessibles in subtree.
     29 */
     30 uint32_t GetSelected(LocalAccessible* aAccessible);
     31 uint32_t GetSelectable(LocalAccessible* aAccessible);
     32 }  // namespace filters
     33 }  // namespace a11y
     34 }  // namespace mozilla
     35 
     36 #endif