BackForwardListBlackBerry.h [plain text]
#ifndef BackForwardListBlackBerry_h
#define BackForwardListBlackBerry_h
#include "BackForwardListImpl.h"
namespace BlackBerry {
namespace WebKit {
class WebPagePrivate;
}
}
namespace WebCore {
class BackForwardListBlackBerry : public WebCore::BackForwardList {
public:
static PassRefPtr<BackForwardListBlackBerry> create(BlackBerry::WebKit::WebPagePrivate* pagePrivate)
{
return adoptRef(new BackForwardListBlackBerry(pagePrivate));
}
virtual ~BackForwardListBlackBerry();
void clear();
HistoryItemVector& entries();
HistoryItem* currentItem();
void backListWithLimit(int, HistoryItemVector&);
void forwardListWithLimit(int, HistoryItemVector&);
int capacity();
private:
explicit BackForwardListBlackBerry(BlackBerry::WebKit::WebPagePrivate*);
virtual void addItem(PassRefPtr<WebCore::HistoryItem>);
virtual void goToItem(WebCore::HistoryItem*);
virtual WebCore::HistoryItem* itemAtIndex(int);
virtual int backListCount();
virtual int forwardListCount();
virtual bool isActive();
virtual void close();
int current();
void notifyBackForwardListChanged();
RefPtr<BackForwardListImpl> m_impl;
BlackBerry::WebKit::WebPagePrivate* m_webPagePrivate;
};
}
#endif // BackForwardListBlackBerry_h