Methods Summary |
---|
protected synchronized com.android.webview.chromium.WebBackForwardListChromium | clone()See {@link android.webkit.WebBackForwardList#clone}.
List<WebHistoryItemChromium> list =
new ArrayList<WebHistoryItemChromium>(getSize());
for (int i = 0; i < getSize(); ++i) {
list.add(mHistroryItemList.get(i).clone());
}
return new WebBackForwardListChromium(list, mCurrentIndex);
|
public synchronized int | getCurrentIndex()See {@link android.webkit.WebBackForwardList#getCurrentIndex}.
return mCurrentIndex;
|
public synchronized android.webkit.WebHistoryItem | getCurrentItem()See {@link android.webkit.WebBackForwardList#getCurrentItem}.
if (getSize() == 0) {
return null;
} else {
return getItemAtIndex(getCurrentIndex());
}
|
public synchronized android.webkit.WebHistoryItem | getItemAtIndex(int index)See {@link android.webkit.WebBackForwardList#getItemAtIndex}.
if (index < 0 || index >= getSize()) {
return null;
} else {
return mHistroryItemList.get(index);
}
|
public synchronized int | getSize()See {@link android.webkit.WebBackForwardList#getSize}.
return mHistroryItemList.size();
|