tor-browser

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

mozRootAccessible.h (1489B)


      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 <Cocoa/Cocoa.h>
      9 #import "mozAccessible.h"
     10 
     11 // our protocol that we implement (so cocoa widgets can talk to us)
     12 #import "mozAccessibleProtocol.h"
     13 
     14 /*
     15  The root accessible. There is one per window.
     16  Created by the RootAccessibleWrap.
     17 */
     18 @interface mozRootAccessible : mozAccessible {
     19  // the mozView that we're representing.
     20  // all outside communication goes through the mozView.
     21  // in reality, it's just piping all calls to us, and we're
     22  // doing its dirty work!
     23  //
     24  // whenever someone asks who we are (e.g., a child asking
     25  // for its parent, or our parent asking for its child), we'll
     26  // respond the mozView. it is absolutely necessary for third-
     27  // party tools that we do this!
     28  //
     29  // /hwaara
     30  id<mozView, mozAccessible> mParallelView;  // weak ref
     31 }
     32 
     33 // override
     34 - (id)initWithAccessible:(mozilla::a11y::Accessible*)aAcc;
     35 
     36 #pragma mark - MOXAccessible
     37 
     38 // override
     39 - (NSNumber*)moxMain;
     40 
     41 // override
     42 - (NSNumber*)moxMinimized;
     43 
     44 // override
     45 - (id)moxUnignoredParent;
     46 
     47 #pragma mark - mozAccessible/widget
     48 
     49 // override
     50 - (BOOL)hasRepresentedView;
     51 
     52 // override
     53 - (id)representedView;
     54 
     55 // override
     56 - (BOOL)isRoot;
     57 
     58 @end