HRESULT WebBackForwardList::removeItem(_In_opt_ IWebHistoryItem* item) { COMPtr<WebHistoryItem> webHistoryItem; if (!item || FAILED(item->QueryInterface(&webHistoryItem))) return E_FAIL; m_backForwardList->removeItem(webHistoryItem->historyItem()); return S_OK; }
HRESULT STDMETHODCALLTYPE WebBackForwardList::removeItem( /* [in] */ IWebHistoryItem* item) { COMPtr<WebHistoryItem> webHistoryItem; if (!item || FAILED(item->QueryInterface(&webHistoryItem))) return E_FAIL; m_backForwardList->removeItem(webHistoryItem->historyItem()); return S_OK; }
HRESULT STDMETHODCALLTYPE WebBackForwardList::containsItem( /* [in] */ IWebHistoryItem* item, /* [retval][out] */ BOOL* result) { COMPtr<WebHistoryItem> webHistoryItem; if (!item || FAILED(item->QueryInterface(&webHistoryItem))) return E_FAIL; *result = m_backForwardList->containsItem(webHistoryItem->historyItem()); return S_OK; }
HRESULT WebBackForwardList::containsItem(_In_opt_ IWebHistoryItem* item, _Out_ BOOL* result) { if (!result) return E_POINTER; COMPtr<WebHistoryItem> webHistoryItem; if (!item || FAILED(item->QueryInterface(&webHistoryItem))) return E_FAIL; *result = m_backForwardList->containsItem(webHistoryItem->historyItem()); return S_OK; }