]>
Commit | Line | Data |
---|---|---|
1 | #import "ResetView.h" | |
2 | ||
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> | |
9 | ||
10 | #include <WebKit/WebFrame.h> | |
11 | #include <WebKit/WebPolicyDelegate.h> | |
12 | #include <WebKit/WebPreferences.h> | |
13 | #include <WebKit/WebScriptObject.h> | |
14 | ||
15 | #import <WebKit/WebView.h> | |
16 | #import <WebKit/WebView-WebPrivate.h> | |
17 | ||
18 | #include <WebCore/Page.h> | |
19 | #include <WebCore/Settings.h> | |
20 | ||
21 | #import <JavaScriptCore/JavaScriptCore.h> | |
22 | ||
23 | @class NSMutableArray; | |
24 | @class NSString; | |
25 | @class NSURL; | |
26 | @class NSURLRequest; | |
27 | ||
28 | @class UIProgressIndicator; | |
29 | @class UIScroller; | |
30 | @class UIDocumentWebView; | |
31 | ||
32 | @class WebView; | |
33 | ||
34 | @class Database; | |
35 | @class IndirectDelegate; | |
36 | ||
37 | @interface WebScriptObject (UICaboodle) | |
38 | - (unsigned) count; | |
39 | - (id) objectAtIndex:(unsigned)index; | |
40 | @end | |
41 | ||
42 | @protocol BrowserControllerDelegate | |
43 | - (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; | |
44 | @end | |
45 | ||
46 | @interface BrowserController : UCViewController { | |
47 | UIScroller *scroller_; | |
48 | UIWebDocumentView *document_; | |
49 | UIProgressIndicator *indicator_; | |
50 | IndirectDelegate *indirect_; | |
51 | NSURLAuthenticationChallenge *challenge_; | |
52 | ||
53 | bool error_; | |
54 | NSURLRequest *request_; | |
55 | ||
56 | NSNumber *confirm_; | |
57 | NSNumber *sensitive_; | |
58 | NSString *title_; | |
59 | NSMutableSet *loading_; | |
60 | bool reloading_; | |
61 | ||
62 | NSString *button_; | |
63 | NSString *style_; | |
64 | ||
65 | WebScriptObject *function_; | |
66 | WebScriptObject *closer_; | |
67 | WebScriptObject *special_; | |
68 | WebScriptObject *finish_; | |
69 | ||
70 | bool pushed_; | |
71 | ||
72 | float width_; | |
73 | bool popup_; | |
74 | ||
75 | CGSize size_; | |
76 | bool editing_; | |
77 | ||
78 | Class class_; | |
79 | ||
80 | id reloaditem_; | |
81 | id loadingitem_; | |
82 | } | |
83 | ||
84 | + (void) _initialize; | |
85 | ||
86 | - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; | |
87 | - (void) loadURL:(NSURL *)url; | |
88 | ||
89 | - (void) loadRequest:(NSURLRequest *)request; | |
90 | - (void) reloadURL; | |
91 | - (bool) isLoading; | |
92 | ||
93 | - (void) fixScroller; | |
94 | ||
95 | - (WebView *) webView; | |
96 | - (UIWebDocumentView *) documentView; | |
97 | ||
98 | - (id) init; | |
99 | - (id) initWithWidth:(float)width; | |
100 | - (id) initWithWidth:(float)width ofClass:(Class)_class; | |
101 | ||
102 | - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; | |
103 | - (void) callFunction:(WebScriptObject *)function; | |
104 | ||
105 | - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; | |
106 | - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; | |
107 | ||
108 | - (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; | |
109 | ||
110 | + (float) defaultWidth; | |
111 | - (void) setViewportWidth:(float)width; | |
112 | ||
113 | - (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; | |
114 | - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; | |
115 | - (void) setFinishHook:(id)function; | |
116 | - (void) setPopupHook:(id)function; | |
117 | ||
118 | - (bool) promptForSensitive:(NSString *)name; | |
119 | - (bool) allowSensitiveRequests; | |
120 | ||
121 | @end |