e6fe3a57be3a62785c4a61f949ef34bce9e57b2f
[WebKit-https.git] / WebKit / WebView.subproj / WebViewInternal.h
1 // This header contains WebView declarations that can be used anywhere in the Web Kit, but are neither SPI nor API.
2
3 #import <WebKit/WebViewPrivate.h>
4
5 @class DOMCSSStyleDeclaration;
6 @class WebBackForwardList;
7
8 @protocol WebDocumentDragging;
9
10 @interface WebViewPrivate : NSObject
11 {
12 @public
13     WebFrame *mainFrame;
14     
15     id UIDelegate;
16     id UIDelegateForwarder;
17     id resourceProgressDelegate;
18     id resourceProgressDelegateForwarder;
19     id downloadDelegate;
20     id policyDelegate;
21     id policyDelegateForwarder;
22     id frameLoadDelegate;
23     id frameLoadDelegateForwarder;
24     id <WebFormDelegate> formDelegate;
25     id editingDelegate;
26     id editingDelegateForwarder;
27     
28     WebBackForwardList *backForwardList;
29     BOOL useBackForwardList;
30     
31     float textSizeMultiplier;
32
33     NSString *applicationNameForUserAgent;
34     NSString *userAgent;
35     BOOL userAgentOverridden;
36     
37     BOOL defersCallbacks;
38
39     NSString *setName;
40
41     WebPreferences *preferences;
42     WebCoreSettings *settings;
43         
44     BOOL lastElementWasNonNil;
45
46     NSWindow *hostWindow;
47
48     int programmaticFocusCount;
49     
50     WebResourceDelegateImplementationCache resourceLoadDelegateImplementations;
51
52     long long totalPageAndResourceBytesToLoad;
53     long long totalBytesReceived;
54     double progressValue;
55     double lastNotifiedProgressValue;
56     double lastNotifiedProgressTime;
57     double progressNotificationInterval;
58     double progressNotificationTimeInterval;
59     BOOL finalProgressChangedSent;
60     WebFrame *orginatingProgressFrame;
61     
62     int numProgressTrackedFrames;
63     NSMutableDictionary *progressItems;
64     
65     void *observationInfo;
66     
67     BOOL drawsBackground;
68     BOOL editable;
69     BOOL initiatedDrag;
70         
71     NSString *mediaStyle;
72     
73     NSView <WebDocumentDragging> *draggingDocumentView;
74     unsigned int dragDestinationActionMask;
75     WebBridge *dragCaretBridge;
76     
77     DOMCSSStyleDeclaration *typingStyle;
78
79     BOOL hasSpellCheckerDocumentTag;
80     int spellCheckerDocumentTag;
81
82     BOOL continuousSpellCheckingEnabled;
83     BOOL continuousGrammarCheckingEnabled;
84     BOOL smartInsertDeleteEnabled;
85 }
86 @end
87
88 @interface WebView (WebInternal)
89 - (WebFrame *)_frameForCurrentSelection;
90 - (WebBridge *)_bridgeForCurrentSelection;
91 - (BOOL)_isLoading;
92
93 - (WebFrameView *)_frameViewAtWindowPoint:(NSPoint)point;
94 - (WebBridge *)_bridgeAtPoint:(NSPoint)point;
95 @end;
96
97 @interface WebView (WebViewEditingExtras)
98 - (BOOL)_interceptEditingKeyEvent:(NSEvent *)event;
99 - (BOOL)_shouldBeginEditingInDOMRange:(DOMRange *)range;
100 - (BOOL)_shouldEndEditingInDOMRange:(DOMRange *)range;
101 @end