]> git.saurik.com Git - cydia.git/blame - UICaboodle/BrowserView.h
This is getting nuts, I need an internal branch.
[cydia.git] / UICaboodle / BrowserView.h
CommitLineData
ab398adf
JF
1#import "ResetView.h"
2
22f8bed9
JF
3
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>
10
11#include <WebKit/WebFrame.h>
12#include <WebKit/WebPolicyDelegate.h>
13#include <WebKit/WebPreferences.h>
14#include <WebKit/WebScriptObject.h>
15
16#import <WebKit/WebView.h>
17#import <WebKit/WebView-WebPrivate.h>
18
19#include <WebCore/Page.h>
20#include <WebCore/Settings.h>
21
22#import <JavaScriptCore/JavaScriptCore.h>
23
ab398adf
JF
24@class NSMutableArray;
25@class NSString;
26@class NSURL;
27@class NSURLRequest;
28
29@class UIProgressIndicator;
30@class UIScroller;
facbc56d 31@class UIDocumentWebView;
ab398adf 32
a9543575
JF
33@class WebView;
34
ab398adf 35@class Database;
facbc56d 36@class IndirectDelegate;
374f3d18 37@class CydiaObject;
ab398adf 38
12b59862
JF
39@interface BrowserView : RVPage <
40 RVBookHook
41> {
ab398adf 42 UIScroller *scroller_;
facbc56d 43 UIWebDocumentView *webview_;
ab398adf 44 UIProgressIndicator *indicator_;
facbc56d 45 IndirectDelegate *indirect_;
374f3d18 46 CydiaObject *cydia_;
0ce617c8 47 NSURLAuthenticationChallenge *challenge_;
fe468f45
JF
48
49 bool error_;
0c7c9052 50 NSURLRequest *request_;
ab398adf 51
9fe5e5f8 52 NSNumber *confirm_;
ab398adf 53 NSString *title_;
caa427d1 54 NSMutableSet *loading_;
ab398adf 55 bool reloading_;
a0376fc1 56
9fe5e5f8
JF
57 NSString *button_;
58 NSString *style_;
caa427d1 59
9fe5e5f8 60 WebScriptObject *function_;
12b59862 61 WebScriptObject *closer_;
caa427d1
JF
62 WebScriptObject *special_;
63 WebScriptObject *finish_;
9fe5e5f8 64
a0376fc1 65 bool pushed_;
3e9c9e85
JF
66
67 float width_;
68 bool popup_;
eb35c522
JF
69
70 CGSize size_;
71 bool editing_;
ab398adf
JF
72}
73
0ce617c8
JF
74- (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button;
75
ab398adf
JF
76- (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy;
77- (void) loadURL:(NSURL *)url;
78
79- (void) loadRequest:(NSURLRequest *)request;
80- (void) reloadURL;
12b59862 81- (bool) isLoading;
ab398adf 82
caa427d1
JF
83- (void) fixScroller;
84
ab398adf 85- (WebView *) webView;
1b1b3f4a 86- (UIWebDocumentView *) documentView;
ab398adf 87
3160e5f0 88- (id) initWithBook:(RVBook *)book;
3e9c9e85 89- (id) initWithBook:(RVBook *)book forWidth:(float)width;
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
3e9c9e85 97+ (float) defaultWidth;
eb35c522 98- (void) setViewportWidth:(float)width;
3e9c9e85 99
caa427d1
JF
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;
104
bd0a4099
JF
105- (id) _rightButtonTitle;
106
ab398adf 107@end