]>
Commit | Line | Data |
---|---|---|
59efd93a JF |
1 | #import "ResetView.h" |
2 | ||
bde2d79b JF |
3 | #include <WebKit/DOMCSSPrimitiveValue.h> |
4 | #include <WebKit/DOMCSSStyleDeclaration.h> | |
5 | #include <WebKit/DOMDocument.h> | |
6 | #include <WebKit/DOMHTMLBodyElement.h> | |
7 | #include <WebKit/DOMNodeList.h> | |
8 | #include <WebKit/DOMRGBColor.h> | |
9 | ||
10 | #include <WebKit/WebFrame.h> | |
11 | #include <WebKit/WebPolicyDelegate.h> | |
12 | #include <WebKit/WebPreferences.h> | |
13 | #include <WebKit/WebScriptObject.h> | |
14 | ||
15 | #import <WebKit/WebView.h> | |
16 | #import <WebKit/WebView-WebPrivate.h> | |
17 | ||
18 | #include <WebCore/Page.h> | |
19 | #include <WebCore/Settings.h> | |
20 | ||
21 | #import <JavaScriptCore/JavaScriptCore.h> | |
22 | ||
59efd93a JF |
23 | @class NSMutableArray; |
24 | @class NSString; | |
25 | @class NSURL; | |
26 | @class NSURLRequest; | |
27 | ||
28 | @class UIProgressIndicator; | |
29 | @class UIScroller; | |
20b8724d | 30 | @class UIDocumentWebView; |
59efd93a | 31 | |
d210b85d JF |
32 | @class WebView; |
33 | ||
59efd93a | 34 | @class Database; |
20b8724d | 35 | @class IndirectDelegate; |
61b13cae JF |
36 | |
37 | @interface WebScriptObject (UICaboodle) | |
38 | - (unsigned) count; | |
39 | - (id) objectAtIndex:(unsigned)index; | |
40 | @end | |
41 | ||
42 | @protocol BrowserViewDelegate | |
43 | - (RVPage *) pageForURL:(NSURL *)url hasTag:(int *)tag; | |
44 | @end | |
59efd93a | 45 | |
1ce016d4 JF |
46 | @interface BrowserView : RVPage < |
47 | RVBookHook | |
48 | > { | |
59efd93a | 49 | UIScroller *scroller_; |
20b8724d | 50 | UIWebDocumentView *webview_; |
59efd93a | 51 | UIProgressIndicator *indicator_; |
20b8724d | 52 | IndirectDelegate *indirect_; |
67c04058 | 53 | NSURLAuthenticationChallenge *challenge_; |
f4772bd1 JF |
54 | |
55 | bool error_; | |
2c3974c5 | 56 | NSURLRequest *request_; |
59efd93a | 57 | |
a99d2808 | 58 | NSNumber *confirm_; |
0fc560b6 | 59 | NSNumber *sensitive_; |
59efd93a | 60 | NSString *title_; |
9d7f5e2d | 61 | NSMutableSet *loading_; |
59efd93a | 62 | bool reloading_; |
48c0461e | 63 | |
a99d2808 JF |
64 | NSString *button_; |
65 | NSString *style_; | |
9d7f5e2d | 66 | |
a99d2808 | 67 | WebScriptObject *function_; |
1ce016d4 | 68 | WebScriptObject *closer_; |
9d7f5e2d JF |
69 | WebScriptObject *special_; |
70 | WebScriptObject *finish_; | |
a99d2808 | 71 | |
48c0461e | 72 | bool pushed_; |
7b00c562 JF |
73 | |
74 | float width_; | |
75 | bool popup_; | |
dcc55b8b JF |
76 | |
77 | CGSize size_; | |
78 | bool editing_; | |
59efd93a JF |
79 | } |
80 | ||
67c04058 JF |
81 | - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; |
82 | ||
59efd93a JF |
83 | - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; |
84 | - (void) loadURL:(NSURL *)url; | |
85 | ||
86 | - (void) loadRequest:(NSURLRequest *)request; | |
87 | - (void) reloadURL; | |
1ce016d4 | 88 | - (bool) isLoading; |
59efd93a | 89 | |
9d7f5e2d JF |
90 | - (void) fixScroller; |
91 | ||
59efd93a | 92 | - (WebView *) webView; |
5a5c1e4b | 93 | - (UIWebDocumentView *) documentView; |
59efd93a | 94 | |
5fd870e0 | 95 | - (id) initWithBook:(RVBook *)book; |
7b00c562 | 96 | - (id) initWithBook:(RVBook *)book forWidth:(float)width; |
59efd93a | 97 | |
9d7f5e2d JF |
98 | - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; |
99 | - (void) callFunction:(WebScriptObject *)function; | |
100 | ||
853d14d3 | 101 | - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; |
cb9c2100 | 102 | - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; |
853d14d3 | 103 | |
61b13cae JF |
104 | - (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; |
105 | ||
7b00c562 | 106 | + (float) defaultWidth; |
dcc55b8b | 107 | - (void) setViewportWidth:(float)width; |
7b00c562 | 108 | |
9d7f5e2d JF |
109 | - (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; |
110 | - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; | |
111 | - (void) setFinishHook:(id)function; | |
112 | - (void) setPopupHook:(id)function; | |
113 | ||
b456f1c9 JF |
114 | - (id) _rightButtonTitle; |
115 | ||
0fc560b6 JF |
116 | - (bool) promptForSensitive:(NSString *)name; |
117 | - (bool) allowSensitiveRequests; | |
118 | ||
59efd93a | 119 | @end |