diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 01:28:22 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 01:28:32 -0800 |
commit | 028dbd1c28f82f646a438ed00b5b8a9a1678446e (patch) | |
tree | 9f2984e6a9771e5eeec5a4a7dcdc56f80853ef23 /UICaboodle | |
parent | 70a9ff4e3897e7b63796d87b545e2bad95caef79 (diff) |
Added a public filter to pageForURL:.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.h | 2 | ||||
-rw-r--r-- | UICaboodle/BrowserView.mm | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index 692704a..0b52fb9 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -53,7 +53,7 @@ @protocol BrowserControllerDelegate - (void) retainNetworkActivityIndicator; - (void) releaseNetworkActivityIndicator; -- (CYViewController *) pageForURL:(NSURL *)url; +- (CYViewController *) pageForURL:(NSURL *)url forExternal:(BOOL)external; @end @interface BrowserController : CYViewController < diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 00e1814..fa71a74 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -705,7 +705,8 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se if ([scheme isEqualToString:@"mailto"]) [self _openMailToURL:url]; - CYViewController *page([delegate_ pageForURL:url]); + // XXX: filter to internal usage? + CYViewController *page([delegate_ pageForURL:url forExternal:NO]); if (page == nil) { BrowserController *browser([[[class_ alloc] init] autorelease]); |