Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 3e4b488822
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (39 sloc) 1.262 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;
Jump to Line
Something went wrong with that request. Please try again.