no bug - Correct some typos in the comments. a=typo-fix
[gecko.git] / accessible / mac / mozRootAccessible.h
blob929eca01dd3c01a2af1fcd08533eaa13f2a903fe
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/. */
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!
29 // /hwaara
30 id<mozView, mozAccessible> mParallelView; // weak ref
33 // override
34 - (id)initWithAccessible:(mozilla::a11y::Accessible*)aAcc;
36 #pragma mark - MOXAccessible
38 // override
39 - (NSNumber*)moxMain;
41 // override
42 - (NSNumber*)moxMinimized;
44 // override
45 - (id)moxUnignoredParent;
47 #pragma mark - mozAccessible/widget
49 // override
50 - (BOOL)hasRepresentedView;
52 // override
53 - (id)representedView;
55 // override
56 - (BOOL)isRoot;
58 @end