]> git.saurik.com Git - cydia.git/blame - UICaboodle/BrowserView.h
I hate subtle issues.
[cydia.git] / UICaboodle / BrowserView.h
CommitLineData
59efd93a
JF
1#import "ResetView.h"
2
bde2d79b
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
59efd93a
JF
24@class NSMutableArray;
25@class NSString;
26@class NSURL;
27@class NSURLRequest;
28
29@class UIProgressIndicator;
30@class UIScroller;
20b8724d 31@class UIDocumentWebView;
59efd93a 32
d210b85d
JF
33@class WebView;
34
59efd93a 35@class Database;
20b8724d 36@class IndirectDelegate;
45f88d41 37@class CydiaObject;
59efd93a 38
1ce016d4
JF
39@interface BrowserView : RVPage <
40 RVBookHook
41> {
59efd93a 42 UIScroller *scroller_;
20b8724d 43 UIWebDocumentView *webview_;
59efd93a 44 UIProgressIndicator *indicator_;
20b8724d 45 IndirectDelegate *indirect_;
45f88d41 46 CydiaObject *cydia_;
67c04058 47 NSURLAuthenticationChallenge *challenge_;
f4772bd1
JF
48
49 bool error_;
2c3974c5 50 NSURLRequest *request_;
59efd93a 51
a99d2808 52 NSNumber *confirm_;
59efd93a
JF
53 NSString *title_;
54 bool loading_;
55 bool reloading_;
48c0461e 56
a99d2808
JF
57 NSString *button_;
58 NSString *style_;
59 WebScriptObject *function_;
1ce016d4 60 WebScriptObject *closer_;
a99d2808 61
48c0461e 62 bool pushed_;
7b00c562
JF
63
64 float width_;
65 bool popup_;
dcc55b8b
JF
66
67 CGSize size_;
68 bool editing_;
59efd93a
JF
69}
70
67c04058
JF
71- (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button;
72
59efd93a
JF
73- (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy;
74- (void) loadURL:(NSURL *)url;
75
76- (void) loadRequest:(NSURLRequest *)request;
77- (void) reloadURL;
1ce016d4 78- (bool) isLoading;
59efd93a
JF
79
80- (WebView *) webView;
5a5c1e4b 81- (UIWebDocumentView *) documentView;
59efd93a 82
5fd870e0 83- (id) initWithBook:(RVBook *)book;
7b00c562 84- (id) initWithBook:(RVBook *)book forWidth:(float)width;
59efd93a 85
853d14d3 86- (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame;
cb9c2100 87- (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame;
853d14d3 88
7b00c562 89+ (float) defaultWidth;
dcc55b8b 90- (void) setViewportWidth:(float)width;
7b00c562 91
b456f1c9
JF
92- (id) _rightButtonTitle;
93
59efd93a 94@end