1/*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef WAKResponder_h
27#define WAKResponder_h
28
29#if TARGET_OS_IPHONE
30
31#import "WKTypes.h"
32#import <Foundation/Foundation.h>
33
34@class WebEvent;
35
36@interface WAKResponder : NSObject
37{
38
39}
40
41- (void)handleEvent:(WebEvent *)event;
42
43- (void)scrollWheel:(WebEvent *)theEvent;
44- (BOOL)tryToPerform:(SEL)anAction with:(id)anObject;
45- (void)mouseEntered:(WebEvent *)theEvent;
46- (void)mouseExited:(WebEvent *)theEvent;
47- (void)keyDown:(WebEvent *)event;
48- (void)keyUp:(WebEvent *)event;
49- (void)touch:(WebEvent *)event;
50
51- (void)insertText:(NSString *)text;
52
53- (void)deleteBackward:(id)sender;
54- (void)deleteForward:(id)sender;
55- (void)insertParagraphSeparator:(id)sender;
56
57- (void)moveDown:(id)sender;
58- (void)moveDownAndModifySelection:(id)sender;
59- (void)moveLeft:(id)sender;
60- (void)moveLeftAndModifySelection:(id)sender;
61- (void)moveRight:(id)sender;
62- (void)moveRightAndModifySelection:(id)sender;
63- (void)moveUp:(id)sender;
64- (void)moveUpAndModifySelection:(id)sender;
65
66- (WAKResponder *)nextResponder;
67- (BOOL)acceptsFirstResponder;
68- (BOOL)becomeFirstResponder;
69- (BOOL)resignFirstResponder;
70
71- (void)mouseUp:(WebEvent *)theEvent;
72- (void)mouseDown:(WebEvent *)theEvent;
73- (void)mouseMoved:(WebEvent *)theEvent;
74
75@end
76
77#endif // TARGET_OS_IPHONE
78
79#endif // WAKResponder_h
80