PageRenderTime 24ms CodeModel.GetById 11ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/Tools/NativeHost/AppController+WebFrameLoadDelegate.m

http://github.com/cacaodev/cappuccino
Objective C | 26 lines | 11 code | 8 blank | 7 comment | 2 complexity | 18df31aabfe417edea6f6a04b0c10bd8 MD5 | raw file
 1
 2
 3//
 4//  AppController+WebFrameLoadDelegate.m
 5//  NativeHost
 6//
 7//  Created by Francisco Tolmasky on 7/28/09.
 8//  Copyright 2009 280 North, Inc.. All rights reserved.
 9//
10
11#import "AppController.h"
12
13#import "BridgedMethods.h"
14
15
16@implementation AppController (WebFrameLoadDelegate)
17
18- (void)webView:(WebView *)aWebView didClearWindowObject:(WebScriptObject *)aWindowObject forFrame:(WebFrame *)aFrame
19{
20    if (aWebView == webView)
21        [GlobalMethods enhanceWindowObject:aWindowObject ofWebView:aWebView];
22    else
23        [WindowMethods enhanceWindowObject:aWindowObject ofWebView:aWebView];
24}
25
26@end