|
1 /* |
|
2 * Copyright (C) 2005 Apple Computer, 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 * |
|
8 * 1. Redistributions of source code must retain the above copyright |
|
9 * notice, this list of conditions and the following disclaimer. |
|
10 * 2. Redistributions in binary form must reproduce the above copyright |
|
11 * notice, this list of conditions and the following disclaimer in the |
|
12 * documentation and/or other materials provided with the distribution. |
|
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
|
14 * its contributors may be used to endorse or promote products derived |
|
15 * from this software without specific prior written permission. |
|
16 * |
|
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
|
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
|
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 */ |
|
28 |
|
29 // Things internal to the WebKit framework; not SPI. |
|
30 |
|
31 #import <WebKit/WebHTMLViewPrivate.h> |
|
32 |
|
33 @class WebTextCompleteController; |
|
34 @class DOMDocumentFragment; |
|
35 @class DOMElement; |
|
36 |
|
37 namespace WebCore { |
|
38 class KeyboardEvent; |
|
39 class CachedImage; |
|
40 } |
|
41 |
|
42 struct WebHTMLViewInterpretKeyEventsParameters; |
|
43 |
|
44 @interface WebHTMLViewPrivate : NSObject |
|
45 { |
|
46 @public |
|
47 BOOL closed; |
|
48 BOOL needsLayout; |
|
49 BOOL needsToApplyStyles; |
|
50 BOOL ignoringMouseDraggedEvents; |
|
51 BOOL printing; |
|
52 BOOL avoidingPrintOrphan; |
|
53 |
|
54 id savedSubviews; |
|
55 BOOL subviewsSetAside; |
|
56 |
|
57 NSEvent *mouseDownEvent; // Kept after handling the event. |
|
58 BOOL handlingMouseDownEvent; |
|
59 NSEvent *keyDownEvent; // Kept after handling the event. |
|
60 |
|
61 NSSize lastLayoutSize; |
|
62 NSSize lastLayoutFrameSize; |
|
63 BOOL laidOutAtLeastOnce; |
|
64 |
|
65 NSPoint lastScrollPosition; |
|
66 |
|
67 WebPluginController *pluginController; |
|
68 |
|
69 NSString *toolTip; |
|
70 NSToolTipTag lastToolTipTag; |
|
71 id trackingRectOwner; |
|
72 void *trackingRectUserData; |
|
73 |
|
74 NSTimer *autoscrollTimer; |
|
75 NSEvent *autoscrollTriggerEvent; |
|
76 |
|
77 NSArray* pageRects; |
|
78 |
|
79 NSMutableDictionary* highlighters; |
|
80 |
|
81 BOOL resigningFirstResponder; |
|
82 BOOL nextResponderDisabledOnce; |
|
83 BOOL willBecomeFirstResponderForNodeFocus; |
|
84 |
|
85 WebTextCompleteController *compController; |
|
86 |
|
87 BOOL transparentBackground; |
|
88 |
|
89 WebHTMLViewInterpretKeyEventsParameters *interpretKeyEventsParameters; |
|
90 BOOL receivedNOOP; |
|
91 |
|
92 NSTextView *firstResponderTextViewAtMouseDownTime; |
|
93 |
|
94 WebDataSource *dataSource; |
|
95 WebCore::CachedImage *promisedDragTIFFDataSource; |
|
96 |
|
97 CFRunLoopTimerRef updateActiveStateTimer; |
|
98 CFRunLoopTimerRef updateMouseoverTimer; |
|
99 |
|
100 SEL selectorForDoCommandBySelector; |
|
101 |
|
102 #ifndef NDEBUG |
|
103 BOOL enumeratingSubviews; |
|
104 #endif |
|
105 } |
|
106 - (void)clear; |
|
107 @end |
|
108 |
|
109 @interface WebHTMLView (WebInternal) |
|
110 - (void)_selectionChanged; |
|
111 - (void)_updateFontPanel; |
|
112 - (BOOL)_canSmartCopyOrDelete; |
|
113 - (BOOL)_textViewWasFirstResponderAtMouseDownTime:(NSTextView *)textView; |
|
114 #ifndef __LP64__ |
|
115 - (void)_pauseNullEventsForAllNetscapePlugins; |
|
116 - (void)_resumeNullEventsForAllNetscapePlugins; |
|
117 #endif |
|
118 - (void)_willMakeFirstResponderForNodeFocus; |
|
119 - (id<WebHTMLHighlighter>)_highlighterForType:(NSString*)type; |
|
120 - (WebFrame *)_frame; |
|
121 - (void)copy:(id)sender; |
|
122 - (void)cut:(id)sender; |
|
123 - (void)paste:(id)sender; |
|
124 - (void)pasteAsPlainText:(id)sender; |
|
125 - (void)closeIfNotCurrentView; |
|
126 - (void)_lookUpInDictionaryFromMenu:(id)sender; |
|
127 - (void)_hoverFeedbackSuspendedChanged; |
|
128 - (BOOL)_interceptEditingKeyEvent:(WebCore::KeyboardEvent *)event shouldSaveCommand:(BOOL)shouldSave; |
|
129 - (DOMDocumentFragment*)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard; |
|
130 - (NSEvent *)_mouseDownEvent; |
|
131 #ifndef BUILDING_ON_TIGER |
|
132 - (BOOL)isGrammarCheckingEnabled; |
|
133 - (void)setGrammarCheckingEnabled:(BOOL)flag; |
|
134 - (void)toggleGrammarChecking:(id)sender; |
|
135 #endif |
|
136 - (WebCore::CachedImage*)promisedDragTIFFDataSource; |
|
137 - (void)setPromisedDragTIFFDataSource:(WebCore::CachedImage*)source; |
|
138 - (void)_web_layoutIfNeededRecursive; |
|
139 @end |