-
Notifications
You must be signed in to change notification settings - Fork 36
/
IGKBackForwardManager.h
52 lines (39 loc) · 1.23 KB
/
IGKBackForwardManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// 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