1563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark/*
2563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
3563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark consideration of your agreement to the following terms, and your use, installation,
4563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark modification or redistribution of this Apple software constitutes acceptance of these
5563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark terms.  If you do not agree with these terms, please do not use, install, modify or
6563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark redistribute this Apple software.
7563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
8563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark In consideration of your agreement to abide by the following terms, and subject to these
9563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark terms, Apple grants you a personal, non-exclusive license, under Apple’s copyrights in
10563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark this original Apple software (the "Apple Software"), to use, reproduce, modify and
11563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark redistribute the Apple Software, with or without modifications, in source and/or binary
12563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark forms; provided that if you redistribute the Apple Software in its entirety and without
13563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark modifications, you must retain this notice and the following text and disclaimers in all
14563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark such redistributions of the Apple Software.  Neither the name, trademarks, service marks
15563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
16563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark the Apple Software without specific prior written permission from Apple. Except as expressly
17563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark stated in this notice, no other rights or licenses, express or implied, are granted by Apple
18563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark herein, including but not limited to any patent rights that may be infringed by your
19563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark derivative works or by other works in which the Apple Software may be incorporated.
20563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
21563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO WARRANTIES,
22563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
23563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
24563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
25563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
26563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
27563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
29563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
30563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
31563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark */
33563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
34563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark#import <Cocoa/Cocoa.h>
35563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark#import <WebKit/npfunctions.h>
36563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
37563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark@interface MenuHandler : NSObject {
38563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark    NSMenu *menu;
39563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark    NPNetscapeFuncs *browserFuncs;
40563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark    NPP instance;
41563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark}
42563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
43563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark- (id)initWithBrowserFuncs:(NPNetscapeFuncs *)theBrowserFuncs instance:(NPP)theInstance;
44563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
45563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark- (NSMenu *)menu;
46563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark
47563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark@end
48