summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/webkit/WebBackForwardList.inc
blob: 8d40c261a892c5ce9809ebc658b781370f1ff518 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ Parsed from Webkit.framework WebBackForwardList.h }

{$ifdef TYPES}
{$ifndef WEBBACKFORWARDLIST_PAS_T}
{$define WEBBACKFORWARDLIST_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef WEBBACKFORWARDLIST_PAS_R}
{$define WEBBACKFORWARDLIST_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef WEBBACKFORWARDLIST_PAS_F}
{$define WEBBACKFORWARDLIST_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef WEBBACKFORWARDLIST_PAS_S}
{$define WEBBACKFORWARDLIST_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  WebBackForwardList = objcclass;
  WebBackForwardListPointer = ^WebBackForwardList;
  WebBackForwardListPtr = WebBackForwardListPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef WEBBACKFORWARDLIST_PAS_C}
{$define WEBBACKFORWARDLIST_PAS_C}

{ WebBackForwardList }
  WebBackForwardList = objcclass external (NSObject)
  private
    _private: WebBackForwardListPrivate;
    
  public
    procedure addItem(item: WebHistoryItem); message 'addItem:';
    procedure goBack; message 'goBack';
    procedure goForward; message 'goForward';
    procedure goToItem(item: WebHistoryItem); message 'goToItem:';
    function backItem: WebHistoryItem; message 'backItem';
    function currentItem: WebHistoryItem; message 'currentItem';
    function forwardItem: WebHistoryItem; message 'forwardItem';
    function backListWithLimit(limit: cint): NSArray; message 'backListWithLimit:';
    function forwardListWithLimit(limit: cint): NSArray; message 'forwardListWithLimit:';
    function capacity: cint; message 'capacity';
    procedure setCapacity(size: cint); message 'setCapacity:';
    function backListCount: cint; message 'backListCount';
    function forwardListCount: cint; message 'forwardListCount';
    function containsItem(item: WebHistoryItem): Boolean; message 'containsItem:';
    function itemAtIndex(index: cint): WebHistoryItem; message 'itemAtIndex:';
  end;

{ WebBackForwardListDeprecatedCategory }
  WebBackForwardListDeprecatedCategory = objccategory external (WebBackForwardList)
    procedure setPageCacheSize(size: WebNSUInteger); message 'setPageCacheSize:';
    function pageCacheSize: WebNSUInteger; message 'pageCacheSize';
  end;

{$endif}
{$endif}