Ejemplo n.º 1
0
size_t LayoutTestController::webHistoryItemCount()
{
    const Ewk_History* history = ewk_view_history_get(browser->mainView());
    if (!history)
        return -1;

    return ewk_history_back_list_length(history) + ewk_history_forward_list_length(history);
}
Ejemplo n.º 2
0
void TestRunner::removeAllVisitedLinks()
{
    Ewk_History* history = ewk_view_history_get(browser->mainView());
    if (!history)
        return;

    ewk_history_clear(history);
}
Ejemplo n.º 3
0
void LayoutTestController::clearBackForwardList()
{
    Ewk_History* history = ewk_view_history_get(browser->mainView());
    if (!history)
        return;

    Ewk_History_Item* item = ewk_history_history_item_current_get(history);
    ewk_history_clear(history);
    ewk_history_history_item_add(history, item);
    ewk_history_history_item_set(history, item);
    ewk_history_item_free(item);
}