Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (39 sloc) 1.23 KB
//
// IGKBackForwardManager.h
// Ingredients
//
// Created by Alex Gordon on 07/03/2010.
// Written in 2010 by Fileability.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
//This emulates WebBackForwardList for no particular reason
@interface IGKBackForwardManager : NSObject
{
IBOutlet WebView *webView;
IBOutlet id delegate;
/* The backStack stores all WebHistoryItems we can go back to.
The forwardStack stores all WebHistoryItems we can go forward to.
When we go back we push currentItem onto backStack, and then pop an item off forwardStack and set it to current item. */
NSMutableArray *backStack;
WebHistoryItem *currentItem;
NSMutableArray *forwardStack;
NSMutableArray *menuStack;
}
@property (assign) WebView *webView;
@property (assign) id delegate;
@property (assign) NSMutableArray *menuStack;
- (void)backForwardManagerUpdatedLists:(id)bfm;
- (void)visitPage:(WebHistoryItem *)item;
- (IBAction)goBack:(id)sender;
- (IBAction)goForward:(id)sender;
- (void)goBackBy:(NSInteger)amount;
- (void)goForwardBy:(NSInteger)amount;
- (BOOL)canGoBack;
- (BOOL)canGoForward;
- (NSArray *)backList;
- (WebHistoryItem *)backItem;
- (WebHistoryItem *)currentItem;
- (WebHistoryItem *)forwardItem;
- (NSArray *)forwardList;
@end