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

/* old-fashioned single-include thing to work around cc bug */
#ifndef OWSCRIPTRESPONDERPROTOCOL_H
#define OWSCRIPTRESPONDERPROTOCOL_H

#import <Foundation/Foundation.h>

@class OWScriptEvent;

@protocol OWScriptResponder <NSObject>

/* Invoke a script event handler. Returns TRUE to indicate that the browser action should happen, FALSE to calcel it (if possible) */
- (BOOL)handleHTMLEvent:(OWScriptEvent *)event;

/* Returns YES if the responder wants to be invoked in the main thread; NO otherwise. TODO: Should the event itself be passed in to help it decide? */
- (BOOL)handleHTMLEventsInMainThread;

@end

#if 0
@protocol OWScriptEventRegistry

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

@end
#endif

#endif /* OWSCRIPTRESPONDERPROTOCOL_H */

