]>
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 | ||
c8e3b4b3 | 42 | @protocol BrowserControllerDelegate |
9ae52960 | 43 | - (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; |
61b13cae | 44 | @end |
59efd93a | 45 | |
c8e3b4b3 | 46 | @interface BrowserController : UCViewController { |
59efd93a | 47 | UIScroller *scroller_; |
2fd3803f | 48 | UIWebDocumentView *document_; |
59efd93a | 49 | UIProgressIndicator *indicator_; |
20b8724d | 50 | IndirectDelegate *indirect_; |
67c04058 | 51 | NSURLAuthenticationChallenge *challenge_; |
f4772bd1 JF |
52 | |
53 | bool error_; | |
2c3974c5 | 54 | NSURLRequest *request_; |
59efd93a | 55 | |
a99d2808 | 56 | NSNumber *confirm_; |
0fc560b6 | 57 | NSNumber *sensitive_; |
59efd93a | 58 | NSString *title_; |
9d7f5e2d | 59 | NSMutableSet *loading_; |
59efd93a | 60 | bool reloading_; |
48c0461e | 61 | |
a99d2808 JF |
62 | NSString *button_; |
63 | NSString *style_; | |
9d7f5e2d | 64 | |
a99d2808 | 65 | WebScriptObject *function_; |
1ce016d4 | 66 | WebScriptObject *closer_; |
9d7f5e2d JF |
67 | WebScriptObject *special_; |
68 | WebScriptObject *finish_; | |
a99d2808 | 69 | |
48c0461e | 70 | bool pushed_; |
7b00c562 JF |
71 | |
72 | float width_; | |
73 | bool popup_; | |
dcc55b8b JF |
74 | |
75 | CGSize size_; | |
76 | bool editing_; | |
85021801 JF |
77 | |
78 | Class class_; | |
c8e3b4b3 GP |
79 | |
80 | id reloaditem_; | |
81 | id loadingitem_; | |
59efd93a JF |
82 | } |
83 | ||
4825688a JF |
84 | + (void) _initialize; |
85 | ||
67c04058 JF |
86 | - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; |
87 | ||
59efd93a JF |
88 | - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; |
89 | - (void) loadURL:(NSURL *)url; | |
90 | ||
91 | - (void) loadRequest:(NSURLRequest *)request; | |
92 | - (void) reloadURL; | |
1ce016d4 | 93 | - (bool) isLoading; |
59efd93a | 94 | |
9d7f5e2d JF |
95 | - (void) fixScroller; |
96 | ||
59efd93a | 97 | - (WebView *) webView; |
5a5c1e4b | 98 | - (UIWebDocumentView *) documentView; |
59efd93a | 99 | |
9ae52960 GP |
100 | - (id) init; |
101 | - (id) initWithWidth:(float)width; | |
102 | - (id) initWithWidth:(float)width ofClass:(Class)_class; | |
59efd93a | 103 | |
9d7f5e2d JF |
104 | - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; |
105 | - (void) callFunction:(WebScriptObject *)function; | |
106 | ||
853d14d3 | 107 | - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; |
cb9c2100 | 108 | - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; |
853d14d3 | 109 | |
61b13cae JF |
110 | - (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; |
111 | ||
7b00c562 | 112 | + (float) defaultWidth; |
dcc55b8b | 113 | - (void) setViewportWidth:(float)width; |
7b00c562 | 114 | |
9d7f5e2d JF |
115 | - (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; |
116 | - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; | |
117 | - (void) setFinishHook:(id)function; | |
118 | - (void) setPopupHook:(id)function; | |
119 | ||
0fc560b6 JF |
120 | - (bool) promptForSensitive:(NSString *)name; |
121 | - (bool) allowSensitiveRequests; | |
122 | ||
9ae52960 | 123 | @end |