2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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/. */
8 #import <Cocoa/Cocoa.h>
9 #import "mozAccessible.h"
11 // our protocol that we implement (so cocoa widgets can talk to us)
12 #import "mozAccessibleProtocol.h"
15 The root accessible. There is one per window.
16 Created by the RootAccessibleWrap.
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!
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!
30 id
<mozView
, mozAccessible
> mParallelView
; // weak ref
34 - (id
)initWithAccessible
:(mozilla::a11y::Accessible
*)aAcc
;
36 #pragma mark - MOXAccessible
42 - (NSNumber
*)moxMinimized
;
45 - (id
)moxUnignoredParent
;
47 #pragma mark - mozAccessible/widget
50 - (BOOL
)hasRepresentedView
;
53 - (id
)representedView
;