]>
Commit | Line | Data |
---|---|---|
59efd93a JF |
1 | #import "ResetView.h" |
2 | ||
bde2d79b | 3 | #include <WebKit/DOMNodeList.h> |
bde2d79b | 4 | #include <WebKit/WebFrame.h> |
bde2d79b | 5 | #include <WebKit/WebScriptObject.h> |
1e4922b8 | 6 | #include <WebKit/WebView.h> |
bde2d79b JF |
7 | |
8 | #import <JavaScriptCore/JavaScriptCore.h> | |
9 | ||
59efd93a JF |
10 | @class NSMutableArray; |
11 | @class NSString; | |
12 | @class NSURL; | |
13 | @class NSURLRequest; | |
14 | ||
15 | @class UIProgressIndicator; | |
16 | @class UIScroller; | |
20b8724d | 17 | @class UIDocumentWebView; |
59efd93a | 18 | |
d210b85d JF |
19 | @class WebView; |
20 | ||
59efd93a | 21 | @class Database; |
20b8724d | 22 | @class IndirectDelegate; |
61b13cae JF |
23 | |
24 | @interface WebScriptObject (UICaboodle) | |
25 | - (unsigned) count; | |
26 | - (id) objectAtIndex:(unsigned)index; | |
27 | @end | |
28 | ||
c8e3b4b3 | 29 | @protocol BrowserControllerDelegate |
9ae52960 | 30 | - (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; |
61b13cae | 31 | @end |
59efd93a | 32 | |
1e4922b8 JF |
33 | @interface BrowserController : UCViewController < |
34 | HookProtocol | |
35 | > { | |
59efd93a | 36 | UIScroller *scroller_; |
2fd3803f | 37 | UIWebDocumentView *document_; |
59efd93a | 38 | UIProgressIndicator *indicator_; |
20b8724d | 39 | IndirectDelegate *indirect_; |
67c04058 | 40 | NSURLAuthenticationChallenge *challenge_; |
f4772bd1 JF |
41 | |
42 | bool error_; | |
2c3974c5 | 43 | NSURLRequest *request_; |
59efd93a | 44 | |
a99d2808 | 45 | NSNumber *confirm_; |
0fc560b6 | 46 | NSNumber *sensitive_; |
59efd93a | 47 | NSString *title_; |
9d7f5e2d | 48 | NSMutableSet *loading_; |
59efd93a | 49 | bool reloading_; |
48c0461e | 50 | |
a99d2808 JF |
51 | NSString *button_; |
52 | NSString *style_; | |
9d7f5e2d | 53 | |
a99d2808 | 54 | WebScriptObject *function_; |
1ce016d4 | 55 | WebScriptObject *closer_; |
9d7f5e2d JF |
56 | WebScriptObject *special_; |
57 | WebScriptObject *finish_; | |
a99d2808 | 58 | |
48c0461e | 59 | bool pushed_; |
7b00c562 JF |
60 | |
61 | float width_; | |
62 | bool popup_; | |
dcc55b8b JF |
63 | |
64 | CGSize size_; | |
65 | bool editing_; | |
85021801 JF |
66 | |
67 | Class class_; | |
f99f86e2 | 68 | |
c8e3b4b3 GP |
69 | id reloaditem_; |
70 | id loadingitem_; | |
59efd93a JF |
71 | } |
72 | ||
4825688a JF |
73 | + (void) _initialize; |
74 | ||
59efd93a JF |
75 | - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; |
76 | - (void) loadURL:(NSURL *)url; | |
77 | ||
78 | - (void) loadRequest:(NSURLRequest *)request; | |
79 | - (void) reloadURL; | |
1ce016d4 | 80 | - (bool) isLoading; |
59efd93a | 81 | |
9d7f5e2d JF |
82 | - (void) fixScroller; |
83 | ||
59efd93a | 84 | - (WebView *) webView; |
5a5c1e4b | 85 | - (UIWebDocumentView *) documentView; |
59efd93a | 86 | |
9ae52960 GP |
87 | - (id) init; |
88 | - (id) initWithWidth:(float)width; | |
89 | - (id) initWithWidth:(float)width ofClass:(Class)_class; | |
59efd93a | 90 | |
9d7f5e2d JF |
91 | - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; |
92 | - (void) callFunction:(WebScriptObject *)function; | |
93 | ||
853d14d3 | 94 | - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; |
cb9c2100 | 95 | - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; |
853d14d3 | 96 | |
61b13cae JF |
97 | - (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; |
98 | ||
7b00c562 | 99 | + (float) defaultWidth; |
dcc55b8b | 100 | - (void) setViewportWidth:(float)width; |
7b00c562 | 101 | |
9d7f5e2d 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 | ||
0fc560b6 JF |
107 | - (bool) promptForSensitive:(NSString *)name; |
108 | - (bool) allowSensitiveRequests; | |
109 | ||
1e4922b8 | 110 | - (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button; |
3db9f43c | 111 | - (void) customButtonClicked; |
1e4922b8 JF |
112 | - (void) applyRightButton; |
113 | ||
114 | - (void) _startLoading; | |
115 | - (void) close; | |
116 | ||
3db9f43c | 117 | @end |