#import "SimpleBrowserController.h"

@implementation SimpleBrowserController

- (void) resetButtons:(WebView *)theWebView {	//<label id="code.delegates.newresetbutton"/>
	[backButton setEnabled:[theWebView canGoBack]];
	[forwardButton setEnabled:[theWebView canGoForward]];
}

- (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title 
                                         forFrame:(WebFrame *)frame {	
	[[sender window] setTitle:title];
}

- (void)webView:(WebView *)sender 
                           didFinishLoadForFrame:(WebFrame *)frame {
	[inputField setStringValue:[sender mainFrameURL]];
	[self resetButtons:sender]; //<label id="code.delegates.callnewresetbutton"/>
}

@end
