// Copyright 1998-1999 Omni Development, Inc.  All rights reserved.
//
// $Header: /Network/Source/CVS/OmniGroup/OmniHTML/Scripting.subproj/OWScriptEventHandlerHolder.h,v 1.2 1999/06/19 00:50:34 kc Exp $

#import <OmniFoundation/OFObject.h>
#import "OWScriptEvent.h"
#import "OWScriptResponderProtocol.h"

@interface OWScriptEventHandlerHolder : OFObject <OWScriptResponder>
{
    NSLock *eventHandlerLock;
    NSMutableDictionary *eventHandlers;
}


- (BOOL)handleHTMLEvent:(OWScriptEvent *)event;

- (BOOL)handleHTMLEventsInMainThread;

- (void)setHandler:(id <OWScriptResponder>)handler forEventType:(OWScriptEventType)type;

@end
