4 #include <WebKit/DOMCSSPrimitiveValue.h>
5 #include <WebKit/DOMCSSStyleDeclaration.h>
6 #include <WebKit/DOMDocument.h>
7 #include <WebKit/DOMHTMLBodyElement.h>
8 #include <WebKit/DOMNodeList.h>
9 #include <WebKit/DOMRGBColor.h>
11 #include <WebKit/WebFrame.h>
12 #include <WebKit/WebPolicyDelegate.h>
13 #include <WebKit/WebPreferences.h>
14 #include <WebKit/WebScriptObject.h>
16 #import <WebKit/WebView.h>
17 #import <WebKit/WebView-WebPrivate.h>
19 #include <WebCore/Page.h>
20 #include <WebCore/Settings.h>
22 #import <JavaScriptCore/JavaScriptCore.h>
24 @
class NSMutableArray
;
29 @
class UIProgressIndicator
;
31 @
class UIDocumentWebView
;
36 @
class IndirectDelegate
;
39 @interface BrowserView
: RVPage
<
42 UIScroller
*scroller_
;
43 UIWebDocumentView
*webview_
;
44 UIProgressIndicator
*indicator_
;
45 IndirectDelegate
*indirect_
;
47 NSURLAuthenticationChallenge
*challenge_
;
50 NSURLRequest
*request_
;
54 NSMutableSet
*loading_
;
60 WebScriptObject
*function_
;
61 WebScriptObject
*closer_
;
62 WebScriptObject
*special_
;
63 WebScriptObject
*finish_
;
74 - (void) alertSheet
:(UIActionSheet
*)sheet buttonClicked
:(int)button
;
76 - (void) loadURL
:(NSURL
*)url cachePolicy
:(NSURLRequestCachePolicy
)policy
;
77 - (void) loadURL
:(NSURL
*)url
;
79 - (void) loadRequest
:(NSURLRequest
*)request
;
85 - (WebView
*) webView
;
86 - (UIWebDocumentView
*) documentView
;
88 - (id
) initWithBook
:(RVBook
*)book
;
89 - (id
) initWithBook
:(RVBook
*)book forWidth
:(float)width
;
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 + (float) defaultWidth
;
98 - (void) setViewportWidth
:(float)width
;
100 - (void) setButtonImage
:(NSString
*)button withStyle
:(NSString
*)style toFunction
:(id
)function
;
101 - (void) setButtonTitle
:(NSString
*)button withStyle
:(NSString
*)style toFunction
:(id
)function
;
102 - (void) setFinishHook
:(id
)function
;
103 - (void) setPopupHook
:(id
)function
;
105 - (id
) _rightButtonTitle
;