diff options
Diffstat (limited to 'CyteKit/WebView.h')
-rw-r--r-- | CyteKit/WebView.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CyteKit/WebView.h b/CyteKit/WebView.h index c9e10c8..39fd8ff 100644 --- a/CyteKit/WebView.h +++ b/CyteKit/WebView.h @@ -58,6 +58,7 @@ enum CYWebPolicyDecision { }; @protocol CyteWebViewDelegate <UIWebViewDelegate> +@optional - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message; - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener; - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id<WebPolicyDecisionListener>)listener; @@ -81,6 +82,8 @@ enum CYWebPolicyDecision { } - (id<CyteWebViewDelegate>) delegate; +- (void) setDelegate:(id<CyteWebViewDelegate>)delegate; + - (void) dispatchEvent:(NSString *)event; - (void) reloadFromOrigin; - (UIScrollView *) scrollView; |