X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/5738f070516b40d0ae4e0ebb570ec86449b4ad60..367a112d938db5c80814b42c428b517e4a65efd9:/CyteKit/WebViewController.h diff --git a/CyteKit/WebViewController.h b/CyteKit/WebViewController.h index c8d9d512..477828cc 100644 --- a/CyteKit/WebViewController.h +++ b/CyteKit/WebViewController.h @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2013 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -28,10 +28,12 @@ #include #include -#include - @class IndirectDelegate; +@interface Diversion : NSObject +- (id) initWithFrom:(NSString *)from to:(NSString *)to; +@end + @protocol CyteWebViewControllerDelegate - (void) retainNetworkActivityIndicator; - (void) releaseNetworkActivityIndicator; @@ -43,49 +45,16 @@ CyteWebViewDelegate, MFMailComposeViewControllerDelegate, UIWebViewDelegate -> { - _H webview_; - _transient UIScrollView *scroller_; - - _H indicator_; - _H indirect_; - _H challenge_; - - bool error_; - _H request_; - bool ready_; - - _transient NSNumber *sensitive_; - - _H title_; - _H loading_; - - _H registered_; - _H timer_; - - // XXX: NSString * or UIImage * - _H custom_; - _H style_; - - _H function_; - - float width_; - Class class_; - _H color_; - - _H reloaditem_; - _H loadingitem_; - - bool visible_; - bool hidesNavigationBar_; - bool allowsNavigationAction_; -} +> + (void) _initialize; - (CyteWebView *) webView; +- (CyteWebViewController *) indirect; - (void) setRequest:(NSURLRequest *)request; +- (NSURLRequest *) request; + - (void) setURL:(NSURL *)url; - (void) setURL:(NSURL *)url withReferrer:(NSString *)referrer; @@ -103,12 +72,16 @@ - (id) initWithWidth:(float)width; - (id) initWithWidth:(float)width ofClass:(Class)_class; -- (void) setColor:(UIColor *)color; ++ (void) setApplicationNameForUserAgent:(NSString *)userAgent; +- (NSString *) applicationNameForUserAgent; - (void) callFunction:(WebScriptObject *)function; +- (void) reloadURLWithCache:(BOOL)cache; - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; + - (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source; +- (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source; + (float) defaultWidth; @@ -120,7 +93,6 @@ - (void) customButtonClicked; - (void) applyRightButton; -- (UIBarButtonItem *) customButton; - (UIBarButtonItem *) rightButton; - (void) applyLeftButton; @@ -142,6 +114,8 @@ - (void) registerFrame:(WebFrame *)frame; ++ (void) addDiversion:(Diversion *)diversion; + @end #endif//CyteKit_WebViewController_H