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>
10 #include <WebKit/WebFrame.h>
11 #include <WebKit/WebPolicyDelegate.h>
12 #include <WebKit/WebPreferences.h>
13 #include <WebKit/WebScriptObject.h>
15 #import <WebKit/WebView.h>
16 #import <WebKit/WebView-WebPrivate.h>
18 #include <WebCore/Page.h>
19 #include <WebCore/Settings.h>
21 #import <JavaScriptCore/JavaScriptCore.h>
23 @
class NSMutableArray
;
28 @
class UIProgressIndicator
;
30 @
class UIDocumentWebView
;
35 @
class IndirectDelegate
;
37 @interface
WebScriptObject (UICaboodle
)
39 - (id
) objectAtIndex
:(unsigned)index
;
42 @protocol BrowserViewDelegate
43 - (RVPage
*) pageForURL
:(NSURL
*)url hasTag
:(int *)tag
;
46 @interface BrowserView
: RVPage
<
49 UIScroller
*scroller_
;
50 UIWebDocumentView
*webview_
;
51 UIProgressIndicator
*indicator_
;
52 IndirectDelegate
*indirect_
;
53 NSURLAuthenticationChallenge
*challenge_
;
56 NSURLRequest
*request_
;
61 NSMutableSet
*loading_
;
67 WebScriptObject
*function_
;
68 WebScriptObject
*closer_
;
69 WebScriptObject
*special_
;
70 WebScriptObject
*finish_
;
85 - (void) alertSheet
:(UIActionSheet
*)sheet buttonClicked
:(int)button
;
87 - (void) loadURL
:(NSURL
*)url cachePolicy
:(NSURLRequestCachePolicy
)policy
;
88 - (void) loadURL
:(NSURL
*)url
;
90 - (void) loadRequest
:(NSURLRequest
*)request
;
96 - (WebView
*) webView
;
97 - (UIWebDocumentView
*) documentView
;
99 - (id
) initWithBook
:(RVBook
*)book
;
100 - (id
) initWithBook
:(RVBook
*)book forWidth
:(float)width
;
101 - (id
) initWithBook
:(RVBook
*)book forWidth
:(float)width ofClass
:(Class
)_class
;
103 - (NSString
*) stringByEvaluatingJavaScriptFromString
:(NSString
*)script
;
104 - (void) callFunction
:(WebScriptObject
*)function
;
106 - (void) webView
:(WebView
*)sender didFinishLoadForFrame
:(WebFrame
*)frame
;
107 - (void) webView
:(WebView
*)sender didClearWindowObject
:(WebScriptObject
*)window forFrame
:(WebFrame
*)frame
;
109 - (NSURLRequest
*) webView
:(WebView
*)sender resource
:(id
)identifier willSendRequest
:(NSURLRequest
*)request redirectResponse
:(NSURLResponse
*)redirectResponse fromDataSource
:(WebDataSource
*)source
;
111 + (float) defaultWidth
;
112 - (void) setViewportWidth
:(float)width
;
114 - (void) setButtonImage
:(NSString
*)button withStyle
:(NSString
*)style toFunction
:(id
)function
;
115 - (void) setButtonTitle
:(NSString
*)button withStyle
:(NSString
*)style toFunction
:(id
)function
;
116 - (void) setFinishHook
:(id
)function
;
117 - (void) setPopupHook
:(id
)function
;
119 - (id
) _rightButtonTitle
;
121 - (bool) promptForSensitive
:(NSString
*)name
;
122 - (bool) allowSensitiveRequests
;