tor-browser

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

Filters.cpp (696B)


      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 #include "Filters.h"
      6 
      7 #include "LocalAccessible-inl.h"
      8 #include "States.h"
      9 
     10 using namespace mozilla::a11y;
     11 using namespace mozilla::a11y::filters;
     12 
     13 uint32_t filters::GetSelected(LocalAccessible* aAccessible) {
     14  if (aAccessible->State() & states::SELECTED) return eMatch | eSkipSubtree;
     15 
     16  return eSkip;
     17 }
     18 
     19 uint32_t filters::GetSelectable(LocalAccessible* aAccessible) {
     20  if (aAccessible->InteractiveState() & states::SELECTABLE) {
     21    return eMatch | eSkipSubtree;
     22  }
     23 
     24  return eSkip;
     25 }