]>
Commit | Line | Data |
---|---|---|
ab398adf JF |
1 | #import "ResetView.h" |
2 | ||
22f8bed9 | 3 | #include <WebKit/DOMNodeList.h> |
22f8bed9 | 4 | #include <WebKit/WebFrame.h> |
22f8bed9 | 5 | #include <WebKit/WebScriptObject.h> |
c21004b9 | 6 | #include <WebKit/WebView.h> |
22f8bed9 JF |
7 | |
8 | #import <JavaScriptCore/JavaScriptCore.h> | |
9 | ||
ab398adf JF |
10 | @class NSMutableArray; |
11 | @class NSString; | |
12 | @class NSURL; | |
13 | @class NSURLRequest; | |
14 | ||
15 | @class UIProgressIndicator; | |
16 | @class UIScroller; | |
facbc56d | 17 | @class UIDocumentWebView; |
ab398adf | 18 | |
a9543575 JF |
19 | @class WebView; |
20 | ||
ab398adf | 21 | @class Database; |
facbc56d | 22 | @class IndirectDelegate; |
43f3d7f6 JF |
23 | |
24 | @interface WebScriptObject (UICaboodle) | |
25 | - (unsigned) count; | |
26 | - (id) objectAtIndex:(unsigned)index; | |
27 | @end | |
28 | ||
2e6c1426 | 29 | @protocol BrowserControllerDelegate |
b5e7eebb | 30 | - (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; |
43f3d7f6 | 31 | @end |
ab398adf | 32 | |
c21004b9 JF |
33 | @interface BrowserController : UCViewController < |
34 | HookProtocol | |
35 | > { | |
ab398adf | 36 | UIScroller *scroller_; |
ebffe5ce | 37 | UIWebDocumentView *document_; |
ab398adf | 38 | UIProgressIndicator *indicator_; |
facbc56d | 39 | IndirectDelegate *indirect_; |
0ce617c8 | 40 | NSURLAuthenticationChallenge *challenge_; |
fe468f45 JF |
41 | |
42 | bool error_; | |
0c7c9052 | 43 | NSURLRequest *request_; |
ab398adf | 44 | |
9fe5e5f8 | 45 | NSNumber *confirm_; |
0dceb29b | 46 | NSNumber *sensitive_; |
ab398adf | 47 | NSString *title_; |
caa427d1 | 48 | NSMutableSet *loading_; |
ab398adf | 49 | bool reloading_; |
a0376fc1 | 50 | |
9fe5e5f8 JF |
51 | NSString *button_; |
52 | NSString *style_; | |
caa427d1 | 53 | |
9fe5e5f8 | 54 | WebScriptObject *function_; |
12b59862 | 55 | WebScriptObject *closer_; |
caa427d1 JF |
56 | WebScriptObject *special_; |
57 | WebScriptObject *finish_; | |
9fe5e5f8 | 58 | |
a0376fc1 | 59 | bool pushed_; |
3e9c9e85 JF |
60 | |
61 | float width_; | |
62 | bool popup_; | |
eb35c522 JF |
63 | |
64 | CGSize size_; | |
65 | bool editing_; | |
245cce8a JF |
66 | |
67 | Class class_; | |
bc11cf5b | 68 | |
2e6c1426 GP |
69 | id reloaditem_; |
70 | id loadingitem_; | |
ab398adf JF |
71 | } |
72 | ||
ea173384 JF |
73 | + (void) _initialize; |
74 | ||
ab398adf JF |
75 | - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; |
76 | - (void) loadURL:(NSURL *)url; | |
77 | ||
78 | - (void) loadRequest:(NSURLRequest *)request; | |
79 | - (void) reloadURL; | |
12b59862 | 80 | - (bool) isLoading; |
ab398adf | 81 | |
caa427d1 JF |
82 | - (void) fixScroller; |
83 | ||
ab398adf | 84 | - (WebView *) webView; |
1b1b3f4a | 85 | - (UIWebDocumentView *) documentView; |
ab398adf | 86 | |
b5e7eebb GP |
87 | - (id) init; |
88 | - (id) initWithWidth:(float)width; | |
89 | - (id) initWithWidth:(float)width ofClass:(Class)_class; | |
ab398adf | 90 | |
caa427d1 JF |
91 | - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; |
92 | - (void) callFunction:(WebScriptObject *)function; | |
93 | ||
7d2ac47f | 94 | - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; |
c390d3ab | 95 | - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; |
7d2ac47f | 96 | |
43f3d7f6 JF |
97 | - (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; |
98 | ||
3e9c9e85 | 99 | + (float) defaultWidth; |
eb35c522 | 100 | - (void) setViewportWidth:(float)width; |
3e9c9e85 | 101 | |
caa427d1 JF |
102 | - (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; |
103 | - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; | |
104 | - (void) setFinishHook:(id)function; | |
105 | - (void) setPopupHook:(id)function; | |
106 | ||
0dceb29b JF |
107 | - (bool) promptForSensitive:(NSString *)name; |
108 | - (bool) allowSensitiveRequests; | |
109 | ||
c21004b9 JF |
110 | - (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button; |
111 | - (void) applyRightButton; | |
112 | ||
113 | - (void) _startLoading; | |
114 | - (void) close; | |
115 | ||
b5e7eebb | 116 | @end |