tor-browser

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

MUIRootAccessibleProtocol.h (1346B)


      1 /* clang-format off */
      2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      3 /* clang-format on */
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5 * License, v. 2.0. If a copy of the MPL was not distributed with this
      6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 #import <Foundation/Foundation.h>
      9 #import <UIKit/UIAccessibility.h>
     10 
     11 /* This protocol's primary use is so widget/cocoa can talk back to us
     12   properly.
     13 
     14   ChildView owns the topmost MUIRootAccessible, and needs to take care of
     15   setting up that parent/child relationship.
     16 
     17   This protocol is thus used to make sure it knows it's talking to us, and not
     18   just some random |id|.
     19 */
     20 
     21 @protocol MUIRootAccessibleProtocol <NSObject>
     22 
     23 - (BOOL)hasRepresentedView;
     24 
     25 - (nullable id)representedView;
     26 
     27 // UIAccessibility
     28 
     29 - (BOOL)isAccessibilityElement;
     30 
     31 - (nullable NSString*)accessibilityLabel;
     32 
     33 - (CGRect)accessibilityFrame;
     34 
     35 - (nullable NSString*)accessibilityValue;
     36 
     37 - (uint64_t)accessibilityTraits;
     38 
     39 // UIAccessibilityContainer
     40 
     41 - (NSInteger)accessibilityElementCount;
     42 
     43 - (nullable id)accessibilityElementAtIndex:(NSInteger)index;
     44 
     45 - (NSInteger)indexOfAccessibilityElement:(nonnull id)element;
     46 
     47 - (nullable NSArray*)accessibilityElements;
     48 
     49 - (UIAccessibilityContainerType)accessibilityContainerType;
     50 
     51 @end