3 #include <WebKit/DOMNodeList.h>
4 #include <WebKit/WebFrame.h>
5 #include <WebKit/WebScriptObject.h>
6 #include <WebKit/WebView.h>
8 #import <JavaScriptCore/JavaScriptCore.h>
10 @
class NSMutableArray
;
15 @
class UIProgressIndicator
;
17 @
class UIDocumentWebView
;
22 @
class IndirectDelegate
;
24 @interface
WebScriptObject (UICaboodle
)
26 - (id
) objectAtIndex
:(unsigned)index
;
29 @protocol BrowserControllerDelegate
30 - (UCViewController
*) pageForURL
:(NSURL
*)url hasTag
:(int *)tag
;
33 @interface BrowserController
: UCViewController
<
36 UIScroller
*scroller_
;
37 UIWebDocumentView
*document_
;
38 UIProgressIndicator
*indicator_
;
39 IndirectDelegate
*indirect_
;
40 NSURLAuthenticationChallenge
*challenge_
;
43 NSURLRequest
*request_
;
48 NSMutableSet
*loading_
;
54 WebScriptObject
*function_
;
55 WebScriptObject
*closer_
;
56 WebScriptObject
*special_
;
57 WebScriptObject
*finish_
;
75 - (void) loadURL
:(NSURL
*)url cachePolicy
:(NSURLRequestCachePolicy
)policy
;
76 - (void) loadURL
:(NSURL
*)url
;
78 - (void) loadRequest
:(NSURLRequest
*)request
;
84 - (WebView
*) webView
;
85 - (UIWebDocumentView
*) documentView
;
88 - (id
) initWithWidth
:(float)width
;
89 - (id
) initWithWidth
:(float)width ofClass
:(Class
)_class
;
91 - (NSString
*) stringByEvaluatingJavaScriptFromString
:(NSString
*)script
;
92 - (void) callFunction
:(WebScriptObject
*)function
;
94 - (void) webView
:(WebView
*)sender didFinishLoadForFrame
:(WebFrame
*)frame
;
95 - (void) webView
:(WebView
*)sender didClearWindowObject
:(WebScriptObject
*)window forFrame
:(WebFrame
*)frame
;
97 - (NSURLRequest
*) webView
:(WebView
*)sender resource
:(id
)identifier willSendRequest
:(NSURLRequest
*)request redirectResponse
:(NSURLResponse
*)redirectResponse fromDataSource
:(WebDataSource
*)source
;
99 + (float) defaultWidth
;
100 - (void) setViewportWidth
:(float)width
;
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
;
107 - (bool) promptForSensitive
:(NSString
*)name
;
108 - (bool) allowSensitiveRequests
;
110 - (void) alertView
:(UIAlertView
*)alert clickedButtonAtIndex
:(NSInteger
)button
;
111 - (void) customButtonClicked
;
112 - (void) applyRightButton
;
114 - (void) _startLoading
;