accessible/src/mac/mozDocAccessible.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/mac/mozDocAccessible.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#import <Cocoa/Cocoa.h>
    1.10 +#import "mozAccessible.h"
    1.11 +
    1.12 +// our protocol that we implement (so cocoa widgets can talk to us)
    1.13 +#import "mozAccessibleProtocol.h"
    1.14 +
    1.15 +/* 
    1.16 +  The root accessible. There is one per window.
    1.17 +  Created by the RootAccessibleWrap.
    1.18 +*/
    1.19 +@interface mozRootAccessible : mozAccessible
    1.20 +{
    1.21 +  // the mozView that we're representing.
    1.22 +  // all outside communication goes through the mozView.
    1.23 +  // in reality, it's just piping all calls to us, and we're
    1.24 +  // doing its dirty work!
    1.25 +  //
    1.26 +  // whenever someone asks who we are (e.g., a child asking
    1.27 +  // for its parent, or our parent asking for its child), we'll
    1.28 +  // respond the mozView. it is absolutely necessary for third-
    1.29 +  // party tools that we do this!
    1.30 +  //
    1.31 +  // /hwaara
    1.32 +  id <mozView, mozAccessible> mParallelView; // weak ref
    1.33 +}
    1.34 +@end

mercurial