]> git.saurik.com Git - cydia.git/blob - UICaboodle/BrowserView.h
Continuing the optimization work.
[cydia.git] / UICaboodle / BrowserView.h
1 #import "ResetView.h"
2
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
24 @class NSMutableArray;
25 @class NSString;
26 @class NSURL;
27 @class NSURLRequest;
28
29 @class UIProgressIndicator;
30 @class UIScroller;
31 @class UIDocumentWebView;
32
33 @class WebView;
34
35 @class Database;
36 @class IndirectDelegate;
37 @class CydiaObject;
38
39 @interface BrowserView : RVPage <
40 RVBookHook
41 > {
42 UIScroller *scroller_;
43 UIWebDocumentView *webview_;
44 UIProgressIndicator *indicator_;
45 IndirectDelegate *indirect_;
46 CydiaObject *cydia_;
47 NSURLAuthenticationChallenge *challenge_;
48
49 bool error_;
50 NSURLRequest *request_;
51
52 NSNumber *confirm_;
53 NSString *title_;
54 NSMutableSet *loading_;
55 bool reloading_;
56
57 NSString *button_;
58 NSString *style_;
59
60 WebScriptObject *function_;
61 WebScriptObject *closer_;
62 WebScriptObject *special_;
63 WebScriptObject *finish_;
64
65 bool pushed_;
66
67 float width_;
68 bool popup_;
69
70 CGSize size_;
71 bool editing_;
72 }
73
74 - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button;
75
76 - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy;
77 - (void) loadURL:(NSURL *)url;
78
79 - (void) loadRequest:(NSURLRequest *)request;
80 - (void) reloadURL;
81 - (bool) isLoading;
82
83 - (void) fixScroller;
84
85 - (WebView *) webView;
86 - (UIWebDocumentView *) documentView;
87
88 - (id) initWithBook:(RVBook *)book;
89 - (id) initWithBook:(RVBook *)book forWidth:(float)width;
90
91 - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script;
92 - (void) callFunction:(WebScriptObject *)function;
93
94 - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame;
95 - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame;
96
97 + (float) defaultWidth;
98 - (void) setViewportWidth:(float)width;
99
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
105 - (id) _rightButtonTitle;
106
107 @end